ModelData:getAnimationKeyframe

Edit

Returns a single keyframe in a channel of an animation.

time, ... = ModelData:getAnimationKeyframe(animation, channel, keyframe)

Arguments

NameTypeDescription
animationnumber The name or index of an animation.
channelnumber The index of a channel in the animation.
keyframenumber The index of a keyframe in the channel.

Returns

NameTypeDescription
timenumber The timestamp of the keyframe.
...number The data for the keyframe (3 or more numbers, depending on the property).

Notes

The number of values returned after time depends on the AnimationProperty targeted by the channel:

See also