Hi Carl,In QLab it is rather rare for only one cue to be playing at a time, so there is (usually) no such thing as a single “currently playing” cue.The OSC API does have a mechanism for querying the selected and the active cues, but it’s unlikely you can use that information in your current setup.
If you are only going to be playing one cue at a time, the attached TouchOSC file and QLab workspace does roughly what you describe.
elements inherited from cuepropertiespatch (integer) : OSC destination patch number.osc message type (qlab/custom/udp) : The type of OSC message.q_num (text) : The QLab cue number, for QLab type messages.q_command (number) : The QLab OSC command, for QLab type messages.q_params (text) : The QLab command parameters, for QLab type messages. Not all messages have parameters.custom message (text) : The custom OSC message, for custom type messages.udp message (text) : The raw UDP message, for udp type messages.properties inherited from cueuniqueID (text, r/o) : The unique ID of the cue.q type (text, r/o) : The name of this kind of cue, e.g. "Audio", "Video", "MIDI", etc.q number (text) : The number of the cue. Unique if present.q name (text) : The name of the cue. Not unique.q list name (text, r/o) : The name of the cue as displayed in the cue list. (i.e. Might be a default name.)q display name (text, r/o) : The name of the cue as displayed in the standby view. (i.e. Never empty.)q default name (text, r/o) : The name QLab would give the cue by default, if any.notes (text) : The notes for this cue.file target (file) : The file this cue targets, if any.pre wait (real) : The time in seconds before the action is triggered.duration (real) : The duration of the cue's action in seconds. Not editable for all cue types.post wait (real) : The time in seconds until continuing on to the next cue.continue mode (do_not_continue/auto_continue/auto_follow) : Continue mode of the cue.flagged (boolean) : Is this cue flagged?autoload (boolean) : Does this cue auto load?armed (boolean) : Is this cue armed?hotkey trigger (enabled/disabled) : State of the HotKey trigger.midi trigger (enabled/disabled) : State of the MIDI trigger.midi command (note_on/note_off/program_change/control_change/key_pressure/channel_pressure/pitch_bend) : Type of MIDI command that will trigger the cue. (NOTE: pitch_bend messages are NOT accepted as remote MIDI triggers.)midi byte one (integer) : Byte 1 of the MIDI trigger.midi byte two (integer) : Byte 2 of the MIDI trigger.midi byte one string (text) : Display String of Byte 1 of the MIDI trigger.midi byte two string (text) : Display String of Byte 2 of the MIDI trigger.timecode trigger (enabled/disabled) : State of the timecode trigger.wall clock trigger (enabled/disabled) : State of the wall clock trigger.wall clock hours (integer) : Hours field of the wall clock trigger.wall clock minutes (integer) : Minutes field of the wall clock trigger.wall clock seconds (integer) : Seconds field of the wall clock trigger.loaded (boolean, r/o) : Is this cue loaded?running (boolean, r/o) : Is this cue running?paused (boolean, r/o) : Is this cue paused?broken (boolean, r/o) : Is this cue broken?pre wait elapsed (real, r/o) : The time in seconds that have elapsed on the pre wait.action elapsed (real, r/o) : The time in seconds that have elapsed in the action of the cue.post wait elapsed (real, r/o) : The time in seconds that have elapsed on the post wait.percent pre wait elapsed (real, r/o) : The percent of the pre wait that has elapsed.percent action elapsed (real, r/o) : The percent of the cue's action that has elapsed.percent post wait elapsed (real, r/o) : The percent of the post wait that has elapsed.
Thank you all anyway!
Best,
Dan