Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Inertial text Animator, Animate off at out outpoint

  • Inertial text Animator, Animate off at out outpoint

    Posted by Donavon Brutus on July 8, 2024 at 5:18 pm

    I have the expression below that automatically animates text on using whatever parameters you set at the layer inpoint. How do you alter the expression to make the text also reverse the same animation at the outpoint of the layer?

    freq = .25;

    decay = 20;

    delay = .05;

    dur = .15;

    myDelay = (textIndex-1)*delay;

    t = time – (inPoint + myDelay);

    startVal = 100;

    endVal = 0;

    if(t < dur){ linear(t,0,dur,startVal,endVal); }else{ amp = (endVal – startVal)/dur; w = freq*Math.PI*2; endVal + amp*(Math.sin(t*w)/Math.exp(decay*t)/w); }

    Donavon Brutus replied 2 years ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    July 8, 2024 at 7:20 pm

    See if this gets you close:

    freq = .25;
    decay = 20;
    delay = .05;
    dur = .15;
    myDelay = (textIndex-1)*delay;
    if (time < (inPoint+outPoint)/2){
    t = time - (inPoint + myDelay);
    }else{
    t = outPoint - myDelay - time+ -.1;
    }
    startVal = 100;
    endVal = 0;
    if(t < dur){
    linear(t,0,dur,startVal,endVal);
    }else{
    amp = (endVal - startVal)/dur;
    w = freq*Math.PI*2;
    endVal + amp*(Math.sin(t*w)/Math.exp(decay*t)/w);
    }
  • Donavon Brutus

    July 8, 2024 at 7:27 pm

    Perfection. Thanks you so much!

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