vcanim.gif (8357 bytes)SWC_fcurveCreate
Home ] Sales ] Products ] Services ] Support ] Downloads ]

 

 


SWC_fcurveCreate

Create fcurves

SWC_fcurveCreate is a library procedure that allows users to create fcurves for a particular attribute of an element contained in the context passed to the procedure. Input data is a context array name and attribute's name.

package require SWC
SWC_fcurveCreate context attribute
context
specifies the element for which attribute fcurves will be created.
attribute
the name of the attribute whose fcurves are to be created. This must be a valid attribute for the type of object in the context.

Return Value

If SWC_fcurveCreate succeeds, it returns the ID of the fcurve of the specified attribute or a list of fcurves ID if there is more then one fcurve for the specified attribute. The fcurves of the list are in the same order as they appear in the attributes tables. Fcurve ID can be passed to any SAA function which takes a pointer to fcurve (SAA_Elem) as a parameter. If this procedure encounters an error it will return an error string message in the TK console window.

If the context is not of an element which has the specified attribute it is an error.

Examples

SWC_elementGet MyContext
Elem4
SWC_fcurveCreate MyContext Position
ElemArray5.0 ElemArray5.1 ElemArray5.2
SWC_sceneSave MyContext

brings up SWC widgets to select allocate and load an element and corresponding information, such as database resource file name, database and scene. Call the SWC_fcurveCreate function to create fcurves of the attribute Position for the element presenting in MyContext. Save the scene presenting in MyContext

See Also

Element Attributes
Camera Attributes
Light Attributes
Material Attributes
Model Attributes
Texture 2D Attributes

Behaviors Overview ] Behavior Evaluate ] Behavior Edit ] Debugger ] Console ] Find ] SAA Library ] SW library ] SWC library ] SWN library index ] SWU library ] Attributes Index ] Scripting Examples ]

copyright Video-Collage Inc.