Gets the animation sources of parameters.
oReturn = GetSource( InputObjs, SourceMask ); |
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.
Parameter | Type | Description |
---|---|---|
InputObjs | String | List of parameters.
Default Value: Currently selected and marked parameters. |
SourceMask | siSourceType | Type of animation source.
Default Value: siAnySource |
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 |