Copy link to clipboard
Copied
I’m building an expression for a keyframe-less animation, but I need a specific easing curve. The basic linear, easeIn, and easeOut functions do not give me as much easing control as I need. Right now I’m using the linear function and pulling the easing properties from a Slider Control, however I would like to hardcode a specific ease into the expression, so that it runs without the need of the Slider.
I need the easing to match the curve from the attachment. (I pulled both bezier handles as far to the left as I could.)
I’ve tried many different options, but none have been able to replicate this curve exactly. Any help would be greatly appreciated!
Copy link to clipboard
Copied
It's just a Bèzier curve with the tension set to 1/ -1, respectively and you would need to recreate that, which is possible, but tricky. We've discussed this a number of times for spatial curves, so if you look it up you should find soem info. Otherwise it would probably a lot simpler to just create a "reference curve" on a dummy layer and use valueAtTime() in conjunction with a linear() function to remap the timing.
Mylenium
Copy link to clipboard
Copied
I am trying to avoid using a reference curve, so that there will be no keyframes present. This will be part of a larger script that I'm writing. Any advice for getting this type of curve directly into the expression?
Copy link to clipboard
Copied
yes, i had the same issue, you need to reference a simple slider that goes from 0 to 1 and you can manually set the graph as you like. let me know if you need help with that
Copy link to clipboard
Copied
Just grab the formula from a free JavaScript reference and insert the data. You already have your three points: [timeA,valueA][0,0][timeB,valueB]. Should be easy enough if you assume that the t interval is a frame. Values can be derived from key frames, in- and out-points or whatever you fancy. The real trick then is to tweak it and account for some oddities in AE that may affect the curve. You may need to include some extra multiplier to control the bias.
Mylenium
Find more inspiration, events, and resources on the new Adobe Community
Explore Now