Difference between revisions of "Api.cues"
From Light Forge Wiki
Chris Monson (Talk | contribs) (→Methods) |
Chris Monson (Talk | contribs) |
||
Line 7: | Line 7: | ||
Usage: | Usage: | ||
− | + | <syntaxhighlight lang=python> | |
− | + | cuelistCount = api.cues.getCuelistCount() | |
+ | print(cuelistCount) | ||
+ | </syntaxhighlight> | ||
==getCuelistLength== | ==getCuelistLength== | ||
Line 16: | Line 18: | ||
Usage: | Usage: | ||
− | + | <syntaxhighlight lang=python> | |
− | + | cuelistLength = api.cues.getCuelistLength() | |
+ | print(cuelistLength) | ||
+ | </syntaxhighlight> | ||
==getCuelistIndex== | ==getCuelistIndex== | ||
Line 25: | Line 29: | ||
Usage: | Usage: | ||
− | + | <syntaxhighlight lang=python> | |
− | + | index = api.cues.getCuelistIndex() | |
+ | print(index) | ||
+ | </syntaxhighlight> | ||
==selectCuelist== | ==selectCuelist== | ||
Line 34: | Line 40: | ||
Usage: | Usage: | ||
− | + | <syntaxhighlight lang=python> | |
− | + | api.cues.selectCuelist(2) | |
+ | print(api.cues.getCuelistIndex()) | ||
+ | </syntaxhighlight> |
Latest revision as of 18:25, 9 May 2013
Contents |
[edit] Methods
[edit] getCuelistCount
getCuelistCount() As Integer
Returns the number of cuelists in this show.
Usage:
cuelistCount = api.cues.getCuelistCount() print(cuelistCount)
[edit] getCuelistLength
getCuelistLength() As Double
Returns the length of the current cuelist in seconds or beats
Usage:
cuelistLength = api.cues.getCuelistLength() print(cuelistLength)
[edit] getCuelistIndex
getCuelistIndex() As Integer
Returns the index of the current cuelist.
Usage:
index = api.cues.getCuelistIndex() print(index)
[edit] selectCuelist
selectCuelist(index As Integer)
Changes to a different cuelist.
Usage:
api.cues.selectCuelist(2) print(api.cues.getCuelistIndex())