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. type "animatable item type name" ( <additional information> );
type "Surface CV" (2, 3);
type "Curve CV" (2, 4);
type "Polyset Vertex" (62);
The general form of the channel statement is:
channel "channel name" (action_name [extract axis] (action_name...));
Param control for details). For example, Dag Nodes have X Translate, Y Translate, Z Scale, and Visibility. These names, which appear in the param control window, can be used as channel name.Note: Some channels cannot be animated: for example, knot spacing or an item's position in a hierarchy. You cannot assign a channel that is not part of the current animation item type. For example, Animation SDL does not differentiate between different types of lights, so it is possible to try to read a Spot spread channel onto a point light, but this will result in an error.
Within the parentheses of the channel statement, you specify the list of actions that make up the channel. If the action is a motion path, you must specify which axis of the 3D NURBS curve to use. Additional actions contained within additional parentheses act as timewarps on the original curve (see Anim
Time Warps
New time warp).The following is a commented example Animation SDL file of an animated cylinder.
DEFINITION
/*


3-














µ











*/








#2 (





= 3,




= (0.0, 0.0, 0.0, 1.0, 1.0 , 1.0 ),


= (

( (0.0, 0.0, 0.0),1.0),

( (3.0, 3.0, 3.0),1.0),

( (-4.0, 2.0, -6.0),1.0),

( (-3.0, 2.0, 3.0),1.0) ));
/*
µ











*/µ




_



µ



_


( 



#2, 
= 

_






, 

= 


_






);
/*









µ












*/



µ


_






µ_



.
µ

( 
= 

_




, 

= 


_




, 

= (



µ


_




(1.0,0.0 , 

_




, ( -0.27852, -0.96043 ), 

_




, (0.27852,0.96043) ),



µ


_




(30.0,30.0, 

_




, (-0.27852,-0.96043 ), 

_




, (0.27852,0.96043) )) );



µ


_






µ_



.
_



( 
= 

_






, 

= 


_






, 

= (



µ


_




(1.0 , 1.0 , 

_




, (1.0 ,0.0), 

_




, (1.0 , 0.0) ),



µ


_




( 30.0 , 4.0 , 

_




, (1.0 ,0.0), 

_




, (1.0 , 0.0) )) );



µ


_






µ_



.
_




( 
= 

_






, 

= 


_






, 

= (



µ


_




(1.0 , 0.0, 

_




, (-1.0 , 0.0), 

_




, (1.0 , 0.0) ),



µ


_




(30.0 ,360.0 , 

_




, (-1.0 , 0.0 ), 

_




, (1.0, 0.0) )) );



µ


_




µ



( 
= 

_






, 

= 


_






, 

= (



µ


_




(1.0 , 1.0, 

_




, (-0.70711,-0.70711 ), 

_




, (0.70711,0.70711) ),



µ


_




(30.0 ,30.0 ,

_




, (-0.70711,-0.70711 ),

_




, (0.70711,0.70711) )) );



µ


_






µ_



.
_






( 
= 

_






, 

= 


_






, 

= (



µ


_




(1.0 , -0.2612 , 

_




, (-1.0 ,0.0), 

_




, (-1.0 ,0.0) ),



µ


_




( 30.0 , -0.18593, 

_




, (-1.0 ,0.0), 

_




, (-1.0 ,0.0) )) );



µ


_






µ_



.
_






( 
= 

_






, 

= 


_






, 

= (



µ


_




(1.0 ,0.2612 , 

_




, (-1.0 ,0.0 ), 

_




, (-1.0 ,0.0) ),



µ


_




( 30.0 , 0.58722, 

_




, ( -1.0 , 0.0 ), 

_




, (-1.0 ,0.0))) );



µ


_






µ_



.
_






( 
= 

_






, 

= 


_






, 

= (



µ


_




( 1.0 , 0.5 , 

_




, ( -1.0 , 0.0 ), 

_




, ( 1.0 , 0.0 ) ),



µ


_




( 30.0, 0.90137, 

_




, ( -1.0 , 0.0 ), 

_




, (-1.0 ,0.0))) );









{










( 






);
/*










µ






µ






. *//*




















µ
µ






*//*






µ





µ












. */
















( µ



_


[
] ( 


µ_



.
µ

));
















( µ



_


[
] ( 


µ_



.
µ

));
















( µ



_


[
] ( 


µ_



.
µ

));
/*






















µ


. */












( 


µ_



.
_



);{
/*























*//*










. 











*//*



.

µ














. */










( 

_


);













( 


µ_



.
_




( 
µ



));}
{
/*

















µ


, *//*











, 










*//*











µ






µ







*//*
















. *//*













µ





\
*//*


µ
















. */}
{
/*







µ











*//*

. */{












( 2, 4 );/*







= 2,
= 4 


µ


. */















( 


µ_



.
_






);















( 


µ_



.
_






);















( 


µ_



.
_






);}
}
}