Sending variables in OSC

195 views
Skip to first unread message

Josh Smith

unread,
Apr 14, 2016, 7:45:37 PM4/14/16
to QLab
I'm looking for a way to send variable information in an OSC station from one QLab station to another (for the sake of a script cue).

Specifically for my application, I have one main station that controls lights, video playback, etc. We also run IMAG cameras at the venue, and there is a second QLab station that feeds audible cues into their headsets, which I just use TTS. Currenly, I'm just rendering audio files of the TTS cues, and playing them back in audio cues, triggered by the remote station downstairs. I know that it's easy to do TTS by a script cue, but I would like to be able to set the text to be spoken by remote (so, set the text to be spoken from the computer downstairs, but to be spoken by the computer upstairs). It seems like this should be possible by sending it as an OSC variable, but I have no idea what the script would look like.

Rich Walsh

unread,
Apr 14, 2016, 8:05:13 PM4/14/16
to ql...@googlegroups.com
I didn't think this was going to be possible, but then I found http://figure53.com/docs/qlab/v3/scripting/osc-dictionary-v3/#script-cue-methods

Had to do a bit of digging to figure out how to structure the string – quote escapes, etc.

Rich
OSC to speech demo.cues

Josh Smith

unread,
Apr 14, 2016, 8:07:07 PM4/14/16
to QLab
That's exactly what I'm looking for, thanks!

Christopher Ashworth

unread,
Apr 14, 2016, 8:14:11 PM4/14/16
to ql...@googlegroups.com
Heads up, we are likely going to be removing the ability to set scripts via osc in the near future, because it's a significant security risk.

However you could achieve the same result by eg using a memo cue as a kind of "variable" and setting the name of that cue to the text you want spoken via osc, and having the script reference the name when it runs

(mobile)
--

Josh Smith

unread,
Apr 15, 2016, 3:03:53 PM4/15/16
to QLab
So, I've started to play around with the script, but pretty much anything I do with trying to get a q name, I get the pesky "ERROR: A property can't go after this identifier (-2740)" error. I know I've run into this with some canned scripts before, but I can't remember for the life of me what to do about it.

Josh Smith

unread,
Apr 15, 2016, 3:05:10 PM4/15/16
to QLab
Currently, I'm starting basic with
set q name of "TEXT" to "Test"
(where "TEXT" is just a memo cue). I've also tried
say q name of "TEXT"
and had the same issue 


On Thursday, April 14, 2016 at 7:14:11 PM UTC-5, Chris Ashworth wrote:

Rich Walsh

unread,
Apr 15, 2016, 4:17:10 PM4/15/16
to ql...@googlegroups.com
-2740 is a syntax error: remember those from Basic? It's not pesky: it just means that what you've written doesn't make sense, in this case because you've probably forgotten to tell QLab and tell the workspace – the AppleScript runner doesn't know what "q name" means…

Also, the correct form if getting a q name would be:

set q name of cue "TEXT" to "Test"

Without the cue, "TEXT" is just a string – and a string can't have a q name.

Revised version attached.

What's a "canned script"?

Rich
OSC to speech demo v2.cues
Reply all
Reply to author
Forward
0 new messages