Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions layer in & out points expressions

  • layer in & out points expressions

    Posted by Tzur Livne on December 16, 2010 at 8:26 am

    hi
    im using an expression to drive a linear wipe effect based on the layer’s In point.
    i want to add an expression to reverse the effect based on the layer’s Out point.
    i can’t manage to find the right way to do it.
    i’m posting the In point expression.
    thanks,
    tzur

    In=thisLayer.inPoint;

    if (time>=In){
    ease(time-In,100,0)
    }else{
    100
    }

    Tzur Livne

    David Cabestany replied 10 years, 4 months ago 3 Members · 8 Replies
  • 8 Replies
  • Dan Ebberts

    December 16, 2010 at 3:01 pm

    Like this maybe:

    if (time < (inPoint+outPoint)/2)
    ease(time-inPoint,0,1,100,0)
    else
    ease(outPoint-time,0,1,100,0)

    Dan

  • Tzur Livne

    December 19, 2010 at 1:05 pm

    thanks dan.

    Tzur Livne

  • David Cabestany

    April 14, 2016 at 4:42 pm

    What are the 0 and 1 and this expression?

    Best,
    D.

  • Dan Ebberts

    April 14, 2016 at 4:58 pm

    Time (in seconds) from the in or out point, which delineate the time span of the ease.

    Dan

  • David Cabestany

    April 14, 2016 at 11:52 pm

    Thanks Dan.

  • David Cabestany

    April 27, 2016 at 4:21 pm

    Using Tzur’s expression that only animates a fade in without worrying about the out point of the layer, is there a way to make the fade in faster or slower? I’m not clear on what’s controlling the speed of the fade in with the expression as it is right now.

    I tried using Dan’s expression without the second part, but right after the timeline passes the half of the layers duration then the value jumps automatically to almost nothing (.2%)

    Best,
    D.

    In=thisLayer.inPoint;

    if (time>=In){
    ease(time-In,100,0)
    }else{
    100
    }

  • Dan Ebberts

    April 27, 2016 at 4:31 pm

    Something like this should work:

    fadeDur = 1.5;
    ease(time,inPoint,inPoint+fadeDur,0,100)

    Dan

  • David Cabestany

    April 28, 2016 at 7:51 pm

    Thanks a lot Dan.
    Best,
    D.

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