Get bounding box
cavalry_get_bounding_boxRetrieve a layer's bounding box (x, y, width, height, center, edges) to align, position, or check it fits the composition.
Instructions
Return a layer's bounding box (x, y, width, height, centre, left/right/top/bottom). Use it to lay out, align and check that layers fit inside the composition.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layerId | Yes | Cavalry layer id, e.g. "basicShape#1". Use cavalry_list_layers to find ids. | |
| worldSpace | No | World-space coordinates. Defaults to true. |