Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Need a assist to understand this expression lines

  • Need a assist to understand this expression lines

    Posted by Adam Levine on March 10, 2016 at 8:23 pm

    Can anyone explain these expression lines in the Ease Wizz expressions? Please explain me every things & every lines in that expression lines. I think Master Dan can give me a help.

    Ease Wizz In Expo
    function easeandwizz_inExpo(t, b, c, d) {
    return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
    }

    Ease Wizz Out Expo
    function easeandwizz_outExpo(t, b, c, d) {
    return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
    }

    Ease Wizz InOut Expo
    function easeandwizz_inOutExpo(t, b, c, d) {
    if (t==0) return b;
    if (t==d) return b+c;
    if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
    return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
    }

    Adam Levine replied 10 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Murat Atasoy

    March 12, 2016 at 11:01 pm

    return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
    this code is a different if expression. means;
    if(t==0){
    return b;
    }else{
    return c*something+b;
    }

    such as
    value = (a==1) ? "hello":"bye";
    same
    if(a==1){ value = "hello"; } else {value = "bye";}

    These codes make a value easein, easeout and easeinandout

  • Adam Levine

    March 13, 2016 at 6:55 pm

    Thank you so much Murat Atasoy for your best explain. It helped me lot to find answers for my problems. Thank you again.

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