Difference between revisions of "API"

From Light Forge Wiki
Jump to: navigation, search
Line 12: Line 12:
  
 
==onExecute==
 
==onExecute==
 +
Called when this script is specifically executed.
 +
 
Usage:
 
Usage:
 
   def onExecute():
 
   def onExecute():
 +
      print("Script Executed")
  
def onStartup():
+
==onStartup==
 +
Called when Lightforge initially starts up.
  
print("Lightforge Started")
+
Usage:
 +
  def onStartup():
 +
      print("Lightforge Started")
 
 
def onPlaybackStart():
+
==onPlaybackStart==
print("Playback Started")
+
Called when timeline playback has started.
print(api.groups.getName("1,1"))
+
print(api.groups.getChildCount("1,1"))
+
api.groups.setAttribute(api.attributeTypes.intensity, 30000, "1,1")
+
+
def onPlaybackStop():
+
print("Playback Stopped")
+
api.groups.releaseAttribute(api.attributeTypes.intensity, "1,1")
+
+
def onFrameChange(seconds):
+
print(api.groups.getAttribute(api.attributeTypes.intensity, "1,1"))
+
+
def onShutdown():
+
print("Lightforge Shutdown")
+
  
def onCuelistChanged():
+
Usage:
print("Cue List Changed")
+
  def onPlaybackStart():
api.groups.releaseGroup(api.attributeTypes.intensity, "1,1")
+
      print("Playback Started")
+
 
def onShowLoaded():
+
==onPlaybackStop==
print("Show Loaded")
+
Called when timeline playback has stopped
 +
 
 +
Usage: 
 +
  def onPlaybackStop():
 +
      print("Playback Stopped")
 +
 
 +
==onFrameChange==
 +
Called on every frame change during playback, scrubbing, and time changes.
 +
 
 +
Usage:
 +
  def onFrameChange(seconds As Double):
 +
      print("Frame Changed " + seconds)
 +
 
 +
==onShutdown==
 +
Called when Lightforge is shutting down.
 +
 
 +
Usage:
 +
  def onShutdown():
 +
      print("Lightforge Shutdown")
 +
 
 +
==onCuelistChanged==
 +
Called when the current cuelist has been changed.
 +
 
 +
Usage:
 +
  def onCuelistChanged():
 +
      print("Cue List Changed")
 +
 
 +
==onShowLoaded==
 +
Called when a new show has been loaded.
 +
 
 +
Usage:
 +
  def onShowLoaded():
 +
      print("Show Loaded")

Revision as of 19:10, 6 May 2013

Contents

Classes

api.attributeTypes

api.cues

api.groups

api.output

Events

onExecute

Called when this script is specifically executed.

Usage:

  def onExecute():
     print("Script Executed")

onStartup

Called when Lightforge initially starts up.

Usage:

  def onStartup():
     print("Lightforge Started")	

onPlaybackStart

Called when timeline playback has started.

Usage:

  def onPlaybackStart():
     print("Playback Started")

onPlaybackStop

Called when timeline playback has stopped

Usage:

  def onPlaybackStop():
     print("Playback Stopped")

onFrameChange

Called on every frame change during playback, scrubbing, and time changes.

Usage:

  def onFrameChange(seconds As Double):
     print("Frame Changed " + seconds)

onShutdown

Called when Lightforge is shutting down.

Usage:

  def onShutdown():
     print("Lightforge Shutdown")

onCuelistChanged

Called when the current cuelist has been changed.

Usage:

  def onCuelistChanged():
     print("Cue List Changed")

onShowLoaded

Called when a new show has been loaded.

Usage:

  def onShowLoaded():
     print("Show Loaded")
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox