Skippy the Bush Skip A Cue

 

[Updated for QLab 4.1 13 JUL 17 ]

Some times it’s great to be able to skip a block of cues in the cuelist, when trying out a cut for instance.

This workspace allows you to select a block of cues, press a hotkey (in the example §), and memo and go to cues are inserted automatically.  To clear a skipped block, select the  cue named “SKIP THE NEXT BLOCK OF CUES”  at the top of the block, and press the hotkey shift-§.

HOW IT WORKS:

tell application id “com.figure53.qlab.3” to tell front workspace
try
set firstcue to first item of (selected as list)
set cueabove to cue before firstcue
set lastcue to last item of (selected as list)
set cuebelow to cue after lastcue
set playback position of current cue list to cueabove
set currentcue to last item of (selected as list)
set continue mode of currentcue to auto_continue
make type “goto”
set currentcue to last item of (selected as list)
set q number of currentcue to “”
set q name of currentcue to “SKIP THE NEXT BLOCK OF CUES ——————————————”
set cue target of currentcue to cuebelow
set playback position of current cue list to lastcue
make type “memo”
set currentcue to last item of (selected as list)
set q number of currentcue to “”
set q name of currentcue to “END OF SKIPPED CUES ————————————————”
end try
end tell

The script sets the auto continue of the cue above the  selected block,  and then inserts a new GO TO Cue, and names it to clearly indicate it’s function, which targets the cue after the selected block. It then inserts a memo cue at the bottom of the  block, and again names it to clearly indicate the end of the skipped cues.

The try/end try block is a get out of jail card, so if the block can’t be created the operation fails without breaking the script.

To remove a block the cue uses this script:

tell application id “com.figure53.qlab.3” to tell front workspace
try
set skipcue to first item of (selected as list)
if the q type of skipcue is “GoTo” then
set cueabove to cue before skipcue
set CueID to uniqueID of skipcue
delete cue id CueID of parent of skipcue
set playback position of current cue list to cueabove
set currentcue to last item of (selected as list)
set continue mode of currentcue to do_not_continue
set currentcue to playback position of current cue list
set currentcue to cue after currentcue
repeat while q name of currentcue is not “END OF SKIPPED CUES ————————————————”
set currentcue to cue after currentcue
end repeat
set CueID to uniqueID of currentcue
delete cue id CueID of parent of currentcue
end if
end try
end tell

 

It  deletes the skip cue and clears  auto continue from the cue above. It then goes through to find the next occurrence of a memo cue to delete a block and deletes that.

You can download the workspace here

You can also explore a method for just skipping over all disarmed cues in simple workspaces here

Original Photograph ‘Kangaroo in Flight’ Chris Samuel  distributed under an Attribution 2.0 Generic Creative Commons license. Modified image by Mic Pool and distributed under the same license.

MenuGraphic