Script that sends OSC messages for LT Piccolo lighting console

40 views
Skip to first unread message

Julio Rodríguez

unread,
Jun 29, 2024, 12:42:39 PM (6 days ago) Jun 29
to QLab
Hello, I want to make a script for qlab5 that sends the OSC messages /keyCUE 1 , /key5 1 , keySEQ 1 , keyGO 1 in the network patch called LT with ipaddress 192.168.1.136 on port 8000 for an LT Piccolo lighting console.
I tried it using artificial intelligence and it gave me this script:

tell application id "com.figure53.QLab.5" -- Make sure this is the correct QLab 5 ID
 tell front workspace
 -- Send OSC /keyCUE 1 message
 set cue1 to make type "OSC"
 set address of cue1 to "/keyCUE"
 set patch of cue1 to "LT"
 set value of cue1 to {1}
 start cue1

 -- Send message OSC /key5 1
 set cue2 to make type "OSC"
 set address of cue2 to "/key5"
 set patch of cue2 to "LT"
 set value of cue2 to {1}
 start cue2

 -- Send OSC /keySEQ 1 message
 set cue3 to make type "OSC"
 set address of cue3 to "/keySEQ"
 set patch of cue3 to "LT"
 set value of cue3 to {1}
 start cue3

 -- Send message OSC /keyGO 1
 set cue4 to make type "OSC"
 set address of cue4 to "/keyGO"
 set patch of cue4 to "LT"
 set value of cue4 to {1}
 start cue4
 end tell
end tell

It doesn't work, it's marked in pink set address of in the line set address of cue1 to "/keyCUE"
Could not make cue of type 'OSC'. (-2710)

Let's see if someone from the forum could help me, thanks.

micpool

unread,
Jun 29, 2024, 8:38:01 PM (5 days ago) Jun 29
to QLab
Surely, it's easier just to set up a network patch to 192.168.1.136:8000 and make 4 network cues with the OSC messages you want to send?

But to answer the actual question you asked:

tell application id "com.figure53.QLab.5" to tell front workspace

-- Send OSC /keyCUE 1 message

make type "network"

set theCue to last item of (selected as list)

set the q number of theCue to "1"

set custom string of cue "1" to "/keyCUE 1 "

set network patch name of cue "1" to "LT"

start cue "1"

end tell


etc.


You will notice from the above that when it comes to QLab scripts, ChatGPT or whatever else you used is the antithesis of intelligence.


QLab 5 doesn't have an OSC cue

QLab Cue numbers are strings
You have to make a cue and then number it ( or use = the default number if numbering cues automatically; the cue you make is always the selected cue.)
To set a patch by name, you have to use set network patch name
The address and the argument are written to the custom string of a cue as the entire OSC message.
So basically, every line of code generated by AI is, in this case, nonsense!


Mic


Julio Rodríguez

unread,
Jun 30, 2024, 4:42:09 PM (5 days ago) Jun 30
to ql...@googlegroups.com
Ok , I understand.
I’ll do that,  make 4 network cues OSC  
Thanks Mic


--
Contact support anytime: sup...@figure53.com
Follow QLab on Threads: https://threads.net/@QLabApp
User Group Code of Conduct: https://qlab.app/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/fda5cc89-a7ab-44d7-82cf-745beb65fb62n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages