ModelData:getAnimationKeyframe

Returns a single keyframe in a channel of an animation.


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

Arguments

NameTypeDescription
indexnumber The 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 (either 3 or 4 numbers depending on the property).

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

Arguments

NameTypeDescription
namestring The name 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 (either 3 or 4 numbers depending on the property).

See also