Fixture#
A Fixture object is returned from get_fixture.
Properties#
Property |
Value Type |
Description |
Value Example |
|---|---|---|---|
|
Table of Group objects |
A list of the groups containing this fixture |
|
|
|
A list of issues affecting this fixture |
|
|
string |
Manufacturer name of the fixture |
|
|
string |
Fixture name |
|
|
integer |
User number |
|
|
Table of PatchPoint objects |
Patch points assigned to this fixture |
|
|
|
The output protocol used by this fixture |
|
|
|
The status of this fixture |
|
|
string |
Fixture type from the fixture library |
|
|
DateTime or |
The last status update for this fixture or nil if there has been no update |
|
|
table of strings |
The custom properties for this fixture as configured in Designer |
|
|
table of RDM DeviceId |
RDM UIDs associated with this fixture - empty if fixture has no RDM devices associated (e.g. a DALI fixture) |
For example:
-- get a list of all offline fixtures
local offlineFixtures = get_fixtures(STATUS_OFFLINE)
log('Offline fixtures in project:')
for _, fixtureNum in pairs(offlineFixtures) do
-- get details of fixture
local fixture = get_fixture(fixtureNum)
log('- Number: ' .. fixtureNum)
log('- Name: ' .. fixture.name)
if (fixture.protocol == PROTOCOL_DMX) then
log('- Protocol: ' .. DMX)
elseif (fixture.protocol == PROTOCOL_DALI ) then
log('- Protocol: ' .. DALI)
end
log('- Last updated: ' .. tostring(fixture.updated_at))
end