Animation file operations


Introduction to Animation file operations

Purpose

The Export Anim and Import Anim menu items are used to save and retrieve animation SDL files. Use them to save the animation from one object, hierarchy, or scene, and apply it to another model or scene.

About Animation SDL files

An Animation SDL file is similar to, but distinct from, a regular SDL file (see File Export SDL). An Animation SDL file consists of two sections, the DEFINITION section and the HIERARCHY section.

Note: The HIERARCHY section may be omitted. In this case, the Animation SDL file just contains a library of animation curves (or actions).

In the DEFINITION section, you specify the description of the curves (or actions) as you do in regular SDL. The syntax for actions is the same for Animation SDL and regular SDL.

In the HIERARCHY section, you describe how the animation curves in the DEFINITION section are applied to the model's hierarchy. The braces, { } bracket these descriptions. You must supply at least one set of braces. The order of the braces describes the hierarchy. Matching pairs of braces inside another matching pair indicates that the inner pair refers to an object that is a child of the outer pair's object. Matching pairs that follow one another indicate that the pairs are children of the same parent. See the following example.

HIERARCHY

{ <----- Picked object

Apply animation to picked object.

{ <----- A child of the picked object.

Apply animation to child of picked object.

{ <----- A child of a child of the picked object.

Apply animation to child of a child of picked object.

}

}

{ <----- Another child of the picked object.

Apply animation to other child picked object.

}

}

If an object has no animation, but a descendant does, you must still specify the braces for the object, but omit the statements applying any animation to it. This is also necessary for siblings. If the leftmost sibling is unanimated, but the one to its right is animated, you must specify an empty pair of braces as a placeholder for the leftmost child.

There are two statements in the HIERARCHY section that apply animation to objects. The first is the type statement, which indicates the type of object that will receive the animation.

The general form of the type statement is:

type "animatable item type name" ( <additional information> );
Examples of the "animatable item type name" are Dag Node, Camera, Light, Shader, Surface CV, Curve CV, and Polyset Vertex.





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