[Updated for QLab 4.1 13 JUL 17]
When this workspace opens, it lets you select a cue list from a choice of 8. In this example, there is a cue list named for each day of the week, and an extra one for Saturday for afternoon use. It’s easily adapted for other uses, so for instance, you could have 21 choices; morning, afternoon, and evening, for each day, or just a choice of cuelist for matinee or evening performances.
It also defaults to a choice called “Auto”. Selecting this default by just hitting return or, clicking OK will read the system clock and go to the appropriate cue list automatically.
Here it is in action:
How It Works:
This workspace demonstrates a few Qlab features including:
Auto-running a cue when a workspace opens.
Interacting with the operator through dialogs.
Automating workspaces by using the system clock.
To make a cue auto run when a workspace is launched, go to settings, general, and enter the number of the cue you want to run.
In the example, the cue numbered SEL, is tucked away in a cue list called Scripts.
There are a few important things to note. The ‘run in separate process’ box, in the bottom right of the script tab of the inspector, is not checked. And there is a 1 second pre wait on the script cue. Because the script is the first thing to happen when the workspace is opened, it doesn’t yet know it is the front workspace. The 1 second pre wait just makes sure it becomes the active workspace before the script is run.
This is the script that is auto run:
The script first creates a list of performances. It then gets the date from the Mac system clock and extracts the weekday and the hour of the time.
It then presents a dialog, with all the cue lists available, for the operator to choose from. If the operator selects Auto, which is the default, the weekday and hour is used to determine which cue list is the appropriate one to open.
The script also contains some code in the event the cancel button is pressed.
You can download the workspace here.
Cover Image By George Armstrong,[Public domain], via Wikimedia Commons