Constrain to

This feature is available in Alias PowerAnimator and AutoStudio and is a purchasable Advanced Animation for Studio option.

Purpose

To constrain one object to another object.

Overview

Constrain to translates or rotates the object that is being constrained to the position/orientation of the object it is being constrained to. You can create any combination and number of point, orientation or aiming constraints on an object.

How To Use

  1. Select an object using Pick Object, or pick an object dag node in the SBD window.

  2. Select Constrain Constrain to from the Object Edit tool palette or click this icon.

    The system prompts that are displayed depend on the Constraint Type you have set in the Constrain to Options box.

Point Example

  1. Create two primitive spheres and a jack using ObjectsPrimitives.

  2. In the Constrain To Options box (Object Edit Constrain Constrain to-), make sure the Point option is clicked ON.

  3. With the jack active, select Object Edit Constrain Constrain to and pick the sphere at the left.
Notice how the jack moves to the sphere it is constrained to:

  • With the jack still active, select Constrain to and pick the sphere at the right. Notice that the jack moves between the two spheres.

    :\ . , .

  • Select Pick Nothing, then pick the sphere at the right. The jack changes color to show it is constrained to the sphere:

  • Move the active sphere and then pick and move the sphere to the left. The jack moves in relation to the two objects it is constrained to:

    Orientation Example

    1. Create a sphere and a cone with ObjectsPrimitives.

    2. With the cone picked, select Object Edit Constrain Constrain to- and make sure Orientation is ON. Click Go then click the sphere.

    3. With nothing picked, pick the sphere, select XformRotate and rotate the sphere. Notice that the cone follows the rotation of the sphere.

      :\ . , Display Tgl pivots - Local Axes Display .

    Aim Example

    1. Create a primitive sphere and a cone with ObjectsPrimitives.

    2. Pick the cone and select XformLocalSet local axes. This shows the local axes around the cone.

      The point of the cone, which is the part you want to aim, is pointed up toward Z. Note also, that to get from the cone to the ball, you have to move along the X axis.

    3. With the cone picked, select Object Edit Constrain Constrain to- and make sure the Aim option is ON.

    4. Set the Aim axis to Z and the Up axis to X.

    5. Click the Go button, then click the sphere.

    6. With nothing picked, pick the sphere, select XformMove and move the sphere. Notice that the cone continues to point at the sphere.

      In general, it is not useful to apply a constraint directly to a skeleton joint. For example, if a point constraint is applied to a joint, moving the constraint object would cause the bone to stretch. Normally, you should create IK handles (using Object Edit add ik handle) and then constrain the IK handle to an object. To make this easier, if Object Edit Constrain Constrain to is applied to a skeleton joint, an IK handle is automatically created, and it is constrained to the selected object.

    Constrain to Options

    Select Constrain Constrain to- to display the Constrain to Options box.

    Constraint type

    These are the types of constraints that can be added.

    Point

    Constrains an object (by modifying the translation values) such that its rotate pivot position is located at the same position in space as the rotate pivot position of the object to which it is constrained.

    Orientation

    Constrains an object (by modifying its rotation values) to assume the same orientation as the object to which it is constrained. To define the orientation of an object, use Xform Local Set local axes.

    Aim

    Constrains the orientation of one of an object's local axes to point at the object to which it is constrained (by modifying its rotation values).

    When Aim is selected, the following additional options are displayed:

    Aim Axis/Up axis

    The Aim axis specifies which local axis of the object being constrained will be used to aim at the constraint object. Only one of X, Y, or Z may be selected.

    The Up axis defines which of the three of the object's local axes should attempt to point in the up direction. In Y-up, the chosen axis will try to match the world Y axis. In Z-up, the chosen axis will try to match the world Z axis. The Aim and the Up axes cannot be the same. If the object is trying to aim at an object directly above it, then one of the object's other local axes will arbitrarily be chosen as the Up direction.

    Weight

    Weights are useful if you have constrained an object to more than one other object. This way you can weight the different constraints, so that a constrained object will tend to meet one constraint more than another.

    You can change the weight value either by clicking in the field, typing a value and pressing Enter, or dragging the slider bar. Weights are animatable.





    aliasdocs@aw.sgi.com
    Copyright © 1997, Alias|Wavefront, a Silicon Graphics Company. All rights reserved.