View Full Version : How to get values of an animation curve?

04 April 2009, 09:29 AM
Hi, I'm wondering if there's a way to get a point on a curve's value if you're only given the two values and handles of the keys on each side of the point on the curve?

I'm looking at a text file with the keys values like this:

30 -2.981224874 spline spline 1 1 0;
50 -4.623208478 spline spline 1 1 0; if I'd want to find out what the value is at frame 38, is there a way to do that? Not too keen on trying to replicate maya's bezier algorithm. :/

Thanks for any help!

Robert Bateman
04 April 2009, 11:19 AM
Use the code from the anim engine example in the devkit, and call engineAnimEvaluate. No coding required.

CGTalk Moderation
04 April 2009, 11:19 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.