Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Rotation Decay Auto with Ease In on Inpoint ??

  • Rotation Decay Auto with Ease In on Inpoint ??

    Posted by Gerald mark Soto on May 4, 2023 at 1:28 am

    The expression below work perfectly but does anyone know how to add an Ease in to this?

    Thanks

    freq = 3;

    amplitude = 50;

    decay = 6;

    if (time >= inPoint){

    amplitude*Math.sin(freq*time*2*Math.PI)/Math.exp(decay*(time-inPoint))

    }

    else{value}

    Gerald mark Soto replied 3 years ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    May 4, 2023 at 6:06 am

    It depends on what you mean exactly. Maybe something like this:

    freq = 3;
    amplitude = 50;
    decay = 6;
    easeTime = 1;
    if (time >= inPoint){
    val = amplitude*Math.sin(freq*time*2*Math.PI)/Math.exp(decay*(time-inPoint));
    easeIn(time,0,easeTime,0,val)
    }
    else{value}
  • Gerald mark Soto

    May 4, 2023 at 2:24 pm

    Thank you sir, it worked like a charm.💪

  • Gerald mark Soto

    May 4, 2023 at 2:39 pm

    Heads up, I added one extra inPoint, so this expression can work anywhere on the timeline not just frame zero. Thanks again.

    freq = 2;

    amplitude = 350;

    decay = 6;

    easeTime = 0.7;

    if (time >= inPoint){

    val = amplitude*Math.sin(freq*time*2*Math.PI)/Math.exp(decay*(time-inPoint));

    easeIn((time-inPoint),0,easeTime,0,val)

    }

    else{value}

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