set theflag to false
tell application id "com.figure53.QLab.4" to tell front workspace
set mycue to last item of ((cues whose running is true and q type is "script") as list)
repeat while theflag is false
set mycue to cue after mycue
if armed of mycue is true then
set theflag to true
end if
end repeat
set the playhead of front cue list to mycue
start front cue list
end tell
Hi Mic,I tried your Qlab project and the skip cue works fine in it. Then i have tried to copy all your cues into an empty list in my Qlab project and there it does'nt work. As soon as it hits the script cue, it just stop. What could it be?
I'm still trying to work out why it doesn't work with multiple cue lists on your system (it does on mine), but this is a much better version of the script anyway. As well as finding the calling script cue dynamically, it also finds the cue list the script cue is in and acts on that list explicitly.
set theflag to false
tell application id "com.figure53.QLab.4" to tell front workspace
set mycue to last item of (active cues as list)
set mylist to parent list of mycue
repeat while theflag is false
set mycue to cue after mycue
if armed of mycue is true then
set theflag to true
end if
end repeat
set the playhead of mylist to mycue
start mylist
end tell
Does this work for you?
Mic
set theflag to false
tell application id "com.figure53.QLab.4" to tell front workspace
set mycue to last item of ((cues whose running is true and q type is "script") as list)
set mylist to parent list of mycue
repeat while theflag is false
set mycue to cue after mycue
if armed of mycue is true then
set theflag to true
end if
end repeat
set the playhead of mylist to mycue
start mylist
end tell
set skip to true
tell application id "com.figure53.QLab.4" to tell front workspace
go
repeat until skip is false
set thecue to last item of (selected as list)
if the armed of thecue is false then
moveSelectionDown
else
set skip to false
end if
end repeat
end tell
Mic
Auto-continues and auto-follows play the next cue. if you try to override this behaviour to play the playhead cue instead of the next cue when the post wait of the last cue played is elapsed then you really have no way of knowing where the playhead might be by then.
And it doesn't seem to make much sense to try to make your workspace behave like this. If you had a lighting cue auto continuing from a sound cue, and the next cue was another audio cue, would you really want the second audio cue to play with the first audio cue if you disarmed the lighting cue to try the sequence without it?
--
Contact support anytime: sup...@figure53.com
Follow QLab on Threads: https://threads.net/@QLabApp
User Group Code of Conduct: https://qlab.app/code-of-conduct/
---
You received this message because you are subscribed to a topic in the Google Groups "QLab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qlab/25qRYe8VxHg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/e352726f-6d49-46a3-bf83-1f32b1e8f800n%40googlegroups.com.
Imagine if you had an option to disarm a cue and also skip it, you could place the alternative cue next to the old one and then just go back and forth disarming/arming the new and old cue each time you play the sequence.Another scenario I've come across is when a director wants to replace an audio or video clip in the middle of a complex sequence "but isn't sure and we might change it back later" and then 3 days later decides actually they do want to use the original clip... Instead of deleting/moving the cue in the director's crosshair, it would be a huge timesaver when the director changes their mind and all you have to do is re-arm it. Once that sequence is locked in you can delete any cues you had marked as skipped.