Sort layers
sort_layersReorder selected or all After Effects layers by name, in/out point, start time, duration, label, or type, producing a contiguous stack block from the topmost layer.
Instructions
Reorder layers in the stack by name, inPoint, outPoint, startTime, duration, label or type. The sorted layers form a contiguous block starting at the topmost one's index. Default: all layers by name.
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": "sort_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | ||
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| layers | No | Layers to sort (default all). | |
| descending | No |