Play animation frames based on curve value

Hi,

Given an animation with curve data like, distance or speed, would it be possible to set the animation frame based on a given curve value?

For example, if the current distance from a start position is 500 and growing, then I know that the animation should be at frame 40.

The only thing I have found is that I can convert a Sequence Player to a Single Frame Animation, and then feed it an explicit time. But I can’t seem to find how to get the time, from the animation, by passing in a curve value.

I’m trying to sync the start and stop movements by tracking distance from start and predicting distance until the character stops, and then scrub(?)/play the animation manually. Am I going about things the wrong way? What’s the point of having curve values like speed or distance if we can’t read/use them to manipulate the animation.