Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions pedulum expression help

  • pedulum expression help

    Posted by Greg Hahn on March 20, 2009 at 6:25 pm
    veloc = 6;
    amplitutde = 40;
    decay = 1.25;
    t = time;
    
    amplitude*Math.cos(veloc*t)/Math.exp(decay*t);

    I’m relatively new to expressions so any guidance would be appreciated…

    I’m using a slight modification of Dan Ebbert’s pendulum expression to have an image swing in on it’s axis and slowly decay to a stop.

    I’m looking for help in making this expression start where the layer starts in the timeline. Currently it starts at the beginning of the comp no matter where my layer starts. Any suggestions?

    Greg

    Will Mcmillian replied 16 years, 2 months ago 3 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    March 20, 2009 at 6:31 pm

    Try changing the 4th line to this:

    t = time – inPoint;

    Dan

  • Greg Hahn

    March 20, 2009 at 6:48 pm

    Duh! Makes perfect sense. Thanks Dan!

    Greg

  • Will Mcmillian

    February 28, 2010 at 4:50 pm

    I am using the same wonderful expression, though having trouble assigning a start value, say ‘starting swinging from -110°, eventually resting at 0°. Any thoughts? thx in advance

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