-
-
Notifications
You must be signed in to change notification settings - Fork 5
GetDMXValue
Anthony Headley edited this page Apr 24, 2020
·
2 revisions
Returns a table of DMX channels for the given Universe in ether raw (default) or percent
Name | Type | Description | Optional |
---|---|---|---|
address | int | the address to query | |
universe | int | The Universe to query if omitted assumes universe 1 (?) | ✔ |
percent_mode | bool | Either return raw (0-255) or percent (0-100) values. defaults to raw if omitted | ✔ |
Type | Description |
---|---|
int | Returns the value of the channel. if the universe or channel does not exits or the console is not granted a universe the value will be 0 |
local address = 1
local universe = 1
local percent = false
local value = GetDMXValue(address, universe, percent)
Echo("%03d.%03d = %03d", universe, address, value)
-- 001.001 = 255