Control one layer's visibility with another layer's visibility

Special thanks to: 
Dan Ebberts and Chris Meyer (via AE mailing list)

This layer allows you to control Layer A's visibility via Layer X's visibility. This is not opacity based - when Layer X's visibility switch is turned off, Layer A will also not be visibile.

EXPRESSIONS
Expression code: 

opacity * thisComp.layer ("LayerX").enabled;

Copy the expression to Layer A's opacity and replace "LayerX" with the controlling layer's name.

You may also be interested in