Link Constraint



Your Ad Here

Animation menu > Constraints > Link Constraint

A link constraint enables the robot arms to pass a ball.

A Link constraint is used to animate an object linking from one target object to another.

The Link constraint causes an object to inherit the position, rotation, and scale of its target object.

An example of using a link constraint is to pass a ball from one hand to another. Assume that at frame 0 the ball is in the right hand. The hands are animated to meet at frame 50, where the ball is passed to the left hand, and then spread apart until frame 100.

Procedures

Example: To assign a Link constraint:

  1. In the Top viewport, create a sphere and a box.

  2. Select the sphere.

  3. Open the Motion panel.

  4. Expand > Assign Controller rollout.

  5. Select the Transform: Position/Rotation/Scale controller.

  6. Click Assign Controller.

  7. Choose Link Constraint.

    It is recommended that you add a Link To World before linking to any target objects. This will allow you to animate the object on its own, before the first link to a target object takes place.

    You can also assign Link Constraints through the Animation > Constraints submenu.

To access the Link constraint’s parameters through the Motion panel:

  1. Select the Link-constrained object.

  2. Choose Motion panel > Link Params rollout.

Example: To assign the Link constraint and animate links:

  1. Move the time slider to frame 0.

  2. In the Top viewport, create a sphere, a cylinder and a box.

  3. Select the sphere.

  4. Open the Motion panel.

  5. Expand the Assign Controller rollout.

  6. Select the Transform: Position/Rotation/Scale controller.

  7. Click Assign Controller.

  8. Choose Link Constraint.

  9. In the Link Params rollout, click Link To World.

  10. Move the time slider to frame 1.

  11. Click Add Link and select the cylinder.

    It now becomes a target. The Link Constraint relationship is now active between the sphere and the cylinder.

  12. Move the time slider to frame 50.

  13. Turn on the Auto Key button and move the cylinder a good distance away from where it is.

  14. Play back the animation.

    The sphere follows the cylinder as it moves. The sphere is link-constrained.

  15. Select the sphere.

  16. Move the time slider to frame 25.

  17. On the Motion panel > Link Param rollout, click Add link and select the box.

    You have now added another target that becomes active at frame 25.

  18. Turn off the Auto Key button and play back the animation. The sphere is linked to the cylinder from frame 0 to 24. It follows the cylinder until frame 25 where it links to the box.

Interface

Once you assign a Link constraint, you can access its properties on the Link Params rollout in the Motion panel. In this rollout you can add and delete targets and animate the time at which each target becomes the active parent of the constrained object.

Add Link—Adds a new link target.

Link to World—Links the object to the world (the scene as a whole). We recommend this be the first target in the list. This prevents the object from reverting to its independent creation or animation transforms if other targets are deleted from the list.

Delete Link—Removes a link target. Once a link target is removed, it will no longer influence the constrained object.

Start Time—The start time spinner is used to assign or edit the frame value of a target. Select one of the target object names in the list window and see the frame where the object becomes a parent. You can adjust the value to change when the link transfer takes place.

Key Mode group

Note: The options Key Nodes and Key Entire Hierarchy have no effect unless the object you are constraining is already part of a hierarchy. If you add objects to the hierarchy after you apply the Link constraint, you have to reapply the Link constraint using the key options you desire.

No Key—When used, no keyframes are written to the constrained object or its targets. The link control happens without inserting any keys.

Key Nodes—When used, keyframes are written to the specified option. There are two options: Child and Parents. Child sets a keyframe only on the constrained object. Parents sets keyframes for the constrained object and all of its targets.

Key Entire Hierarchy—Sets keyframes up the hierarchy for the specified option. There are two options: Child and Parents. Child sets a keyframe only on the constrained object and its parents. Parents sets keyframes for the constrained object, its targets, and their upper hierarchy.


Comments

Return to Autodesk Index

Your Ad Here