reorder_effects
Change the order of effects on an After Effects layer by moving one effect to a target index or applying a full effect sequence.
Instructions
Reorder effects on a layer within its Effect Parade (1-based indices). Single move: pass effect (name or 1-based index) + toIndex. Full reorder: pass order (the desired list of effect names) and every named effect is moved into that sequence. Returns { effect, fromIndex, toIndex } for a single move, or { reordered:[{effect,fromIndex,toIndex}|{effect,error}] } for a full reorder.
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": "reorder_effects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Comp: name (string), or { id: N } for duplicate-name-safe stable-id addressing. Defaults to active comp. | |
| layer | Yes | Layer: name (string), 1-based index (integer), or { id: N } for duplicate-name-safe stable-id addressing. | |
| order | No | Full desired order of effect names — reorders the whole stack. | |
| effect | No | Effect name or 1-based index (single-move mode). | |
| toIndex | No | 1-based target index (single-move mode). | |
| instance | No | Target a specific AE when more than one is connected (e.g. "2026", "2025", or a major like "26"). Omit when only one AE is open — see list_instances. |