Difference between revisions of "API"
From Light Forge Wiki
Chris Monson (Talk | contribs) |
Chris Monson (Talk | contribs) |
||
| Line 1: | Line 1: | ||
| + | =Classes= | ||
| + | |||
[[api.attributeTypes]] | [[api.attributeTypes]] | ||
| Line 6: | Line 8: | ||
[[api.output]] | [[api.output]] | ||
| + | |||
| + | =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") | ||
Revision as of 17:56, 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")