Skip to content

class AnimationTrack

Represents a track for a node in an animation. Maintains a collection of key frames. Currently animation and related types are API-only and not used by processors or external format's like *FBX, USD, GLTF, BGEO and etc)

Properties

PropertyDescription
NameThe name of the AnimationTrack object. (Inherited from Object)
NodeGUIDThe GUID of the node this track animates.

Methods

MethodDescription
AddKeyFrameAdds a key frame to the track.
AddObserverAdds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object)
CreateTransformKeyFrameCreate and add a full transform key frame. Finally return the newly created object.
FindFrameByFrameNumberFind key frame by frame number and return the object or null.
GetClassGet the name of the AnimationTrack class. (Inherited from Object)
GetKeyFrameAtIndexGets the key frame at given index.(Use FindFrameByFrameNumber if you want to get by frameNumber).
GetKeyFrameCountGets the number of key frames in the track.
InitTransformKeyFramesInitialize number of transform key frames. The operation will reset any currently set key frames.
IsAReturns true if AnimationTrack is a or is a descendant of the class named as the type parameter. (Inherited from Object)
IsNullReturns true if the AnimationTrack object is invalid. (Inherited from Object)
IsSameObjectAsReturns true if the AnimationTrack object is valid. (Inherited from Object)
NonNullReturns true if the AnimationTrack object is valid. (Inherited from Object)
PrintInfoPrints the content/info of the AnimationTrack object to the log. (Inherited from Object)
RemoveKeyFrameRemoves a key frame from the track.
RemoveObserverRemoves a previously added observer object. (Inherited from Object)
SortByFrameNumbersSort already inserted key frames by frame numbers in ascending order.

Static methods

MethodDescription
IsClassAReturns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object)
SafeCastSafeCast makes sure the input object is of a class that can be cast into spAnimationTrack, and if this is the case, returns the object cast into spAnimationTrack. (Inherited from Object)

Properties details

Name

The name of the AnimationTrack object. (Inherited from Object)

NodeGUID

The GUID of the node this track animates.

Methods details

AddKeyFrame

Adds a key frame to the track.

AddObserver

Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object)

CreateTransformKeyFrame

Create and add a full transform key frame. Finally return the newly created object.

FindFrameByFrameNumber

Find key frame by frame number and return the object or null.

GetClass

Get the name of the AnimationTrack class. (Inherited from Object)

GetKeyFrameAtIndex

Gets the key frame at given index.(Use FindFrameByFrameNumber if you want to get by frameNumber).

GetKeyFrameCount

Gets the number of key frames in the track.

InitTransformKeyFrames

Initialize number of transform key frames. The operation will reset any currently set key frames.

IsA

Returns true if AnimationTrack is a or is a descendant of the class named as the type parameter. (Inherited from Object)

IsNull

Returns true if the AnimationTrack object is invalid. (Inherited from Object)

IsSameObjectAs

Returns true if the AnimationTrack object is valid. (Inherited from Object)

NonNull

Returns true if the AnimationTrack object is valid. (Inherited from Object)

PrintInfo

Prints the content/info of the AnimationTrack object to the log. (Inherited from Object)

RemoveKeyFrame

Removes a key frame from the track.

RemoveObserver

Removes a previously added observer object. (Inherited from Object)

SortByFrameNumbers

Sort already inserted key frames by frame numbers in ascending order.

Static methods details

IsClassA

Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object)

SafeCast

SafeCast makes sure the input object is of a class that can be cast into spAnimationTrack, and if this is the case, returns the object cast into spAnimationTrack. (Inherited from Object)