ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Turn on opacity of a layer using a mark

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Marcelo Cabral
Turn on opacity of a layer using a mark
on Oct 2, 2017 at 12:55:22 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.


Return to posts index

Dan Ebberts
Re: Turn on opacity of a layer using a mark
on Oct 2, 2017 at 1:28:25 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



Return to posts index

Marcelo Cabral
Re: Turn on opacity of a layer using a mark
on Oct 2, 2017 at 1:44:48 pm

Works perfectly, Thank you, Dan!!!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]