Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Elastic Snap Expression

  • Elastic Snap Expression

    Posted by Adrian Winter on November 6, 2005 at 9:21 pm

    Hi,

    I’m trying to write an expression similar to an old motion math script I remember, wherein an object scales from 0 to 100, and oscillates on either side of the 100% value with a certain degree of decay, ultimately settling on 100%.

    I’ve searched the archives but I can’t seem to retrofit the expressions I find to suit my purposes. Is this type of thing even possible?

    Any help woould be greatly appreciated.

    Thanks in advance,

    -AW

    Adrian Winter replied 19 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    November 7, 2005 at 2:07 am

    Something like this should get you started:

    freq = 4.0;
    decay = 1.0;
    v = -100*(Math.cos(freq*time*2*Math.PI)/Math.exp(decay*time) – 1);
    [v,v]

    Dan

  • Adrian Winter

    November 7, 2005 at 2:44 am

    Thanks Dan, I’ll give that one a shot!

    -AW

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