Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Fading Up and Down

  • Fading Up and Down

    Posted by Brian Cibula on July 25, 2005 at 8:03 pm

    I seem to always have to fade pictures up and down in my compositions. It’s so annoying to have to key fame up and down each fade, setting four keyframes manually. Is there any way you could set one button to hit and it would automatically dissolve the front and back end of my layer for me?

    Filip Vandueren replied 20 years, 9 months ago 3 Members · 8 Replies
  • 8 Replies
  • Benito Sanz

    July 25, 2005 at 8:26 pm

    select the layers you want to fade, control click, keyframe asistant and choose sequence layer, you can set the time and kind of trasition, though i always do it manually.

  • Filip Vandueren

    July 25, 2005 at 8:44 pm

    Here’s the expression for opacity:
    You can make an Animation Preset out of it.


    fadeTime=0.5; // in seconds
    i=inPoint; o=outPoint; h=i+(o-i)/2;
    time

    'cause it is an expression, it does slow down rendering:
    but hey: it fixes the laziness 😉

  • Brian Cibula

    July 25, 2005 at 8:53 pm

    🙂 I’d rather sit and watch the render than have to keep making keyframes all the time. 🙂 Besides…what’s an extra minute after a 2 hour render?

    Thanks for the tips!!

  • Filip Vandueren

    July 25, 2005 at 9:27 pm

    Oops, something went wrong.
    if you’re watching the e-mail it should be okay,
    but on the website there’s an error because there’s a < character in there, here it is again (for the website):
    fadeTime=0.5; // in seconds
    i=inPoint; o=outPoint; h=i+(o-i)/2;

    time < h ? linear(time, i, i+fadeTime,0,100) : linear(time, o-fadeTime, o,100,00);

  • Benito Sanz

    July 26, 2005 at 11:29 am

    what’s the expresion if you want to fade just the out point of the layer. this is nice very handy filip

  • Filip Vandueren

    July 26, 2005 at 12:45 pm

    maybe this is handier:
    <code>
    fadeInTime=0.5; // in seconds
    fadeOutTime=0.5; // in seconds
    i=inPoint; o=outPoint; h=i+(o-i)/2;
    time < h ? linear(time, i, i+ fadeInTime,0,100) : linear(time, o-fadeOutTime, o,100,00);
    </code>
    just set fadeInTime=0
    also in the last line you can change the two occurences of “linear” to “ease” for a smoother fader.

  • Benito Sanz

    July 26, 2005 at 1:41 pm

    the expresion works fine when u want to do a fade in and out but if set the in point to 0 does something estrange, the in point of top layer is ok not visible but in the middle of the layer suddenly the top layer appears and the out point fades fine. dunno anything about expression but this is very handy. do you what happens filip.

    thanks.

  • Filip Vandueren

    July 26, 2005 at 2:12 pm

    Hey there,

    yeah, I didn’t test it. 😯

    Here’s the fix, also fixes another bug when you use a really long fadeOut on a short layer.
    But make sure that FadeOut+FadeIn length is more than the layerlength!


    fi=0; // FadeIn in seconds
    fo=1.5; // FadeOut in seconds
    i=inPoint; o=outPoint;

    (time < i+fi) ? linear(time, i, i+ fi,0,100) : linear(time, o-fo, o,100,00);

    BTW: if you see &lt; in the email, that’s supposed to be <

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