Create Groups
Group Selected Individually
Encapsulate each selected cue within its own group.
applescript
-- For help, bug reports, or feature suggestions, please visit https://github.com/samschloegel/qlab-scripts
-- Built for QLab 5. v211121-01
tell application id "com.figure53.QLab.5" to tell front workspace
set theSelection to (selected as list)
repeat with eachCue in theSelection
set selected to eachCue
set theName to q name of eachCue
set theNum to q number of eachCue
set theID to uniqueID of eachCue
set q number of eachCue to ""
make type "Group"
set theGroup to last item of (selected as list)
set q name of theGroup to theName
set q number of theGroup to theNum
move cue id theID of parent of eachCue to end of theGroup
end repeat
end tell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Group Selected, Inherit Name
Puts selected cues in a group together.
Why use this instead of the New Group Cue hotkey? Because it works even if there is only one cue selected - and in that case, it will copy the cue's name to the group's name.
applescript
-- For help, bug reports, or feature suggestions, please visit https://github.com/samschloegel/qlab-scripts
-- Built for QLab 5. v211121-01
tell application id "com.figure53.QLab.5" to tell front workspace
set theSelection to (selected as list)
if (count theSelection) is 0 then return
set groupName to q name of last item of (selected as list)
make type "Group"
set groupCue to last item of (selected as list)
if (count theSelection) is 1 then -- if only one cue was selected, name the group after it
set q name of groupCue to groupName
end if
set parentOfGroup to parent of groupCue
repeat with eachCue in theSelection
if contents of eachCue is not parentOfGroup then -- Avoids a potential selection error
move cue id (uniqueID of eachCue) of parent of eachCue to end of groupCue
end if
end repeat
end tell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20