Skip to main content
Turns layers on or off, so you can show or hide parts of your template based on your data. It sets the layer’s video switch, the eye icon in the After Effects timeline.

Example

To hide several layers at once, pass an array of names:

Parameters

string | string[]
required
Name of the layer to modify. Layers with this name in every composition of the project are changed. Pass an array of names to change several layers.
boolean
required
true turns the layer on, false turns it off