- 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