GetDMXValue - hossimo/GMA3Plugins GitHub Wiki
GetDMXValue(int:address[,int:universe, bool) : int
Brief:
Returns a the value of the selected DMX channel given the channel and optionally the Universe, format option for raw or percent values.
Paramiters:
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 |
✔ |
Returns:
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. |
Examples:
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