Set motion

The Flow and Cluster options are available in Alias AutoStudio and are purchasable Studio Advanced Animation and Advanced Animation options

Purpose

To create several different kinds of automatically-computed segments of animation. Set motion lets you:

Overview

When you use Set motion, up to four different types of animation are computed, depending on the current option settings.

  1. Motion Path animation is computed first, creating animation curves for translating the object.

  2. Follow and Bank are then computed together to create animation curves for rotating the object.

  3. Flow is then computed to create animated clusters for the object, which use the object's existing animation.

  4. Camera Up animation is computed to create a motion path animation for the Up dag node of all currently active cameras.
Any one or a combination of these different types of motion can be computed at one time.

Using Motion Path with Bank and Follow

When used with the default option settings, Set motion animates an object along a motion path with both Follow and Bank animation, using a combination of three types of animation. These defaults ensure that the assigned object will rotate as necessary to continually look towards the direction of the path curve throughout the entire motion. The object will also bank appropriately through areas of varying degrees of curvature if the Degree option is set to a value other then zero.

  1. Create a NURBS curve to define the motion path that you want the object to follow.

  2. Create a cone primitive using Objects Primitives Cone.

  3. Position the cone so that the point that should follow the curve (the tip of the cone) is at the origin. Orient the cone so that it will start at the beginning of the curve to your specifications. Tip: If the final position of the motion curve is not near the origin, make a copy of the curve (Edit Duplicate object) and place the start of the copied curve at the origin. This curve can be deleted later.

  4. Create a new group for the object in this position (Edit Group). See the following example.

  • Pick the grouped object to which you want to assign a motion path, then select Set motion. The system prompts:
    Pick a curve to be used as a motion path.

  • Click directly on the curve that you want to assign as the motion path. It is assigned as a motion path for the active object.

  • To view the animation, select Animation Playback. Because the Follow option is toggled on as the animation plays back, notice how the object rotates to follow the path curve in such a way that it is continually looking straight ahead throughout the entire frame sequence.

    The Action Window displays action curves for the rotation of the object around all three axes (see Action window on page 109).

    These curves represent the necessary rotation of the object to maintain the original orientation to the path curve. You can edit any of these action curves to fine tune the animation of the object.

    Using the Flow Option

    This example describes how to animate a snake slithering along a path.

    The first step is to create the model of the snake (you can use a simple cylinder primitive if you want). When the model of the snake is constructed, create the path that you want it to follow.

    Open the Set Motion Options window and toggle Flow on. The default options ensure that the assigned object maintains its original orientation to the path curve throughout the entire motion and that it banks appropriately through areas of varying degrees of curvature. Both of these options should be left toggled on.

    Set the Maximum Bank Degree option to a positive number (such as 30, for example), and click the Save button to save the current parameter settings.

    Two preliminary steps are necessary to achieve smooth and natural movement when using Flow; these are noted in the following steps, 1 and 3.

    1. Position the object (the snake body in this case), so that the tip of its head (the front most point of the object) is at the start point of the path curve.

    2. Select Xform Local Set pivot to set the rotation pivot to the tip of the snake's head (the front of the object).

    3. Select Xform Rotate on the object to orient the snake so that it is looking in the direction it will travel along the motion path. The snake (object) should be positioned so that it is aligned tangent to the start of the curve.

    4. Select the model of the snake that you have created to make it active.

    5. Select Set motion. The system prompts:
      Pick a curve to be used as a motion path

    6. Click directly on the curve that you want to assign as the motion path. A series of messages appear on the prompt line informing you of the animation's progress.

    7. To view the animation, select Animation Playback. If you don't like the generated animation, you can delete the clusters that were created to animate the snake. This can be done by ensuring that the clusters are the only active geometry and then selecting Delete Del active. Since all the flow animation was on the clusters, the snake will no longer be animated and you can start again. You may want to try increasing the Flow Slices and/or the Maximum Bank Degree values to increase the amount of banking.

    Animating the Camera Along a Motion Path

    1. Select Layouts All windows All (User Defaults) to create a default window set.

    2. Create a curve that represents the path you want the camera's eye to follow.

    3. Select Cameras Reset view and click in the perspective window that belongs to the camera you want to affect. This forces the Up point of the camera to point straight up above the camera eye.

    4. Select Pick Object and pick the eye dag node above the camera as shown in the following.

    5. Select Set motion- to display the option window. Ensure that only the Motion Path and Camera Up options are selected, then click Go to invoke the function.

    6. Click directly on the curve that you want to assign as the motion path. A new motion path is created for the Up dag node of the camera.

    7. Select Animation Playback to view the camera animation. The animation may not be what you desired because although the camera is moving, its lookat point is still fixed.

    Animating the lookat point of the camera

    1. Pick the view dag node, which is the dag node directly above the camera view node as shown in the following illustration.

    2. Select Set motion- to display the option window.

    3. Change the Start and End values to 1 or 2 frames less than what they were set for animating the camera up and eye nodes. Tip: You can use negative frame values if necessary. For example: if the eye and up nodes were animated with frame values of 1 and 30, use -3 and 27.

    4. Ensure that only the Motion Path option is currently selected, then click Go.

    5. When prompted to select the curve to be used as a motion path, click on the same curve that is being used as the motion path for the eye dag node.

    6. Select Animation Playback to view the camera animation. Tip: It will be easier to monitor the camera animation if you toggle the camera visible. To do this, select Display Tgl camera. Ensure that the camera is also toggled ON in the Optimization Options section of the Animation Playback options window.

    Set Motion Options

    To view or change Set motion options, select Set motion- from the Anim menu, or double-click the icon to display the Set Motion Options box.

    Motion Path

    Applies motion path animation to any valid active objects. Motion Path animation means that the objects move along a selected curve. The Motion Path option creates X, Y and Z axis translation animation for each of the selected objects. If any translation animation already exists for the active objects, it is replaced by the Motion Path animation.

    The curve you want to use as the motion path must exist before you invoke the function. Curve on surface elements are not valid motion paths and must be converted to world space curves using Curve Edit Create Duplicate curve.

    Tip: If you are not using the Flow option, then the point on the object that makes contact with the motion path curve during animation is the point that touches the origin (0,0,0) when there is no translation on the dag node to be animated by a motion path.

    To change the point on the object that will travel along the curve, position the object so that this point touches the origin, group the object using Edit Group, then use Anim Set motion on the grouped dag node.

    Follow

    Ensures that the object assigned to the motion path rotates as necessary to maintain its original orientation to the path curve throughout the entire animation along the path. It looks in the direction in which it is traveling (up or down, left or right) at all times. The Follow option animates the rotational parameters of the object in conjunction with the Bank option.

    Camera Up

    Applies a motion path curve to animate the Up dag node of a camera that has animation on or above its Eye dag node. This lets you control the camera animation, avoiding the camera twisting and turning upside down if the Up dag node is not animated with respect to the Eye dag node.

    Camera Up creates X, Y and Z translation animation for the Up dag node of a camera. To create the animation on the Up dag node of the camera, pick the dag node above the Eye of the camera. If any translation animation already exists for the Up nodes, that animation is deleted.

    Before selecting Set motion, pick the Up dag node for the camera you want to affect and move the Up point to the world space position that describes the sense of up for the eye point. Then select Set motion and a NURBS curve is created that will be assigned as a motion path for the Up dag node of the camera.

    Tip: Alternately you could use Cameras Local Move camera Twist to position the up point. It is easier to position the up point of the camera if you display the camera using Display Tgl camera.

    Bank In/Out

    Maximum Bank

    The maximum allowable degree of banking depends on the current Maximum Bank value. If set to 0.00, the object will not bank even if the Bank option is toggled on. The object will bank the amount specified by the Maximum Bank option when it is at the point on the curve with the highest curvature. It will bank a proportional amount of degrees as the curvature changes, and will not bank at all where the curvature is a straight line.

    Range

    Determines whether the animation is applied to the entire frame range of the animation (All) or only to the frame range specified by the current Start and End Frame values (Option Window).

    Start/End frame

    Defines the start and end frame values for the animation in relation to the entire animation. Start and End values only apply when Range is set to Option Window.

    Sample By

    Used by the Follow and Bank options to determine how often to sample the positional animation when computing the rotation animation. A keyframe is created for every Sample By frame.

    This option is also used by the Camera Up option to determine how often to sample the Eye dag node's animation of a camera. The motion path curve that is created for the camera will have one CV for each sample of the eye dag node's animation.

    Flow

    When you toggle Flow ON (indicated by a check mark), Flow animation is applied to the geometry below each of the picked dag nodes.

    What is Flow?

    Flow animation means that the object deforms in such a way as to follow the shape of its positional and rotational animation. For example, if Flow animation is applied to an object animated with a motion path, then the object takes on the shape of an assigned motion path as it travels along the length of the path. This allows for bending and twisting of the assigned object as it travels along the path rather than producing a rigid body animation.

    Flow creates a hierarchy of animated clusters containing sections of the geometry below the picked dag node. The animation currently carried by the picked dag node is removed and used to compute the animation for the clusters. Flow does not use the Start and End values in the option window. It simply removes the existing animation on the picked dag node and applies it to each of the cluster nodes that are created, with an additional time offset curve for each cluster.

    Using Flow

    When using the Flow option, before you invoke Set motion, you must move the rotation pivot for the object to the front of the object. You must then position the object so that its front touches the start point of the path.

    For example, if the object is animated along a motion path, position the object so that the front of the object touches the first point on the motion path curve as shown in the next illustration. This can be accomplished easily by using the magnet function to snap the object's pivot point to the first CV of the path curve.

    Flow Restrictions

    Using Flow Slices

    When you toggle Flow ON, the Set Motion Options window expands to display the following slider.

    Flow Slices

    This is used by the Flow option to determine the number of slices, or clusters, that the object should be divided into for flowing.

    Each cluster is animated independently. Unnecessary slices can be expensive in terms of processing speed. As a rule, the more CVs in the lengthwise direction of the object (from front to back as it travels along the path), the more slices you need. For a simple object such as a cylinder for example, a low number of slices is sufficient.





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