Panic applescript with start cue

586 views
Skip to first unread message

nizer

unread,
May 19, 2013, 12:02:07 AM5/19/13
to ql...@googlegroups.com
Is there a way to use the panic verb and then have another cue start.

With this script Qlab 2 abrubtly stopped then when to the cue I told it.

OLD WAY

set cueList to current cue list of front workspace
stop cueList
set playback position of cueList to first cue of cueList whose q name is "Lasers"
start cueList

I want to use the awesome gentler panic to fade out music and video and then go to the cue I want.

NEW WAY? (doesn't work nice)

set cueList to current cue list of front workspace
panic front workspace
delay 1.5
set playback position of cueList to first cue of cueList whose q name is "Lasers"
start cueList

Joshua Langman

unread,
May 19, 2013, 12:14:51 AM5/19/13
to ql...@googlegroups.com
Can you "panic" only a specific workspace or cue?

I'm assuming the problem is that panicking the workspace causes the script cue to abort.

nizer

unread,
May 19, 2013, 2:06:17 AM5/19/13
to ql...@googlegroups.com
That is possible. It's just so nice when it fades out. 

Sam Kusnetz

unread,
May 19, 2013, 12:03:17 PM5/19/13
to ql...@googlegroups.com
Nizer

If you panic duration is 1.5, you might want to set your delay to 1.6 to
be on the safe side.

Also, since panic allows reverb tails and such to continue playing,
consider this:

panic front workspace
delay 1.5
stop front workspace

Cheerio
Sam
--
Sam Kusnetz
QLab Support Operative
s...@figure53.com

nizer

unread,
May 19, 2013, 3:49:26 PM5/19/13
to ql...@googlegroups.com
set cueList to current cue list of front workspace
panic front workspace
delay 1.5
set playback position of cueList to first cue of cueList whose q name is "Lasers"
start cueList

None of these solutions works. Either the panic kills all other future cues/waits/timers or the panic is totally abrupt and looses that sweet fade.

Sam Kusnetz

unread,
May 19, 2013, 3:56:21 PM5/19/13
to ql...@googlegroups.com
Oh boy, I cannot believe I missed this earlier... the reason this doesn't work is because the panic stops the script cue.

To make this work, you either need to run the script from outside QLab or be more granular with your panic commands, i.e. by sending a panic to specific cues rather than the whole workspace.

Cheerio
Sam

Rich Walsh

unread,
May 23, 2013, 2:50:28 PM5/23/13
to ql...@googlegroups.com
Scripting is overkill for this. If you want to fade out a cuelist then, well, use a Fade Cue! Similarly, a Goto Cue will now do what you want in v3.

I can get the script below to work with a small delay between lines 4 & 5; I can't find evidence that the panic is stopping the Script Cue.

However, I have uncovered a fairly significant bug: if you press ESC while a Script Cue is running, it generates an AppleScript error ("User cancelled"), which breaks the cue until it is recompiled. This is NOT desirable! Error -128 should not break cues; otherwise you can never cancel out of a dialog (without trapping the error in the script itself).

Rich

Christopher Ashworth

unread,
May 23, 2013, 2:56:42 PM5/23/13
to ql...@googlegroups.com

On May 23, 2013, at 2:50 PM, Rich Walsh <rich...@mac.com> wrote:
>
> However, I have uncovered a fairly significant bug: if you press ESC while a Script Cue is running, it generates an AppleScript error ("User cancelled"), which breaks the cue until it is recompiled. This is NOT desirable! Error -128 should not break cues; otherwise you can never cancel out of a dialog (without trapping the error in the script itself).

Thanks Rich; I've just fixed this and the fix will be available in the next update.

-C

nizer

unread,
May 23, 2013, 10:15:36 PM5/23/13
to ql...@googlegroups.com
Sadly none of these solutions work. First off the Fade Cue doesn't fade out a entire cuelist, does it. I never know what group is going to be playing when I want to "jump" to another group. I tried dropping a cuelist onto a fade cue with no result. I need to have a keyboard short cut, kill (or fadeout) what ever is playing, then move the playhead to whatever cue I program.  The Goto cue doesn't start the cue when you get there and the Start cue only starts the cue but doesn't move the playhead there so next time you hit GO it doesn't trigger the next cue after where ever you jumped to.

Glad for ANY help and clarification.

Rich Walsh

unread,
May 23, 2013, 11:56:17 PM5/23/13
to ql...@googlegroups.com
Your script does work if you put a delay between lines 4 and 5 as I said and tested. I have been fading entire cuelists in QLab for the last 4 years so I would not have said this would work if I had not checked. If you want to start cue N and then be standing by for cue N+1 as if you had pressed GO on cue N then just start cue N and Goto cue N+1. I have tested that again before posting.

Happy to provide ANY help.

Rich

--
--
Change your preferences or unsubscribe here:
http://groups.google.com/group/qlab
 
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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Mark

unread,
May 23, 2013, 10:53:35 PM5/23/13
to ql...@googlegroups.com
When can I get the next update. 

----------------------------------------
Mark Neisser/Nizer

Mark Nizer

unread,
May 24, 2013, 7:43:20 AM5/24/13
to ql...@googlegroups.com
How do you fade an entire cue list. Drag it's entire side bar folder onto a fade cue?

Thank u for your help and guidance. :-) and sorry to be so ignorant :-/

