Skip to content

GetDMXValue

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

GetDMXValue(int:address[,int:universe, bool) : table

Brief:

Returns a table of DMX channels for the given Universe in ether raw (default) or percent

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) or percent (0-100) values. defaults to raw if omitted

Returns:

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

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
Clone this wiki locally