AnimChannel:GetClosestKeyID(when)

Version added: before 9.5

Returns the closest keyframe to the left from the given frame

ArgumentTypeDescriptionDefaultVer
whenint32Frame number< 9.5

Return type (int32): the closest keyframe id

Returns the closest keyframe to the left from the given frame. If the given frame has a key, then that keyframe is returned.
String "GetClosestKeyID" is found in the following scripts:

Nudge Keys (by Lukas)

MR Tween Machine (by eugenebabich)

MR Key Motion (by eugenebabich)

Selected Keys to Zero (by Lukas)

Morph-Lipsync (by A.Evseeva)

See all...