ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Please correct this ae expression

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Arun Chaudhary
Please correct this ae expression
on Jun 25, 2017 at 4:42:28 pm

Hi friends,
anyone helps correct this, expression apply in opacity it starts at 0 but I want it to start after 2 seconds or starting point control by a slider

function quart(time, startvalue, finalvalue, duration) { time /= duration; if (time > 1) return finalvalue/2*time*time*time*time + startvalue; time--; return -finalvalue * (time*time*time*time - 1) + startvalue; } startvalue = 0; finalvalue = value; duration = thisComp.layer("Dashboard - Theme").effect("Animation Duration")("ADBE Slider Control-0001"); a = quart( time-startTime, startvalue, finalvalue, duration ); if( time &lt; startTime + duration ) value = a; else value = value;


Return to posts index

Scott McGee
Re: Please correct this ae expression
on Jun 26, 2017 at 11:22:21 am

Not quite sure if you need such a complex expression. Something as simple as this would work on the opacity.

time < inPoint;
ease(time-inPoint,0,1,0,100)

If you are wanting to change the value with ease without constantly having to go into the expression and change the start time or move the layers inPoint. I use a text layer because I need to change the value all the time and have this set up.

s = parseInt(thisComp.layer("Amount").text.sourceText);
if (isNaN(s)) s = 0;
t = s + 1;
ease(time,s,t,0,100)

Hope this is of help.


Return to posts index

Arun Chaudhary
Re: Please correct this ae expression
on Jun 26, 2017 at 12:59:29 pm

Hi Scott, Thanks for your reply
Your expression work for me it is so simple
Thanks lot


Return to posts index

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