Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › Please explain the expression below.(How it works)

  • Please explain the expression below.(How it works)

    Posted by Sanket Ghosh on August 25, 2012 at 6:32 am

    https://www.youtube.com/watch?v=-GYwhfQJzHQ

    The attached code is for the effect at 10th second where the words like 3d animator, illustrator, after effects etc pop out, move and go back.

    Can anyone explain how it works? IF you have a different and simple to understand expression for the same please share.
    The attenuation and elasticity are both set to value 5.
    Regards.
    a dropbox copy of the expression is here.

    https://dl.dropbox.com/u/59793114/Expression.txt

    amorti = effect("AttŽnuation")(1);
    freq = effect("ElasticitŽ")(1);

    if (numKeys > 1 && freq != 0 ){
    if (nearestKey(time).index == 1) { value }
    else {

    if (length(velocity) == 0) {

    tempsClefProx = nearestKey(time).time;

    if ( tempsClefProx <= time ) { tempsDebut = tempsClefProx }
    else { tempsDebut = key(nearestKey(time).index-1).time }

    temps = time - tempsDebut;

    spring = velocityAtTime(tempsDebut-thisComp.frameDuration) * ( .15/freq * Math.sin(freq * temps * 2 * Math.PI) / Math.exp( temps * amorti ) );

    valueAtTime(tempsDebut) + spring;

    }
    else { value }
    }
    }
    else { value }

    “Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.”

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

    Sanket Ghosh replied 14 years, 1 month ago 1 Member · 1 Reply
  • 1 Reply
  • Sanket Ghosh

    August 25, 2012 at 7:35 am

    forgot to mention, the expression is applied to scale.

    “Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.”

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