AnimationTrack:GetTimeOfKeyFrame() for new Curve Editor animations?

Reproduction Steps
A recent update pushed a new way to create animations called Curve Editor. You can enable this while creating an animation and there’s no way to disable it after you’ve enabled it. I’ve enabled it and created an animation using it, however now when I try to use GetTimeOfKeyFrame() on this animation, I get this error:

image

GetTimeOfKeyFrame() works fine for animations that don’t have Curve Editor enabled. I’m looking for a way to still get the time of a keyframe/animation event for my Curve Editor-enabled animation. Does anyone know a way?

3 Likes