Mark Nizer/Neisser

Dave "luckydave" Memory

unread,
May 24, 2013, 7:45:46 AM5/24/13
to ql...@googlegroups.com
On Friday, May 24, 2013 at 7:43 AM, Mark Nizer wrote:
How do you fade an entire cue list. Drag it's entire side bar folder onto a fade cue?

A cue list is a group cue, so drag the cue list onto a fade cue for the fade cue to have that cue list as its target.

-- 

nizer

unread,
May 24, 2013, 12:21:50 PM5/24/13
to ql...@googlegroups.com
I did that and it sort of works. There all kinds of files in that cue list and intially the fade cue is marked with a red X but the only tab to choose what to fade is AUDIO, so I just drag the master volume up and down. 

Here is my real problem now. I was told the START CUE and FADE CUE will work in place of the script above ( the script is so harsh), but the only way START CUE lets you use GO after you go to the START CUE is if you UNCHECK "Lock playback position to selection" in preferences. If you don't UNCHECK it, then it starts the START CUE but when you hit GO next time it triggers what ever cue the playhead was on before. If you have it CHECK there is no way to change where the PLAYHEAD is?

Am I missing something basic here?

Rich Walsh

unread,
May 24, 2013, 12:28:42 PM5/24/13
to ql...@googlegroups.com
Does this help at all? When you GO cue 7 (or use Hotkey J), it fades out the Main Cue List, starts cue 3 and stands you by for cue 4. You should be able to extrapolate from there. I knocked this up quickly, so I may not have tested it thoroughly.

Perhaps the issue is that you're wanting to fade video – at which point I can't help you at all as I don't use QLab for video.

Rich
Fade & Jump.cues

Rich Walsh

unread,
May 24, 2013, 1:21:47 PM5/24/13
to ql...@googlegroups.com
For completeness, here is a version that almost works with a script instead. You'll need to add your own audio & video cues.

There is a problem here though: whilst audio fades out, video freezes when a panic command is sent from within QLab and followed by a delay command. This is probably a bug, since the audio and video behave differently.

This exercise also highlights an issue with the combination of v2 Fade & Animation Cues into one v3 Fade Cue: whilst old Fade Cues could target Group Cues, Animation Cues could not – but new combined Fade Cues probably ought to include the Geometry tab when targeting a Group Cue.

Rich
Fade & Jump With Script.cues

Mark Nizer

unread,
May 26, 2013, 9:54:09 AM5/26/13
to ql...@googlegroups.com
So, as I thought, this doesn't work because I want to fade out video clips too. Like you said they just stop dead. 

Right now the only solution is to hit ESC, wait 1.5 sec then hit another key to go where I want. I suppose I could have a black video fade in on the TOP layer before activating the panic. They may hide the video being cut off so fast.

The reason I even need this is when I am on stage my computer is off in the wings and i have a bluetooth keyboard on stage that lets me change routines if I wish on the fly.

Mark Nizer
When the Entertainment Matters

--
--
Change your preferences or unsubscribe here:
http://groups.google.com/group/qlab

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.
For more options, visit https://groups.google.com/groups/opt_out.


<Fade & Jump With Script.cues>

Rich Walsh

unread,
May 26, 2013, 10:43:49 AM5/26/13
to ql...@googlegroups.com
> Right now the only solution is to hit ESC, wait 1.5 sec then hit another key to go where I want. I suppose I could have a black video fade in on the TOP layer before activating the panic. They may hide the video being cut off so fast.

What's so bad about that; it's a bit like closing a dowser surely?

Alternatively, you could have a script dynamically assign the target of a Fade Cue to the current active Video Cue (if you have only one at a time) and fire that in conjunction with the Fade Cue targeting the cuelist to take out the audio.

Most simply though – and only tested _very_ quickly – save your script as an application from AppleScript Editor (include a "tell application "QLab 3"" block – named as suits your system), then have the Script Cue inside QLab do this:

launch application "path/to/app" -- You can get the correct string here just by dragging and dropping the application onto the Script tab in QLab

This appears to get round the current video-not-fading-when-sent-panic-via-AppleScript-followed-by-delay-in-QLab bug.

Rich

Steve Lalonde

unread,
May 27, 2013, 11:48:01 AM5/27/13
to Discussion and support for QLab users.
This is definitely the best overall panic cue for QLab2 

I always have this on a trigger somewhere for SM. 


Screen shot 2013-05-27 at 11.45.46.png

Steve Lalonde

unread,
May 27, 2013, 11:49:14 AM5/27/13
to Discussion and support for QLab users.
oops, screenshot didn't catch the cue list pane, but this is on a second cuelist called panic. 
... and noir means black. 

S
2013/5/27 Steve Lalonde <lalond...@gmail.com>
Reply all
Reply to author
Forward
0 new messages