ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Add decay (inertial bounce) to a referenced

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Brad Pickford
Add decay (inertial bounce) to a referenced
on Jun 14, 2017 at 12:42:40 pm

Hi all,

I have been searching everywhere but can't find a solution. Basically I want to do this...

I have a character with a lazy eyeball. When I move the eyeball around I want the eyeball to rotate/roll around in the socket a bit. So I have the eyeball position animated. I have the eyeball parented to a null layer that will rotate/roll the eyeball around depending on how speed of the movement. I have worked this part out but I want to add decay to the rotation property but can't seem to get it right. Can someone help me plug the values I am getting for the rotation so that the 'decay' over time to a stop...

Thanks in advance,
Brad

p = thisComp.layer("Eyeball").transform.position.speed;
max = 200 ;
min= 0;
r = p &lt; 0 ?linear(p, max, min, -50, 0) : linear(p, min, max, 0,50);

** this is where is need 'r' to decay


Return to posts index

Brad Pickford
Re: Add decay (inertial bounce) to a referenced
on Jun 20, 2017 at 7:02:17 am

Found solution....

https://forums.creativecow.net/thread/227/31899


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]