ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Check for layer visibility, not opacity.

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Cesar Delarosa
Check for layer visibility, not opacity.
on Feb 8, 2018 at 8:40:35 pm

Hello and thank you all for reading this post, I've done some research and I can't seem to find what Im looking for. Basically, I want to have "Layer01" opacity be determined by whether "Layer02" eye icon is on or off. Is there a way to check for this ?


Return to posts index

Kevin Camp
Re: Check for layer visibility, not opacity.
on Feb 8, 2018 at 9:35:46 pm

this should detect if Layer02 is active and set the opacity value to 100 if it is and 0 if it is not.

if ( thisComp.layer("Layer02").active ) 100 else 0;

Kevin Camp
Art Director
KCPQ, KZJO & KRCW


Return to posts index

Dan Ebberts
Re: Check for layer visibility, not opacity.
on Feb 8, 2018 at 10:20:05 pm

Layer.enabled gives you the status of the eyeball.

Layer.active tells you if the eyeball is on and the current time is between the layer's In Point and the Out Point. Subtle difference, but important in some cases.

Dan



Return to posts index


Cesar Delarosa
Re: Check for layer visibility, not opacity.
on Feb 8, 2018 at 10:41:57 pm

That's really good to know... thank you so much! It's working!!!


Return to posts index

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