-- Shuffle the cues in a specific Group Cue and set them to play consecutively (you should turn this into a Script Cue)
tell application "QLab"
set userGroupCueNumber to "1" -- Change this to the q number of the Group Cue
set userOverlap to -1 -- Use this variable to define how long before the end of a cue the next one should start (eg: "-1" will give a 1s overlap)
tell front workspace
set theGroupCue to cue userGroupCueNumber
set countCues to count cues of theGroupCue
repeat countCues times -- This won't always move every cue, but should move sufficient to randomise the order
set eachCueID to uniqueID of some item of items 1 thru -1 of (cues of theGroupCue as list) -- Trying to move the last cue to the end will result in a non-functional copy of it
move cue id eachCueID of theGroupCue to end of theGroupCue
end repeat
set shuffledCues to cues of theGroupCue
repeat with i from 1 to countCues
set eachCue to item i of shuffledCues
if i is not countCues then
set post wait of eachCue to (duration of eachCue) + userOverlap
set continue mode of eachCue to auto_continue
else
set post wait of eachCue to 0
set continue mode of eachCue to do_not_continue
end if
end repeat
end tell
end tell
Rich
(Apologies if you end up getting this several times: I'd managed to create an email wormhole with a particular combination of characters in a plain text email and the email kept disappearing!)
________________________________________________________
WHEN REPLYING, PLEASE QUOTE ONLY WHAT YOU NEED. Thanks!
Change your preferences or unsubscribe here:
http://lists.figure53.com/listinfo.cgi/qlab-figure53.com
Follow Figure 53 on Twitter here: http://twitter.com/Figure53
I've been thinking about this for a while not only to keep myself sane but also the patrons who come see the show two, three or more times!
Cheers
Geoff
------------------------------ IMPORTANT NOTICE ------------------------------
This email transmission and any accompanying attachments contain confidential
information intended only for the use of the individual or entity named above.
Any dissemination, distribution, copying or action taken in reliance on the
contents of this email by anyone other than the intended recipient is strictly
prohibited. If you have received this email in error please immediately delete
it and notify sender at the above email address.
------------------------------ IMPORTANT NOTICE ------------------------------
Hi Rich -
-- Shuffle the cues in a specific Group Cue and set them to play consecutively
set userGroupCueNumber to "1" -- Change this to the q number of the Group Cue
set userOverlap to -1 -- Use this variable to define how long before the end of a cue the next one should start (eg: "-1" will give a 1s overlap); NB: you can’t add gaps with +ve overlaps thoughtell application id "com.figure53.QLab.4" to tell front workspace
set theGroupCue to cue userGroupCueNumber
set mode of theGroupCue to fire_first_go_to_next_cue -- Have to make sure of this in v4
set countCues to count cues of theGroupCuerepeat countCues times -- This won't always move every cue, but should move sufficient to randomise the order
set eachCueID to uniqueID of some item of items 1 thru -2 of (cues of theGroupCue as list) -- Trying to move the last cue to the end will result in a non-functional copy of it…
move cue id eachCueID of theGroupCue to end of theGroupCueend repeatset shuffledCues to cues of theGroupCuerepeat with i from 1 to countCuesset eachCue to item i of shuffledCuesif i is not countCues then
set post wait of eachCue to userOverlap -- v4 accepts -ve post waits!
set continue mode of eachCue to auto_continueelseset post wait of eachCue to 0set continue mode of eachCue to do_not_continueend ifend repeatend tell
--
Contact support anytime: sup...@figure53.com
Follow Figure 53 on Twitter: http://twitter.com/Figure53
---
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/f851eee7-9dd6-4f33-9cbc-0f5495ef8b53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Follow Figure 53 on Twitter: https://twitter.com/Figure53
User Group Code of Conduct: https://figure53.com/help/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/f95c4c3c-4486-45c4-a6c4-c793125eb301%40googlegroups.com.