Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Easing back Shape layer Trim path Expression

  • Easing back Shape layer Trim path Expression

    Posted by Obed Ampong on October 13, 2018 at 8:56 am

    Hi,

    Please is possible for this expression on Trim path End properties to be adjusted that after it eases from 0 to 100, it will hold the 100 for 5 seconds then it will ease back from 100 to 0?
    Thanks

    Regards
    Obed

    minDur = 1;
    maxDur = 5;
    seedRandom(100,true);
    dur = random(minDur,maxDur);
    t = time - inPoint;
    ease(t,0,dur,0,100);

    Obed Ampong replied 7 years, 7 months ago 2 Members · 5 Replies
  • 5 Replies
  • Dan Ebberts

    October 13, 2018 at 1:09 pm

    Like this maybe:


    minDur = 1;
    maxDur = 5;
    seedRandom(100,true);
    dur = random(minDur,maxDur);
    t = time - inPoint;
    if (t < dur){
    ease(t,0,dur,0,100);
    }else{
    ease(t,dur+5,2*dur+5,100,0)
    }

    Dan

  • Obed Ampong

    October 13, 2018 at 1:33 pm

    That’s was perfect!!!
    Thanks so much, Dan.

    Regards,
    Obed

  • Obed Ampong

    October 13, 2018 at 6:24 pm

    Hi Dan,
    Please, how do remove the random from the expression? I would like to duplicate the shape layer and get an exact copy
    Thank you

    Regards,
    Obed

  • Dan Ebberts

    October 13, 2018 at 7:03 pm

    You’d have to pick a duration, like this:


    dur = 3;
    t = time - inPoint;
    if (t < dur){
    ease(t,0,dur,0,100);
    }else{
    ease(t,dur+5,2*dur+5,100,0)
    }

    Dan

  • Obed Ampong

    October 13, 2018 at 7:18 pm

    Thanks a lot! Much helpful.

    Regards,

    Obed

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