reorder_layers
Change the stacking order of layers in an After Effects composition by specifying the current and new layer positions.
Instructions
Change the order of layers in a composition
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>",
"newIndex": "<newIndex>"
},
"name": "reorder_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compId | Yes | ID of the composition | |
| newIndex | Yes | New index position for the layer (must be between 1 and the total number of layers in the composition) | |
| layerIndex | Yes | Current index of the layer to move (1-based) |