SI_Constraint

Stores constraints.

| This template corresponds to the CSLConstraint class.

Introduced

1.3

Template

    SI_Constraint <objectName>-<constraintType> {
       "<objectName>",
       "<constraintType>",
       <nbConstrainingObjects>,
       "<constrainingObjectName>",

       ...    // more constraining objects
    }

<constraintType> | Applies to
POSITION | Lights, cameras, models
SCALING | Models
DIRECTION | Models
ORIENTATION | Models
UP_VECTOR | Cameras, models
PREFERED_AXIS | Models
INTEREST | Lights, cameras

Example: Up-vector constraint

This dotXSI fragment shows a cube that is position-constrained to a cone and direction-constrained to a grid. The cube also has Up Vector constraints to a sphere and a null object. The Up Vector constraints are nested within the constraint that they affect.

       SI_Constraint cube1-POSITION
       {
           "cube1",
           "POSITION",
           1,
           "cone1",
           SI_Constraint cube1-UP_VECTOR
       {
              "cube1",
              "UP_VECTOR",
              1,
              "sphere1",
           }
       }
       SI_Constraint cube1-DIRECTION
       {
           "cube1",
           "DIRECTION",
           1,
           "grid1",
           SI_Constraint cube1-UP_VECTOR
           {
              "cube1",
              "UP_VECTOR",
              1,
              "null1",
           }
       }
     // When upvct_active is without reference (not assigned to a specific object but set to affect a specific axes) then it is exported as follows:
       SI_Constraint cube1-DIRECTION
       {
           "cube1",
           "DIRECTION",
           1,
           "grid1",
           SI_Constraint cube1-UP_VECTOR
           {
              "cube1",
              "UP_VECTOR",
              0,
           }
       }

Autodesk Softimage v7.5