Getting Maximum Range Value from QLab OSC

Hi everyone,

I am essentially recreating the “Load to Time” slider in QLab, which uses a slider to load cues to a specified time based on the duration. However, the range of my slider currently does not get its value from the selected cue duration.

For example, if a cue is 10 seconds long and my range “max” is set to 100, it will exceed the end point of the cue by 90 seconds - I would like this to change based on the selected cue.

QLab is able to send an OSC message containing the duration information, but I’m not sure how to plug it into the range of the slider on O-S-C.

Any advice would be appreciated!

You could create a variable widget with the osc properties set to match the duration message sent by Qlab, and use that widget's value in the slider's range property:

  "min": 0,
  "max": @{variable_widget_id}

See advanced syntaxes. Using a text widget instead of a variable widget might help making sure the value is received.

The OSC{} syntax might do here as well and spare you the creation of an additional widget but it's a bit less flexible:

  "min": 0,
  "max": OSC{/qlab/duration/address}

Thank you so much for your help and responsiveness! I will give it a try and see how it goes :smiley: