Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Add decay (inertial bounce) to a referenced

  • Add decay (inertial bounce) to a referenced

    Posted by Brad Pickford on June 14, 2017 at 12:42 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 < 0 ?linear(p, max, min, -50, 0) : linear(p, min, max, 0,50);

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

    Brad Pickford replied 8 years, 10 months ago 1 Member · 1 Reply
  • 1 Reply

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy