Lay out a fixture's cells (string lights, pixel strands)
gma3_layout_cellsPositions the cells of a multi-cell fixture along a line, square wave, zigzag, or point path, either updating the shared layout or creating an own copy for selected fixtures.
Instructions
Positions the cells of a multi-cell fixture along a path. A cell has no position of its own: its place is in the fixture type, shared by every fixture whose DMX mode uses that layout. scope "shared" (default) writes the type's layout: every fixture using it moves, and affects must list exactly those FIDs (preview: true lists them). scope "own" first copies the type for own.fixtures (default: the fixture) under own.name, moves them to the copy in a patch session (FIDs, addresses, cells, groups and preset values are kept), then lays out the copy; the other fixtures keep theirs. path: shape line (direction), square_wave (legs of leg_length along leg_direction, stepping leg_step along advance between them), zigzag (diagonal legs, advancing leg_step per leg) or points; cells are placed every spacing along the path from origin; axes the path does not use keep each cell's value unless origin sets them. count places only the first cells; rest keep|last. Lengths in unit (m, cm, mm, ft, in), relative to the cells' parent geometry (the fixture's own position, rotation and mirroring then apply: place the fixture with gma3_place_fixtures). Refused while the patch copy is open. No undo: previous holds the positions before the call. Read back per cell. Needs bridge 0.29.0.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| own | No | own: the new type's name and the fixtures that get it. | |
| path | Yes | ||
| rest | No | The cells after count: keep their positions (default) or stack at the last placed one. | |
| unit | No | ||
| count | No | Place only the first count cells (in the chosen order). | |
| order | No | The order the cells take along the path: "index" (cell numbers, default) or "dmx" (DMX address order: the physical order along a string, e.g. the Festoon 2-string mode 1-9, 19-29, 10-18, 30-40; see cellOrder in gma3_patch_type_structure). | |
| scope | No | ||
| verify | No | ||
| affects | No | shared: every FID that uses this layout (all of them move). | |
| fixture | Yes | FID of a fixture with cells; its type and mode define the layout. | |
| preview | No | ||
| exclusive | No |