ae_alignLayers
Aligns After Effects layers to composition edges or center using visual bounds, with optional pixel margin and anchor-point awareness.
Instructions
After Effects: align layers to the comp — left, hCenter, right, top, vCenter, bottom, center — with margin px (uses visual bounds, respects anchor point).
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": {
"layers": "<layers>",
"align": "<align>"
},
"name": "ae_alignLayers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| align | Yes | ||
| layers | Yes | Layer names or 1-based indexes. | |
| margin | No | ||
| compositionName | No | Comp name; omit to use the active comp. |