This page last modified: 15 Apr 2011 01:53:03 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.
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
© 2010 Figure 53, LLC. All rights reserved.