Auto group into timelines when dragging tracks into qlab

133 views
Skip to first unread message

Phill's Lighting & Sound

unread,
May 15, 2024, 6:36:15 AMMay 15
to QLab
Hi all,

Just wondering if someone could talk me though making a script that could take multiple tracks from a folder and putting them all into individual timeline groups upon import and custom label that group with the track name.
At the moment i have to drag all the tracks in then manually create the groups then drag each track into its own group then go though and manually label every group.

Thanks in advance,

Phillip Geddes (He/Him)

Phill's Lighting and Sound

Bis Email: phillslight...@hotmail.com

Screenshot 2024-05-15 at 11.34.27.png

A. Johnson

unread,
May 15, 2024, 11:39:22 PMMay 15
to ql...@googlegroups.com
If:
  • your tracks are already in your workspace, and
  • the group cue template for your workspace is set to create new groups as timeline groups

you can select them all and run the following script on a hotkey, which, for each selected cue, will:

  • make a new group cue
  • remove the number of the original cue and set the number of the new group cue to that value (if the original cue has a number)
  • put the original cue inside the new group cue
  • set the name of the new group cue to the name of the original cue

This is a combination and adjustment of two scripts I already had built, one of which was “make enclosing group and steal cue number” and one of which was “rename the group this cue is in after this cue”. So, with the caveat that I just threw this together and ran it on a single sample set of cues but haven’t tested it more than that, it may be close enough to do what you’re looking for?

(Also, dragging a folder into QLab creates a group cue with the folder name and the contents as child cues. So you could drag the folder into QLab, select the contents, drag them out of the automatically created group into the main cuelist, and run this script.)

=== The script (to run in a Script cue from a hotkey trigger when some number of cues are selected) ===
tell application id "com.figure53.QLab.5" to tell front workspace
set theseCues to (selected as list)
repeat with thisCue in theseCues
make type "Group"
set newCue to last item of (selected as list)
if (q number of thisCue) exists then
set thisNumber to (q number of thisCue)
set (q number of thisCue) to ""
set (q number of newCue) to thisNumber
end if
set thisID to uniqueID of thisCue
move cue id thisID of parent of thisCue to end of newCue
set q name of newCue to (q list name of thisCue)
end repeat
end tell
===

Hope this helps.

~~~AJ

---
Adam W. Johnson
Sound Designer / Sound and Video Engineer


--
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/ea2d9a23-e35d-41d1-aecb-10643ce6a94bn%40googlegroups.com.

Phill's Lighting & Sound

unread,
May 24, 2024, 7:38:27 AMMay 24
to QLab
Hi Adam,

This is amazing worked straight away thankyou so much this is going to be a massive time saver.

Thanks

Phillip Geddes (He/Him)

Phill's Lighting and Sound

Bis Email: phillslight...@hotmail.com

Thomas Bartke

unread,
Jun 8, 2024, 11:08:45 AMJun 8
to QLab
That's awesome! Works in Qlab4 as well. thanks for posting!
Reply all
Reply to author
Forward
0 new messages