Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › Layer move up over first second and down over the last second of layer

  • Layer move up over first second and down over the last second of layer

    Posted by Pawel Mikolajek on February 20, 2022 at 1:05 am

    Hello wonderful people! The topic is pretty self-explanatory. I’m looking for an expression that moves layer up 50px over the first second and move down 50px over the last second. I managed to get a similar effect for the opacity work but no luck with the position 🙁

    Plz, help. Thank you!

    fade = 1.5;
    fadeIn = (time - inPoint) / fade;
    fadeOut = (outPoint - time) / fade;
    if (time < inPoint + fade) {
        ease(fadeIn, 0, 1) * value;
    } else if (time > outPoint - fade) {
        ease(fadeOut, 0, 1) * value;
    } else {
        value;
    }
    Pawel Mikolajek replied 4 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    February 20, 2022 at 5:08 pm

    Like this maybe:

    tEase = 1;

    if (time < (inPoint + outPoint)/2)

    ease(time,inPoint,inPoint+tEase,value,value - [0,50])

    else

    ease(time,outPoint-tEase,outPoint,value - [0,50],value)

  • Pawel Mikolajek

    February 21, 2022 at 3:35 pm

    Works like a charm. Thank you Dan, you saved my day.

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