| grandMA3 ユーザマニュアル » プラグイン » Lua 関数 - Object-Free API » GetDMXValue(integer[, integer, boolean]) | Version 2.2 |
GetDMXValue 関数は、指定されたDMXアドレスのDMX値を返します。
ユニバース1のDMXアドレス2の値を出力します(許可されている場合)。
Lua |
return function() -- This prints the value of DMX address 2 in universe 1 in a range of 0 to 255 local address = 2 -- The DMX address local universe = 1 -- The DMX universe local percent = false -- Readout in percent or DMX value local value = GetDMXValue(address, universe, percent) if value == nil then Printf("The DMX address did not return a valid value") else Printf("DMX address %i.%03d has a value of %03d", universe, address, value) end end |