Skip to content

SelectionFirst

Anthony Headley edited this page Apr 19, 2020 · 2 revisions

SelectionFirst() : int, int, int, int

Brief:

Returns the first selected fxtures SubfixtureIndex, X, Y and, Z grid positions. The Fixtures subfixture ID is a representation of the fixture within the patch and does not directly reflect the fixtures FID or CID, for example. A fixture with no FID or CID still does have a valid SubfixtureIndex.

Paramiters:

Name Description Optional

Returns:

int, int, int, int : SubfixtureIndex, GridX, GridY, GridZ

Examples:

Patched Fixtures:

FID Gird Description
101 0/0/0 Dimmer 1
102 1/0/0 Dimmer 2
103 0/1/0 Dimmer 3
104 1/1/0 Dimmer 4

Fixture 1 thru 4

local index, x, y, z = SelectionFirst()
Echo("index: %d %d/%d/%d", index, x, y, z) -- index: 1 0/0/0
Clone this wiki locally