Difference between revisions of "API"

From Light Forge Wiki
Jump to: navigation, search
Line 5: Line 5:
  
 
==api.cues==
 
==api.cues==
 +
Used for working with cues.
 
[[api.cues]]
 
[[api.cues]]
  
 
==api.groups==
 
==api.groups==
 +
Used for working with groups.
 
[[api.groups]]
 
[[api.groups]]
  
 
==api.output==
 
==api.output==
 +
Used for getting information about DMX output
 
[[api.output]]
 
[[api.output]]
  

Revision as of 20:21, 6 May 2013

Contents

Classes

api.attributeTypes

api.attributeTypes

api.cues

Used for working with cues. api.cues

api.groups

Used for working with groups. api.groups

api.output

Used for getting information about DMX output api.output

Functions

getTime

getTime() As Double

Gets the current playback position.

Usage:

  print(api.getTime())

setTime

setTime(time As Double)

Sets the current playback position to the specified time.

Usage:

  api.setTime(36.5)
  print(api.getTime())

wait

wait(seconds As Double)

Causes execution to wait for the specified number of seconds.

Usage:

  api.wait(3.5)

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