remove a cue from its group and place it outside

100 views
Skip to first unread message

Kalman Tarr

unread,
Dec 25, 2024, 8:35:03 AM12/25/24
to QLab
Hi Pros,
I have a short question.
Is there an easy way to do the process I'm showing you in the script. 
Simply put, take a single cue out of its group and place it anywhere in the cue list.
This is my solution, it seems a bit complicated. OR not?


tell application id "com.figure53.QLab.5" to tell front workspace

set theCue to last item of (selected as list)

set newCueID to uniqueID of theCue

set thePara to (parent of theCue)

set paraIDX to uniqueID of thePara

set selected to thePara

set theGrp to last item of (selected as list)

set theGrpIDX to uniqueID of theGrp

move cue id newCueID of parent of theCue to end of the first cue list

tell parent of (theCue)

move cue id newCueID to before the (cue id (theGrpIDX))

--move cue id newCueID to after the cue id theGrpIDX

end tell

set selected to theCue

end tell


Thanks in advance.

Kalman

micpool

unread,
Dec 25, 2024, 12:50:06 PM12/25/24
to QLab
That's so 5.3!

In 5.4 you can just tell AppleScript what to move and where to move it in plain English.

tell application id "com.figure53.QLab.5" to tell front workspace

move cue "2" to after cue "6"

move cue "5" to end of cue "3"

move cue "10" to end of cue "3"

move cue "3" to before cue "1"

move cue "2" to before cue "9"

end tell





Screen Recording 2024-12-25 at 17.36.43-HD 1080p.mov

Kalman Tarr

unread,
Dec 25, 2024, 3:39:39 PM12/25/24
to QLab
Thank you Mic again
Great solution, like always!
Happy New Year for 2025
Best,
Kalman

Reply all
Reply to author
Forward
0 new messages