align_layers
Align After Effects layers to a chosen edge or reference layer to position them consistently within a comp.
Instructions
Align layers to an edge. edge: left|right|top|bottom|center-h|center-v. reference: "comp" (default) | "first" | "last" | layer name/index.
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": {
"edge": "<edge>"
},
"name": "align_layers"
}
}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. | |
| edge | Yes | ||
| layers | No | One or many layers (each: name, 1-based index, or { id: N }). If omitted, uses currently selected layers. | |
| 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. | |
| reference | No | "comp" | "first" | "last", or a layer (name, 1-based index, or { id: N }). | comp |