Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions fade opacity into last keyframe of position

  • fade opacity into last keyframe of position

    Posted by Riccardo Sinti on February 10, 2015 at 8:19 pm

    I have many layers whose position is already keyframed.
    i need an expression for opacity that fades out the layer a certain number of frames, based on a slider control, into the last position keyframe.
    I guess I need a conditional.
    Any ideas, great minds?
    -Thanks!

    Riccardo Sinti replied 11 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    February 10, 2015 at 8:33 pm

    This should work:


    fadeFrames = 10;
    n = position.numKeys;
    if (n > 0){
    d = framesToTime(fadeFrames);
    t = position.key(n).time;
    ease(time,t-d,t,100,0)
    }else
    value

    Dan

  • Riccardo Sinti

    February 10, 2015 at 8:58 pm

    Thanks, perfect!

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