Can anyone think of a clever way to create a script to change the surface of the selected cues?
I've been enjoying writing scripts for QLab - using both the native AppleScript interface and via the nc/OSC hack. But as far as I can tell, there isn't any way to do something like this:
-- Patch selected cues
-- Tim Rogers <timmr...@gmail.com>
-- Updated to use OSC /cue/selected syntax
tell application id "com.figure53.qlab.3" to tell front workspace
display dialog "Type new patch number (1-16 for OSC cues, 1-8 for Audio, Mic, MIDI, and Video cues)" with title "New Patch Number" with icon 1 default answer ""
set myOSC to "/cue/selected/patch " & myPatch
do shell script "echo " & myOSC & " | nc -u -w 0 127.0.0.1 53535"
end tell
for Video cue surfaces - at least not without some sort of external helper program.
QLab has a nice OSC interface to change the surface
/cue/{number}/surfaceID {number}
Get/set the surface ID of the cue.
but no way that I could figure out to get the surfaceID in a way that is scriptable.
Has anyone already solved this? Or does anyone have an idea as to how we might?
Thank you!