reorderLayer
Move an After Effects layer to a new vertical position in the stack using operations like moveBefore, moveAfter, moveToBeginning, moveToEnd, or setIndex.
Instructions
Reorder a layer vertically in the layer stack (moveBefore, moveAfter, moveToBeginning, moveToEnd, setIndex)
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": {
"operation": "<operation>"
},
"name": "reorderLayer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compName | No | Composition name | |
| newIndex | No | Specific new 1-based layer index for setIndex operation | |
| layerName | No | Layer name to reorder | |
| operation | Yes | Reorder operation | |
| layerIndex | No | Layer index to reorder | |
| targetLayerName | No | Target reference layer name for moveBefore/moveAfter | |
| targetLayerIndex | No | Target reference layer index for moveBefore/moveAfter |