This page last modified: 14 Sep 2009 03:46:00 PM.
|
Scripting
QLab 2 offers comprehensive scripting hooks to control the application programmatically. You can use AppleScript, or through the OS X scripting bridge, languages like Python and Ruby.
You can explore the available scripting hooks from applications such as Apple's Script Editor. The scripting hooks are self-documented in the scripting definitions file inside the QLab application. Viewing the scripting library will display the full documentation for the scripting hooks.
You'll find a handy list of QLab scripts and macros on the Figure 53 wiki: http://figure53.com/wiki/index.php?title=QLab_Scripts_and_Macros
The QLab scripting library as viewed with Script Editor.
Here is a simple AppleScript which demonstrates some of the controls you have over QLab through the scripting hooks:
tell application "QLab" tell workspace 1 make type "midi" set myMIDICue to a reference to cue "1" tell myMIDICue set patch to 2 set channel to 1 set command to channel_pressure set byte one to 100 set fade to enabled set end value to 0 set duration to 7.4 end tell set mainCueList to a reference to cue list 1 set playback position of mainCueList to myMIDICue end tell go workspace 1 end tell
|
Previous: Preferences
|
This documentation is also available as a PDF document or within QLab under the Help menu.