-
-
Notifications
You must be signed in to change notification settings - Fork 5
GetDMXValue
Anthony Headley edited this page Jul 13, 2022
·
2 revisions
Returns a the value of the selected DMX channel given the channel and optionally the Universe, format option for raw or percent values.
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) for false or percent (0-100) for true. defaults to raw if omitted | ✔ |
Type | Description |
---|---|
int | Returns the value of the channel. If the universe or channel does not exist or the universe is not granted a universe the value will be nil. |
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