set_layer_visibility
Control layer visibility in Adobe After Effects compositions by toggling display, solo, shy, and lock settings for precise layer management.
Instructions
Control layer visibility settings
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": {
"compId": "<compId>",
"layerIndex": "<layerIndex>"
},
"name": "set_layer_visibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compId | Yes | ID of the composition | |
| layerIndex | Yes | Index of the layer | |
| visible | No | Layer visibility | |
| solo | No | Solo the layer | |
| shy | No | Make layer shy | |
| locked | No | Lock the layer |