Layer bounds
get_layer_boundsMeasure layer content bounds and comp-space bounding box at any time, including union box, before positioning or aligning. Returns exact 2D bounds and camera-projected 3D bounds.
Instructions
Measure layers' content rectangle (sourceRectAtTime, layer space) and their comp-space bounding box (left/top/right/bottom/center) at a time, plus the union box. Use before positioning/aligning. 2D layers are exact; 3D layers are projected through the camera. Read-only (a temporary helper layer may be created and removed for 3D layers).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_layer_bounds"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| time | No | Comp time at which content bounds and transforms are measured (default: current time). | |
| layers | No | Layers: array of layer refs, or 'selected' (default) or 'all'. | |
| corners | No | Also return the 4 transformed corner points. |