FORUMS: list search recent posts

Need a assist to understand this expression lines

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Adam levine
Need a assist to understand this expression lines
on Mar 10, 2016 at 8:23:18 pm
Last Edited By Adam levine on Mar 11, 2016 at 5:08:05 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;
}


Return to posts index


Murat Atasoy
Re: Need a assist to understand this expression lines
on Mar 12, 2016 at 11:01:10 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


Return to posts index

Adam levine
Re: Need a assist to understand this expression lines
on Mar 13, 2016 at 6:55:05 pm

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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]