Difference between revisions of "Api.output"
From Light Forge Wiki
Chris Monson (Talk | contribs) (Created page with "==getDMX== getDMX(universe As Integer) As Byte() Returns a byte array containing all current dmx data for the specified universe. Usage: dmxValues = api.output.getDMX(0) ...") |
Chris Monson (Talk | contribs) |
||
| (5 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
| + | =Methods= | ||
| + | |||
==getDMX== | ==getDMX== | ||
| − | getDMX(universe As Integer) As Byte() | + | '''getDMX(universe As Integer) As Byte()''' |
| + | |||
| + | Returns a byte array containing all current dmx data for the specified universe. If the specified universe doesn't exist this function returns null. | ||
| + | |||
| + | Usage: | ||
| + | <syntaxhighlight lang=python> | ||
| + | dmxValues = api.output.getDMX(0) | ||
| + | print(dmxValues[42]) | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | ==getUniverseCount== | ||
| + | '''getUniverseCount() as Integer''' | ||
| − | Returns | + | Returns the number of DMX universes in the current show. |
Usage: | Usage: | ||
| − | + | <syntaxhighlight lang=python> | |
| − | + | universeCount = api.output.getUniverseCount() | |
| + | print(universeCount) | ||
| + | </syntaxhighlight> | ||
Latest revision as of 15:50, 11 May 2013
[edit] Methods
[edit] getDMX
getDMX(universe As Integer) As Byte()
Returns a byte array containing all current dmx data for the specified universe. If the specified universe doesn't exist this function returns null.
Usage:
dmxValues = api.output.getDMX(0) print(dmxValues[42])
[edit] getUniverseCount
getUniverseCount() as Integer
Returns the number of DMX universes in the current show.
Usage:
universeCount = api.output.getUniverseCount() print(universeCount)