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

 

 


SAA_fcurvelistGetSelectedElements

SAA_fcurvelistGetNbSelectedElements

Gets the selected function curves in the Fcurve window.

SAA_fcurvelistGetNbSelectedElements scene nbsel
SAA_fcurvelistGetSelectedElements scene nbsel selfcurves

scene

The current scene. Use SAA_AllocScene to allocate a scene.

nbsel

Number of selected 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_fcurvelistGetSelectedElements() returns SI_ERR_WRONG_COUNT if nbsel 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 selected function curves. If nbsel is greater than the actual number of selected function curves, the function returns all selected 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_fcurvelistGetNbSelectedElements $scene nbsel
if { $nbsel == 0 } {
    set err "No selected fcurves in Fcurve window"
    SAA_statusBarSet err $SAA_Constants(SAA_WARNING_CODE)
    return $err
}
set selfcurves [SAA_AllocElem $nbsel]
SAA_fcurvelistGetSelectedElements $scene $nbsel $selfcurves

SAA Index ] Examples SAA calls index ]

copyright Video-Collage Inc.