Constraint

The constraint object serves scripting purposes. Normal objects can access their own attributes at the Scripting tab. The constraint object can access attributes of all objects that were selected at the constraint creation time. For example:

    if(P.y < 0) 
        P.y = 0;

The 'P' variable refers to the current animation channel, Translate attribute in this case.

The constraint object defines the following variables: