Reorder layer
move_layerReorder layers in an After Effects composition by moving a layer to a specific index, top or bottom, or directly above or below another layer.
Instructions
Change a layer's position in the layer stack: to an index (1 = top), 'top', 'bottom', or directly before (above) / after (below) another layer.
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": {
"layer": "<layer>"
},
"name": "move_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Target index (1 = top) or 'top'/'bottom'. | |
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| after | No | Place directly below this layer. | |
| layer | Yes | Layer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer. | |
| before | No | Place directly above this layer. |