|
SAA_fcurvelistGetElements
SAA_fcurvelistGetNbElements
Gets the function curves currently loaded into the Fcurve window.
SAA_fcurvelistGetNbElements scene nb
SI_Error SAA_fcurvelistGetElements scene nb fcurves
scene
The current scene. Use SAA_AllocScene to allocate a scene.
nb
Number of function curves in the Fcurve window.
fcurves
Returns an array of function curves. Use SAA_AllocElem to allocate an fcurve.
Possible Errors
SI_ERR_NO_FCV_EDITOR if SOFTIMAGE 3D is running in standalone mode.
SAA_fcurvelistGetElements() returns SI_ERR_WRONG_COUNT if nb
does not match the actual number of function curves in the Fcurve window.This
return value is a warning, not an error. The function still returns the requested number
of function curves. If nb is greater than the actual number of function
curves, the function returns all function curves.
Notes
- The Fcurve window does not have to be open for you to use these functions.
See Also
Example
- set scene [SAA_AllocScene]
- SAA_sceneGetCurrent $scene
- SAA_fcurvelistGetNbElements $scene nb
- if { $nb == 0 } {
- set err "No fcurves in Fcurve window"
- SAA_statusBarSet err $SAA_Constants(SAA_WARNING_CODE)
- return $err
- }
- set fcurves [SAA_AllocElem $nb]
- SAA_fcurvelistGetElements $scene $nb $fcurves
|