Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Turn on opacity of a layer using a mark

  • Turn on opacity of a layer using a mark

    Posted by Marcelo Cabral on October 2, 2017 at 12:55 pm

    Hi there. I need a little help on this.
    I have two compositions nested. First one (CUBE) has a simple solid and the main one (MASTER) has an adjustment layer with a mark. I need to turn on the opacity of the solid layer with this mark.
    In other words, the opacity of the solid will be in 0 and when the indicator pass over the mark named “01” it has to turn on the opacity to 100.

    Is it possible?. Thank you in advance.

    Marcelo Cabral replied 8 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 2, 2017 at 1:28 pm

    This should work:

    C = comp(“MASTER”);
    L = C.layer(“Adjustment Layer 1”);
    t = L.marker.key(“01”).time – C.layer(thisComp.name).startTime;
    if (time < t) 0 else 100

    Dan

  • Marcelo Cabral

    October 2, 2017 at 1:44 pm

    Works perfectly, Thank you, Dan!!!

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