Colors
Set color from list
Navigating to the color selector of the Basics tab is tedious. Instead, add your list of favorite colors here, and then set color from a list without touching the mouse.
applescript
-- For help, bug reports, or feature suggestions, please visit https://github.com/samschloegel/qlab-scripts
-- Built for QLab 5. v220903-01
tell application id "com.figure53.QLab.5" to tell front workspace
set theSelection to (selected as list)
set theColors to {"none", "red", "orange", "green", "blue", "purple"}
try
set newColor to choose from list theColors with title "Pick a color" default items {"none"}
repeat with eachCue in theSelection
set q color of eachCue to newColor
end repeat
on error
return
end try
end tell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Set group color by child
If the children of the selected groups only contain one color (other than 'none'), set the selected group to that color as well.
Only works on direct children, not grandchildren etc (not recursive).
Example: All MIDI triggers to LX are color-coded red. The selected group has an LX trigger in it, and none of the other children have a color set, so the group is set to red as well, indicating that it contains an LX trigger.
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
if q type of eachCue is "Group" then
set theChildren to (every cue in eachCue)
set childColors to {"none"}
repeat with eachChild in theChildren
if childColors does not contain q color of eachChild then
set end of childColors to q color of eachChild
end if
end repeat
if (count childColors) = 2 then
set q color of eachCue to item 2 of childColors
end if
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