Send OSC message to Dlight using Cue number in a group

71 views
Skip to first unread message

Olivier Colombet

unread,
Feb 17, 2022, 3:09:17 AM2/17/22
to QLab
Hi.
I want to do this:

/seq/X2LoadAndFireID #/cue/selected/number#

(/seq/X2LoadAndFireID is the Dlight command).

This command is perfect if the Network Cue is selected before being triggered

But it doesn't work if the Network Cue is in a group. If the group is numberbred, it will be this number witch will be used in my Network Cue, not his own one.
In a group, Cues are never "selected".

I don't find in OSC dictionary something to replace"selected" in  #/cue/selected/number# by something like #/cue/my own number/number#

Thanks !

micpool

unread,
Feb 17, 2022, 5:48:27 AM2/17/22
to QLab
I would like to fly like a bird, and I would like a QLab OSC and script  cues to have the means of knowing their own cue numbers. I think its safe to say none of these things are going to happen, the first because well you know..., and the second, because for the past seven years we have used various tortuous methods to get round this problem, and no simpler method has ever been forthcoming!

There is a workaround for what you want to do, which comes at the cost of a tiny bit of latency,

Create a network cue patched to your Dlight and number it DLight

Where you would have used your pseudo OSC  /seq/X2LoadAndFireID #/cue/my own number/number# use a script cue with  this instead

--set the custom message of cue DLIGHT to either the q number of the script cue if it has one, or the q number of it's parent if it doesn't, and then start cue "DLIGHT"

tell application id "com.figure53.QLab.4" to tell front workspace
        set mycue to (last item of (cues whose running is true and q type is "script"))
        if q number of mycue is "" then
                set mynumber to q number of parent of mycue
        else
                set mynumber to q number of mycue
        end if
        set the custom message of cue "DLIGHT" to "/seq/X2LoadAndFireID " & mynumber
        start cue "DLIGHT"
end tell


Mic

Olivier Colombet

unread,
Feb 17, 2022, 7:35:41 AM2/17/22
to ql...@googlegroups.com
Merci pour l'explication.
Je suis novice en matière de script et il y a certainement quelque chose que j'ai raté.
Voici les screenshots de mes deux Cues avec le message d'erreur renvoyé par Qlab
Ou est mon erreur ?

--
Contact support anytime: sup...@figure53.com
Follow QLab on Twitter: https://twitter.com/QLabApp
User Group Code of Conduct: https://qlab.app/code-of-conduct/
---
You received this message because you are subscribed to a topic in the Google Groups "QLab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qlab/eFYiMrEH4mM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/c6dd14bc-c95c-4d68-a381-7807a94c1fbdn%40googlegroups.com.


--
Olivier Colombet
06.98.26.54.26
Capture d’écran 2022-02-17 à 13.31.06.pdf
Capture d’écran 2022-02-17 à 13.31.21.pdf

micpool

unread,
Feb 17, 2022, 7:37:34 AM2/17/22
to QLab
Sorry, my fault

Cue names are case sensitive so your cue should be numbered DLIGHT not Dlight.

Mic

Olivier Colombet

unread,
Feb 17, 2022, 7:43:40 AM2/17/22
to ql...@googlegroups.com
Hey perfect !

Great thanks !

        Olivier Colombet
colombet...@gmail.com
          06.98.26.54.26



Chris Ashworth

unread,
Feb 17, 2022, 9:16:53 AM2/17/22
to QLab
Hi there,

Mic is right that there currently is not an OSC dictionary option to refer to the current cue.  

Just to let you know, this is on our list of features that we want to add in the future. (Not a promise, because sometimes our plans change, but I expect to see something like this in the future.)

Best,
C

Reply all
Reply to author
Forward
0 new messages