Layer switches
set_layer_switchesToggle layer switches in After Effects such as visibility, solo, lock, 3D, motion blur, effects, and collapse transformations on selected, named, or all layers, changing only the switches you specify.
Instructions
Set any layer switches on one or more layers: visibility (enabled), solo, shy, locked, 3D, motion blur, adjustment, guide, collapse transformations / continuously rasterize, effects on/off (fx switch), audio, preserve transparency, quality, sampling, frame blending and auto-orient. Only the given switches change. Locked layers are unlocked temporarily.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_layer_switches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shy | No | ||
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| solo | No | ||
| layers | No | Layers: array of layer refs, or 'selected' (default) or 'all'. | |
| locked | No | ||
| threeD | No | 3D layer switch. | |
| enabled | No | Video (eye) switch. | |
| quality | No | ||
| autoOrient | No | ||
| guideLayer | No | ||
| motionBlur | No | ||
| audioEnabled | No | Audio (speaker) switch. | |
| effectsActive | No | fx switch: effects on/off. | |
| adjustmentLayer | No | ||
| samplingQuality | No | ||
| frameBlendingType | No | ||
| preserveTransparency | No | ||
| collapseTransformation | No | Collapse transformations (precomps) / continuously rasterize (vectors). |