THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/04/2005 at 11:02, xxxxxxxx wrote:
Cinema 4D Version: 8.503
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
My client wants to check animation data against equipment limits (max/min position, max speed). Some of the animation interpolation is curvilinear. I could do this two ways:
1. Get the curves and use maths to find maxima and minima.
2. Sample the timeline at a specified time interval to find the maxima and minima (with all discreet sampling caveats).
The client needs this to be simple and inexpensive, so unless there is a simple way to do 1., 2. must be the alternative.
Any way to get spline data or curves from the animation track/sequence/keys?
On 21/04/2005 at 12:47, xxxxxxxx wrote:
For value keys you can use GetKeyValue() to access the tangents. However, I believe it will be very complicated to figure out the maths behind all the interpolation types available. I'd settle for a numerical algorithm.
On 21/04/2005 at 14:04, xxxxxxxx wrote:
Right. The frame (BaseTime) sampling method (2) is the one that I have employed. The client agrees that this is sufficient for their purposes.
One observation and question regarding XPresso sliders: the client is using an XPresso tag to control rotation and position of elements (objects) - like a control panel. These are setup as sliders on the object containing the XPresso tag. The animation keys on the tracks for some of these sliders have soft interpolation. The value goes up to 2600, stays there for some time, and goes back down. And this matches the animation display. But the F-curve shows the value continuing to rise to the top of a curve and back between these keys. Despite the F-curve curvature, is there a limiting factor involved nonetheless?