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.
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 may be animated to create effects such a ball being picked up from a table.
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.
Procedures
To assign a Position constraint:
Select the object you want to constrain.
Choose Animation menu > Constraints > Position Constraint.
Select the target object.
To access the Position constraintÆs parameters through the Motion panel:
Select the Position-constrained object.
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:
Select the constrained object.
Open the Position Constraint rollout in the Motion panel.
Click a target from the list.
Adjust the Weight spinner or enter a numerical value for the weight value.
To animate weight values:
Select the constrained object.
Open the Position Constraint rollout in the Motion panel.
Click a target from the list.
Turn on the Animate button.
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:
In the Top viewport, create a sphere, a teapot, and a cylinder so that the teapot is between the sphere and the cylinder.
Click to select the teapot, assign a Position constraint, and select the sphere as the target.
Click to select the teapot, assign a Position constraint, and select the cylinder as the target.
The teapot is now position constrained between the two targets.
In the Top viewport, move the sphere around.
As the sphere moves, the teapot 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 100. If the sphere had a higher weight value than the cylinder, the sphere would influence the teapot more than the cylinder.
To edit the weight values, select the teapot.
Click Position Constraint Parameters on the Motion panel.
Click the CylinderÆs name in list of targets.
Using the Weight spinner, change the value from 100 to 20.
As the value decreases, the teapot moves closer to the sphere.
In the Top viewport. select the cylinder and move it around.
In the Top viewport, select the sphere and move it around.
The sphere has more influence over the teapotÆs movement than the cylinder.
Interface
Once you assign a Position constraint, you can access its properties via 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.
Note: When you assign a Position constraint via the Animation menu, the software 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.