|
File > Import > Anim |
Importing Saved Out Animation | ||
|
| |||
File > Import > Anim lets you animate objects in your model by importing animation from an ASCII file in animation SDL format. How to Use>
| |||
|
If you click the Hide List button, the File Lister with Show List appears. Type in the file name and click Read Anim to retrieve the file. |
The animation curves from the DEFINITION section of the SDL file are read into Alias, and the animation channels from its HIERARCHY section, which use the curves from the DEFINITION section, are assigned to the picked object. >
Import Anim Options | ||
|
You can create Animation SDL files by selecting objects in Alias, and invoking File > Export > Anim. You can also generate your own Animation SDL files by writing your own procedures or gathering data from other sources, and then use this function to retrieve them. |
Match Method
| ||
|
For these methods, see the following section for more information: Handling Transitions Between Retrieved And Existing Animation on page 130, Expressions, Motion Paths and Timewarps on page 131, and References To Parameter Curves And Objects In Expressions on page 131. |
Retrieve Method
Parameters
Frame Range
Placement
| ||
|
The Before and After options are only available when using the Insert retrieval method. See the example on page 132. |
Spacing
Copies
Retrieve Joint IK
Overwrite Names
Handling Transitions Between Retrieved And Existing AnimationSince the Replace All operation removes all existing animation from the affected parameters, you don't have to worry about transitions between existing and retrieved animation. However, transitions do become an issue for Replace Part, which only does a partial replacement, and Insert. When the end of one segment of animation must be joined to the start of another, and there is a gap between them, it is bridged with linear tangents on the outbound side of the left segment and the inbound side of the right segment. If there is no gap between the two segments, the last keyframe of the left segment and the first keyframe of the right segment both occur at the same time. Since a parameter cannot have more than one keyframe at a given time, the left keyframe is moved back by 0.01 frames and the two are joined by linear tangents. An exception to this is when the two keyframes have the same value, as well as time. In this case, they are merged into a single keyframe which has the inbound tangent of the old left keyframe and the outbound tangent of the old right keyframe. Expressions, Motion Paths and TimewarpsDuring the Replace Part and Insert operations, if a parameter is animated by an expression, motion path, or timewarp, either in the file or in the existing animation, then it is not retrieved. When this happens, a prompt appears, giving the option to either cancel the retrieval or go ahead with it but without affecting those parameters. Only the Replace All operation retrieves these kinds of animation. When performing a Replace All operation, Copies is ignored for expressions and motion paths, as it is basically meaningless. Multiple copies of timewarps may be retrieved during Replace All, but be careful. You may get unexpected results, since the linear tangent transition between the end of one copy and the start of the next may not be what you want. References To Parameter Curves And Objects In ExpressionsWhen using Replace All, you can retrieve expressions that reference parameter curves in the SDL file. If Overwrite Names is off, or if there is a conflict between existing and retrieved curves, it is possible that the names of some of those curves will change during retrieval. When this happens, the expression is considered invalid and is ignored during retrieval. Similarly, a retrieved expression may reference an object from the SDL file whose name is different from that in the existing animation. If the expression contains a relative reference to an object in the retrieved hierarchy, it refers to the corresponding object in the existing animation, regardless of any difference in the names of the objects. If the object reference is absolute, the expression remains unchanged and refers to the object in the existing animation having the same name. If there is no such object, the expression will be considered invalid and will be ignored during retrieval. Multiple-Instance ActionsIt is possible for two or more parameters to share the same action, meaning that they share the same parameter curve. When this happens it may not be possible for curve names to be preserved. For example, if two parameters that share a curve named A are being replaced with animation in which the two parameters have completely different curves, then it is not possible to preserve the curve name because that would imply having two completely different parameter curves named A, which is not allowed Whenever this situation occurs, you are informed that some curve names may not preserved, and have the option to cancel the retrieval. If you choose to continue, some of the parameters will be assigned curves with new names. ExampleThe following example shows what happens when frames 4 through 12 of an Animation SDL file are retrieved and inserted into an existing animation starting at frame 7. For purposes of clarity, only one parameter is shown, but the same process would be followed for each retrieved parameter. For this example, the option box is set as follows:
When Go is clicked, the insertion process then proceeds in the following manner: >
The animation in the SDL file looks like this:
Keyframes are inserted at the start and end points of the range being retrieved. Since the end of the range is beyond the end of the curve, the curve is extended with a linear tangent. The keyframe inserted at the start of the range is given the same inbound tangent type as the keyframe to its right, and the same outbound tangent type as the keyframe to its left:
The segments of the curve outside of the range are deleted:
Next, the existing animation is prepared for the insertion. Initially, it looks like this:
A keyframe is set at the insertion point (frame 7).
The curve is split into two parts at the insertion point. The rightmost segment of the curve is shifted forward in time by an amount equal to the range of animation being inserted (8 frames) plus the spacing to be left around the inserted segment (2 frames at each end, giving a total gap of 12 frames).
The retrieved animation is inserted into the existing animation at frame 9, which is the starting frame (7) plus spacing (2 frames).
Finally, the three separate segments are joined using linear tangents.
Notes
| ||
|
For more information on the format of an Animation SDL file, see the File Format section on page 126. |
|
| Copyright © 1998, Alias|Wavefront, a division of Silicon Graphics Limited. All rights reserved. | Please send questions or comments regarding the documentation to: [email protected] |