Constraints basics
 
 
 

In the real world, we are surrounded by constraints; for example gravity constrains us to the ground, or a dog is constrained by the length of his leash.

To simulate these limits in the 3D animation world, these relationships between objects must be established by the animator.

Constraints are tools used to create relationships between objects. You can use constraints to make a character pick up an object, have a camera follow a character, or use the keyboard or mouse to trigger events. For example, in the image below, a lantern is constrained to the character’s hand, so that however he moves his arm. the lantern follows.

The lantern is constrained to the character’s hand.

Another way to think of constraints is that they are a restriction of the translation, rotation, and other data of an object based on the position, translation, rotation, and other data of another object. So, in the image above, the transformation information of the character’s hand informs the behavior of the lantern.

The equation x<3 is a mathematical constraint of the variable x, limiting it to any value smaller than 3.

You can use these limits to simulate real-world relationships between objects. For example, the constraint on a dog attached to a five-foot leash is X<5, meaning that x, representing the dog’s area of motion, must be less than 5, which is the full length of the leash. This simple constraint ensures that your dog behaves like it is on a leash.

Similar constraints can be used to restrain a model’s arm motion to an area defined by the shoulder joint, and so on. In fact, the whole Control rig is actually a series of many constraints. The rig’s hand is constrained by the motion of the arm, which is constrained by the elbow joint, which in turn is constrained by the upper arm, and so on.

Each of these connections form complex relationships that work to create a recognizable simulation of the human body in motion.

In the Asset browser, the Constraints folder lets view and access constraint assets you can add to your scene.

Asset browser: Constraints folder

Constraints in the Scene browser

The Scene browser in the Navigator window lists all the constraints used in the scene. This is where you add and remove constraints.

Constraints in the Scene browser.

You can add a constraint to your scene by right-clicking the Constraints folder in the Scene browser and selecting Insert Constraint from the contextual menu.

Import and export of constraints

Constraints can be exchanged between MotionBuilder and Maya using the FBX file format.

For example, you can import a Parent constraint created in Maya or into MotionBuilder and vice-versa.