Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions A simple fade in/out expression

  • A simple fade in/out expression

    Posted by Dmitry Yershov on November 10, 2012 at 1:14 pm

    Hi,

    I’m kind of a noob with Expressions, so can anyone help me with an expression that:

    1. Changes the layer’s opacity from 0 to 100 over 6 frames
    2. Then after exactly after 8 seconds the opacity changes from 100 to 0 over 6 frames

    Thanks!

    Dan Ebberts replied 13 years, 6 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    November 10, 2012 at 5:01 pm

    Something like this should work:


    fadeTime = framesToTime(6);
    if (time < inPoint+8)
    linear(time,inPoint,inPoint+fadeTime,0,100)
    else
    linear(time,inPoint+8,inPoint+8+fadeTime,100,0);

    If you wanted the 8 seconds to not include the fade-in, then you could change the last line to this:

    linear(time,inPoint+8+fadeTime,inPoint+8+fadeTime*2,100,0);

    Dan

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