Position Constraint
 
 
 
Command entry:Animation menu Constraints Position Constraint

A position constraint causes an object to follow the position of an object or the weighted average position of several objects.

Position constraints align the elements of the robot assembly.

In order to activate, a position constraint requires an object and a target object. Once assigned the object becomes constrained to the target object’s position. Animating the target’s position causes the constrained object to follow.

Each target has a weight value defining its influence. A value of 0 is equal to off. Any value greater than 0 will cause the target to influence the constrained object. Weight values can be animated to create effects such as a ball being picked up from a table.

Multiple Targets and Weighting

A constrained object can be influenced by several target objects. When using multiple targets, each target has a weight value that defines the degree by which it influences the constrained object, relative to other targets.

Using Weight is meaningful (and available) only with multiple targets. A value of 0 means the target has no influence. Any value greater than 0 causes the target to influence the constrained object relative to other targets' Weight settings. For example, a target with a Weight value of 80 will have twice the influence of a target with a Weight value of 40.

For example, if a sphere is Position-constrained between two targets and each target’s weight value is 100, the sphere will maintain an equal distance between both targets even when they are in motion. If one of the weight values is 0 and the other is 50, then the sphere is influenced only by the target with the higher value.

Procedures

To assign a Position constraint:

  1. Select the object you want to constrain.
  2. Choose Animation menu Constraints Position Constraint.
  3. Click the target object.

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

  1. Select the Position-constrained object.
  2. On the Motion panel, on the Position list, double-click Position Constraint.

    The Position constraint parameters are located under the Position Constraint rollout.

To edit weight values:

  1. Select the constrained object.
  2. On the Motion panel, on the Position list, double-click Position Constraint.

    The Position constraint parameters are located under the Position Constraint rollout.

  3. Click a target in the list.
  4. Adjust the Weight spinner or enter a numerical value for the weight value.

To animate weight values:

  1. Select the constrained object.
  2. On the Motion panel, on the Position list, double-click Position Constraint.

    The Position constraint parameters are located under the Position Constraint rollout.

  3. Click a target from the list.
  4. Turn on (Auto Key).
  5. Adjust the Weight spinner or enter a numerical value for the weight value.

Example: To assign a Position constraint with two targets and editing weights:

  1. In the Top viewport, create a sphere, a box, and a cylinder so that the box is between the sphere and the cylinder.
  2. Select the box, assign a Position constraint, and click the sphere as the target.
  3. Click to select the box, assign a Position constraint, and click the cylinder as the target.

    The box is now position-constrained between the two targets.

  4. In the Top viewport, move the sphere around.

    As the sphere moves, the box maintains an equal distance between the sphere and the cylinder. This is because the weight values for both targets are equal. By default the values are 1.00. If the sphere had a higher weight value than the cylinder, the sphere would influence the box more than the cylinder.

  5. To edit the weight values, select the box.
  6. Go to the Motion panel and view the Position Constraint rollout.
  7. Click the Cylinder’s name in the list of targets.
  8. Using the Weight spinner, change the value from 50 to 20.

    As the value decreases, the box moves closer to the sphere.

  9. In the Top viewport. select the cylinder and move it around.
  10. In the Top viewport, select the sphere and move it around.

    The sphere has more influence over the box’s movement than the cylinder.

Interface

Once you assign a Position constraint, you can access its properties on the Position Constraint rollout in the Motion panel. In this rollout you can add or delete targets, assign weighting, and animate each target's weight value.

NoteWhen you assign a Position constraint via the Animation menu, 3ds Max assigns a Position List controller to your object. In the Position List rollout list you will find Position Constraint. This is the actual Position Constraint controller. To view the Position Constraint rollout, double-click Position Constraint in the list.
Add position target

Adds new target objects that influence the position constrained object.

Delete position target

Removes targets. Once a target is removed, it will no longer influence the constrained object.

Weight

Assigns and animates weight values for each target.

Keep Initial Offset

Use Keep Initial Offset to preserve the original distance between the constrained object and the target object. This prevents the constrained object from snapping to the target object’s pivot. The default is Off.