set_layer_enabled
Toggle a layer's visibility in an After Effects composition by enabling or disabling it, so you can show or hide specific layers when needed.
Instructions
Enables or disables (shows/hides) a layer in the composition.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"enabled": "<enabled>"
},
"name": "set_layer_enabled"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | true to enable (show), false to disable (hide). | |
| layer_name | No | Name of the layer. | |
| layer_index | No | 1-based index of the layer. | |
| composition_id | No | Optional composition item ID. |