GetSource

Categories

animation

Description

Gets the animation sources of parameters.

Scripting Syntax

oReturn = GetSource( InputObjs, SourceMask );

Return Value

Returns an XSICollection that contains a list of animation sources for the specified parameters. Returns nothing if there is no animation source of the specific type.

Parameters

Parameter Type Description
InputObjs String List of parameters.

Default Value: Currently selected and marked parameters.

SourceMask siSourceType Type of animation source.

Default Value: siAnySource

Examples

VBScript Example

dim source
dim fcurve, crvtype, nokeyval, nbKeys, extrap, seq, lowclamp, highclamp
GetPrim "Null"
' Save some keys on the local X position of the Null object
SaveKey "Null.kine.posx", 1, -5.0
SaveKey "Null.kine.posx", 25, 7.0
SaveKey "Null.kine.posx", 50, 2.0
' Get the fcurve animation source
set source = GetSource( "Null.kine.posx", siFCurveSource )
for each fcurve in source
        GetFCurveInfo fcurve, crvtype, nokeyval, nbKeys, extrap, seq, lowclamp, highclamp
        LogMessage "NbKeys = " & nbKeys
        LogMessage "FCurve type = " & crvtype
next

See Also

GetFCurveInfo GetValue Parameter.Source