How to use checkbox expressions in After Effects

Sébastien Lavoie
keyframedtv
Published in
1 min readSep 15, 2013

You will often find yourself toggling the visibility of layers in After Effects. This can get really cumbersome and hazardous to click all those little eye icons in deeply nested compositions. Having a controller layer on top of everything with some checkbox expressions can really help organizing everything out.

Select the layer you’d want to toggle and add this expression in its opacity property.

(comp("the-comp-name").layer("the-layer-name").effect("the-checkbox-effect")("Checkbox") == 1 ? value : 0)

This layer will then show when the checkbox is checked. To invert the effect, just invert the `value` and the `0`.

Heads up!

Most layers, when hidden, will not add time to renders and RAM Previews although sometimes, mostly when the hidden layer has expressions, it will still be processed when rendering.

This article was orginally published on keyframed.tv.

--

--

Sébastien Lavoie
keyframedtv

Freelance motion designer and After Effects scripts developer. Sloths enthousiast, casual beatboxer, serial high-fiver.