set_layout_grids
Define responsive column or row scaffolding on a frame, replacing existing grids. Accepts column count, gutter size, alignment, or uniform square grid patterns.
Instructions
Set a frame's own layout grids — the responsive column/row scaffold laid over it (the 12-column grid, the 8pt baseline), distinct from auto-layout (set_auto_layout arranges children). Each grid is COLUMNS / ROWS (count + gutterSize + alignment, e.g. a 12-col grid) or GRID (uniform squares via sectionSize, a baseline). Replaces the frame's grids with the array given; pass [] to clear them. Only frames (and components/instances) carry layout grids. Returns { ok, nodeId }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grids | Yes | Layout grids to set; [] clears all grids on the frame | |
| nodeId | Yes | Frame (or component/instance) node id |