LastKey
 
 
 

LastKey

Description

Moves to the last key frame for the given parameters.

Scripting Syntax

oDouble = LastKey( [InputObjs], [Time], [Layer] );

Return Value

Returns the frame number of the last key frame as a Double. If there is no key then the following is returned: -1.#INF for C++, "-1.#INF" for VBScript and Number.NEGATIVE_INFINITY for JScript.

Parameters

Parameter Type Description
InputObjs String List of animatable parameters (for example "cone*/kine.local.pos").

Default Value: Currently selected and marked parameters

Time Number Not used.

Default Value: Current frame

Layer Integer Animation layer

Default Value: Current animation layer (-1)

See Also

AddFCurve RemoveAnimation RemoveAllAnimation SaveKey RemoveKey PrevKey FirstKey FCurve.Keys