Difference between revisions of "Api.output"

From Light Forge Wiki
Jump to: navigation, search
(getDMX)
Line 5: Line 5:
  
 
Usage:
 
Usage:
  dmxValues = api.output.getDMX(0)
+
<syntaxhighlight lang=python>
  print(dmxValues[42])
+
dmxValues = api.output.getDMX(0)
 +
print(dmxValues[42])
 +
</syntaxhighlight>
  
 
==getUniverseCount==
 
==getUniverseCount==
Line 14: Line 16:
  
 
Usage:
 
Usage:
  universeCount = api.output.getUniverseCount()
+
<syntaxhighlight lang=python>
  print(universeCount)
+
universeCount = api.output.getUniverseCount()
 +
print(universeCount)
 +
</syntaxhighlight>

Revision as of 18:33, 9 May 2013

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])

getUniverseCount

getUniverseCount() as Integer

Returns the number of DMX universes in the current show.

Usage:

universeCount = api.output.getUniverseCount()
print(universeCount)
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox