scripting - jump to cue

203 views
Skip to first unread message

Brendan Aanes

unread,
Jun 7, 2013, 8:21:26 PM6/7/13
to ql...@googlegroups.com
I'm in a situation where I need to skip a cue in certain situations. Specifically, In some cases, cue 5 (which is a fire-all group that does a bunch of stuff) will be followed by cue 6, in the alternate situation cue 6 will be skipped and we will go straight to cue 10. There was a previous thread discussing this, but none of those scripts worked for me. What I came up with:


tell application "QLab"
    tell front workspace
        tell current cue list
            set playback position to cue "10"    
        end tell
    end tell
end tell

Does jump, however it jumps to 10 and then immediately to the following cue in the list. I can make it work by setting the playback position to the cue prior to 10, but that's funky.

Thoughts?


This is v2, by the way...

Rich Walsh

unread,
Jun 7, 2013, 9:15:15 PM6/7/13
to ql...@googlegroups.com
What is the context for how this Script Cue is fired? There's nothing wrong with the script; the problem is probably that QLab is not doing its "standby for next cue" step until after the script has run at which point it stands by for the cue after the one you just moved the playhead to…

See if you can make sense of this thread: https://groups.google.com/forum/?fromgroups#!searchin/qlab/goto$20issue/qlab/u83UEaCXJy0/Oe-JnPbbLacJ. You should be able to do what you want with a Goto Cue, but I've never managed to get them to do anything useful, so I could be wrong about that.

Depending on the details of your cueing structure, you may get the script to work better by putting a tiny Pre Wait on it. QLab then thinks the cue is running, stands by as expected and then has the playhead moved by the script. You may want to load cue 10 too…

Rich
Reply all
Reply to author
Forward
0 new messages