Difference between revisions of "API"
From Light Forge Wiki
Chris Monson (Talk | contribs) |
Chris Monson (Talk | contribs) |
||
Line 13: | Line 13: | ||
==onExecute== | ==onExecute== | ||
Usage: | Usage: | ||
− | + | <syntaxhighlight lang="java"> | |
+ | def onExecute(): | ||
+ | </syntaxhighlight> | ||
def onStartup(): | def onStartup(): | ||
+ | |||
print("Lightforge Started") | print("Lightforge Started") | ||
Revision as of 18:59, 6 May 2013
Classes
Events
onExecute
Usage:
def onExecute():
def onStartup():
print("Lightforge Started")
def onPlaybackStart(): print("Playback 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(): print("Cue List Changed") api.groups.releaseGroup(api.attributeTypes.intensity, "1,1")
def onShowLoaded(): print("Show Loaded")