Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Please correct this ae expression

  • Please correct this ae expression

    Posted by Arun Chaudhary on June 25, 2017 at 4:42 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 < startTime + duration ) value = a; else value = value;

    Arun Chaudhary replied 9 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Scott Mcgee

    June 26, 2017 at 11:22 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.

  • Arun Chaudhary

    June 26, 2017 at 12:59 pm

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

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