Layer bounds
ae_get_layer_boundsMeasure exact on-screen bounding boxes of After Effects layers at a specific time—including transforms, 3D, and camera—and report visibility, frame status, and safe-area fit for alignment checks.
Instructions
Exact on-screen bounding boxes of layers in composition pixels at a time, after all transforms, parenting, 3D and the active camera (via AE's own toComp()). Also reports whether each layer is visible at that time, fully/partly/not in frame, and inside action-safe (5% margin) and title-safe (10% margin). Use it to check alignment, spacing, overlaps and safe areas with numbers; to move layers by these bounds use ae_align_layers (via ae_call). It measures through a temporary probe layer removed in the same undo step; your layers are left as they were.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition: item id (number) or exact name. Omit (or "active") for the active/open composition. | |
| time | No | Seconds (default: the comp's current time). | |
| frame | No | Whole frame number from the comp's start (frame 0 = time 0), instead of time. | |
| layers | No | Layers to measure (default: all layers, up to 300). | |
| selectedOnly | No | Measure only the layers selected in After Effects. | |
| includeExtents | No | Include stroke widths, effects and other extents (default false = content box). |