PDA

View Full Version : Setting up an animation MaxScript for easing


PreatORiAn
01-23-2010, 11:46 AM
Hey there,
Don't have that much Maxscript background, but considering I know other scripting languages, this should work out :)
I'm very much used to the Penner Easing classes (in Flash and AE), and I want to incorporate these in 3dsmax aswell, using a maxscript. The easing classes work pretty easy, by just calculating a value between 2 keyframes, returning in a specific ease (can be bouncing, exponential, based on sin, whatever).

Just converting the easing-types to MS should be easy. However I'm looking for a way to put this onto the Curve Editor of max, preferably without creating keyframes on every single frames. I've taken a brief look in the script-reference, but haven't really found anything useful so far. Can someone at least point me in the right direction? :)


ps. for reference, check out the easing classes on http://www.robertpenner.com/easing/easing_demo.html and http://labs.zeh.com.br/blog/?p=120

PEN
01-23-2010, 01:00 PM
All this already exists in Max. You can set the curve interpolation types for both in and out of curves.

JHN
01-23-2010, 03:38 PM
And if you're looking for a scripted approach, these functions will help:

http://forums.cgsociety.org/showpost.php?p=4334220&postcount=31

-Johan

PreatORiAn
01-25-2010, 09:15 AM
Yeah that wasn't exactly what I was looking for :) The translation of the easing types is helpful tho.
The curve interpolation types within 3d max don't exactly cover the easing classes I'm using, considering they're "just" beziers.
Basically, I'm looking for a way to control the easing by making an UI. However, I'm not really sure how to access the time line from there (considering the script has to read out the "from" and "to" values, and it calculates the return value per frame/tick), and how I should process the easing classes (maybe just set a key frame for every frame?).
...Suggestions?

CGTalk Moderation
01-25-2010, 09:15 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.