Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions decaying bounce off imaginary wall

  • decaying bounce off imaginary wall

    Posted by Barry Suydam on April 15, 2011 at 1:09 pm

    I have a verticle thin line with its anchor point set at the top of the viewable composition. what I am trying to attain is to have it rotate into its virticle position with a decaying bounce off an imaginary wall. Any help? So far I have this expression applied but it swings through the imaginary wall.

    veloc = -50
    amplitude = -90
    decay = 4;
    y = amplitude*Math.cos(veloc*time)/Math.exp(decay*time);
    value + y

    Dan Ebberts replied 15 years, 1 month ago 2 Members · 6 Replies
  • 6 Replies
  • Dan Ebberts

    April 15, 2011 at 4:00 pm

    Just change the 4th line to this:

    y = -Math.abs(amplitude*Math.cos(veloc*time)/Math.exp(decay*time));

    Dan

  • Barry Suydam

    April 15, 2011 at 6:06 pm

    Thanks again….you are great!

  • Barry Suydam

    April 15, 2011 at 7:04 pm

    I have a text layer that after a time passes in the comp I want it to start a decaying swing and land perpendicular to its start point. Any help would be great.

  • Dan Ebberts

    April 15, 2011 at 7:20 pm

    Like this, probably:

    timeToStart = 3;
    veloc = -50
    amplitude = -90
    decay = 4;
    t = Math.max(0,time-timeToStart);
    y = -Math.abs(amplitude*Math.cos(veloc*t)/Math.exp(decay*t));
    value + y

    Dan

  • Barry Suydam

    April 15, 2011 at 7:27 pm

    I thank you again.

    The world of after effects expressions is lucky to have a person like you to be able to throw out a problem and have a solution so fast. I am not sure where you live or who you work for but thank you. I have a fair understanding of expressions because of your website and jjgifford.com, much appreciated. Is there another resource like those that I haven’t found. I just wish I could do better and more with applying expressions. I wish I worked with some more folks like you.
    -Barry

  • Dan Ebberts

    April 15, 2011 at 7:39 pm

    Thanks for the kind words Barry, I appreciate it.

    >Is there another resource like those that I haven’t found.

    I’m afraid I haven’t kept track of what’s out there. I am working on a long-overdue update to my own site that should make it a much better resource.

    Dan

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