| grandMA3 ユーザマニュアル » プラグイン » Lua 関数 - Object-Free API » GetDMXUniverse(integer[, boolean]) | Version 2.2 |
GetDMXUniverse 関数は、DMXチャンネルとその現在値を含むテーブルを返します。
― または ―
DMXユニバース1(許可されている場合)のテーブルを出力します。
Lua |
return function() -- This gets a table for universe 1 with the returned value in percent. local tableDMXUniverse = GetDMXUniverse(1,true) -- Check the returned table and print information if nil. if tableDMXUniverse == nil then Printf("No value is returned. The univer is not granted or input is out of range") return end -- Prints the table if not nil. for addr, value in ipairs(tableDMXUniverse) do Printf("DMX Addr: %i - DMX value : %i", addr, value) end end |