Difference between revisions of "Api.cues"
From Light Forge Wiki
Chris Monson (Talk | contribs) (Created page with "=Methods= ==getCuelistCount== '''getCuelistCount() As Integer''' Returns the number of cuelists in this show. Usage: cuelistCount = api.cues.getCuelistCount() print(c...") |
Chris Monson (Talk | contribs) |
||
(One intermediate revision by one user not shown) | |||
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() As Integer''' | ||
+ | |||
+ | Returns the index of the current cuelist. | ||
+ | |||
+ | Usage: | ||
+ | <syntaxhighlight lang=python> | ||
+ | index = api.cues.getCuelistIndex() | ||
+ | print(index) | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | ==selectCuelist== | ||
+ | '''selectCuelist(index As Integer)''' | ||
+ | |||
+ | Changes to a different cuelist. | ||
+ | |||
+ | 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())