ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Intertial Bounce Effect... but backwards?

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Fahd Chishty
Re: Intertial Bounce Effect... but backwards?
on Jan 23, 2015 at 8:35:52 am

To make respond to keyframes, you need to put values of startVal and endVal by keys.

startVal = key(1);
endVal = key(2);

Secondly, to solve the position only problem, I replace the transform.position[0] by value[0]
Or if you want to animate the 2nd value make it [ans, value[1]]

freq = 2;
decay = 5;
delay = 0.15;
dur = 0.12;
myDelay = delay;
t = time - (inPoint + myDelay);
startVal = key(1) ;
endVal = key(2);
amp = (endVal - startVal)/dur;
w = freq*Math.PI*2;
ans=endVal + amp*(Math.sin(t*w)*Math.exp(decay*t)/w);
[value[0], ans]


--
Fahd Chishty
Motion Design Artist
MotionCue


Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]