Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › How to animate in point and out point of layer with expressions?

  • How to animate in point and out point of layer with expressions?

    Posted by mehmet turhan on January 23, 2021 at 2:08 pm

    I’m trying to animate the in opacity and out opacity of a layer with just an expression

    linear(time,inPoint, inPoint+.5, 0, 100)

    linear(time,outPoint+.5, outPoint, 100, 0)

    This is what I did. It seems the second line always overwrites the first one. How would you animate layer appearing with opacity and disappearing with opacity with just expressions?

    mehmet turhan replied 5 years, 8 months ago 3 Members · 3 Replies
  • 3 Replies
  • Filip Vandueren

    January 23, 2021 at 8:17 pm
    if (time <= inPoint+0.5) {
    output = linear(time,inPoint, inPoint+.5, 0, 100);
    } else {
    output = linear(time,outPoint+.5, outPoint, 100, 0);
    }
    output;
  • Othman Ahmed

    January 23, 2021 at 9:44 pm

    Simple modification.

    <pre data-placeholder=””>

    if (time <= inPoint+0.5) { output = linear(time,inPoint, inPoint+.5, 0, 100);

    } else {

    output = linear(time,outPoint-.5, outPoint, 100, 0); // just replace + with –

    }

    output;

  • mehmet turhan

    January 24, 2021 at 2:16 pm

    Thanks! It makes sense and worked perfectly!

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