Related Discussions
...

Hi Spine Forums - Question : In the easing graph, is there any way to use a formula/script?

I currently use a bunch of formulas/scripts in AfterEffects, mostly from Dan Ebberts @ motionscript.com. Stuff like this simple bounce:

n = 0;
if (numKeys > 0){
n = nearestKey(time).index;
if (key(n).time > time){
n

---

;
}
}
if (n == 0){
t = 0;
}else{
t = time - key(n).time;
}

if (n > 0 && t < 1){
v = velocityAtTime(key(n).time - thisComp.frameDuration/10);
amp = .05;
freq = 4.0;
decay = 8.0;
value + v[i]amp[/i]Math.sin(freq[i]t[/i]2[i]Math.PI)/Math.exp(decay[/i]t);
}else{
value;
}

Any insight is appreciated. ChzBoi

Hi ChzBoi, you currently can't insert your own formulas in the curves editor, I wonder what Nate thinks about this though!

Thanks for the info, Erikari - maybe someday it will be added!