Delete all cues within group

190 views
Skip to first unread message

Kinetic Screen

unread,
Dec 27, 2023, 5:21:14 AM12/27/23
to QLab
I understand the concerns regarding scripting deleting of cues, but I can't see a way around it considering the silly nonsense I'm trying to do. 

Basically before a run a script which creates a bunch of cues within a group, I first need to clear out that group of the previous night's generated cues.
Screenshot 2023-12-27 at 8.59.50 pm.png

I've found the other threads on here regarding the delete command, and I've been banging my head against a wall trying to find a combination that works.

I've tried variances of 
tell current cue list
delete (cues whose parent is "theCueGroup")
end tell

or running it as a repeat as "theCurrentCue" through ("theCueGroup" as list)...

I thought I'd get somewhere with the format of elsewhere provided delete cue "1" of parent of cue "1"
by using both theCueGroup and theCurrentCue but it freaks out with errors. I'm aware that the problem is ultimately my surface understanding of the way AppleScript it targeting the structure of Qlab, but if someone can point me in the right direction I'd be grateful. Then I can come back and post about how I accidentally deleted my whole show.

Mic Pool

unread,
Dec 27, 2023, 8:01:23 AM12/27/23
to ql...@googlegroups.com
tell application id "com.figure53.QLab.5" to tell front workspace
set thecues to cues of cue "1"
repeat with eachcue in thecues
set theid to uniqueID of eachcue
delete cue id theid of (parent of eachcue)
end repeat
end tell

Kinetic Screen

unread,
Dec 27, 2023, 3:48:16 PM12/27/23
to QLab
Argh thank you!

Kinetic Screen

unread,
Dec 31, 2023, 7:44:25 PM12/31/23
to QLab
So making and deleting cues from a script only work when the workspace is in Edit mode. I'm trying a new years resolution of actually running qLab in show mode this year. Is there a way of getting the script to overide with, the equivalent of a 'sudo' command? Or is there a way of scripting a switch to edit mode, and then back to show mode?

micpool

unread,
Jan 1, 2024, 3:48:11 AMJan 1
to QLab

Edit mode and show mode are both properties of workspace and can be set with boolean values.

Kinetic Screen

unread,
Jun 5, 2024, 11:33:33 PMJun 5
to QLab
Currently publishing a series of videos showing the more interesting uses of QLab during a recent season at Melbourne International Comedy Festival - but thought I should follow up this thread with why on earth I needed a script to delete cues during a show....


Amazing that Google Groups still can't inline display a YouTube link...

sam kusnetz

unread,
Jun 6, 2024, 8:37:26 AMJun 6
to QLab
Madness!

I love it.

Sam

Nate Zwainlesk

unread,
Jun 6, 2024, 8:25:24 PMJun 6
to QLab
You mad lad! That's great! Running a show on battery no less ;)

Kinetic Screen

unread,
Jun 6, 2024, 11:06:33 PMJun 6
to QLab
Haha that's a hilarious pickup. Although as impressed as I am with these new Apple Silicon chips, the screen recordings and b-roll footage for this series has been recreated a week ago - considering the number of plates I had spinning, I didn't even consider doing screen recordings during the shows!

Philip Perkins

unread,
Jun 6, 2024, 11:18:36 PMJun 6
to ql...@googlegroups.com
Thanks-wild-hairy!  SInce the shot was zoomed in a ways I couldn’t see if that QLAB was also triggering the dings etc with the letters?  Was it?

phil p


--
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 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/8358d5c9-bfae-4688-87cc-d2eb9f417d26n%40googlegroups.com.

Kinetic Screen

unread,
Jun 7, 2024, 12:26:36 AMJun 7
to QLab
Yes everything is QLab. The script takes the inputted letter and loops through the inactive text layers (i.e. the letters on the board that haven't yet been revealed) to find a match. If there is no match it plays the buzzer sound effect. If it does match it displays the layer and plays the ding.
What's more interesting is that it also lights up the white box the letter is on top of... That was originally in the 'too hard, don't try' basket until a method of doing it occurred to me...
Reply all
Reply to author
Forward
0 new messages