Yes, it does seem I was way overthinking it! So actually, I want to send the current widgetâs caption in the global rackspace to a label in the local. I control a widget in the global from the local rackspace, but thatâs just to start the âactionâ. The âactionâ happens in the global, which produces different results (captions) and I wanted to reflect these captions in the global back to a label in the local.
In my use case I have a button in the global rs that is running the âstepperâ script. Each time you press it, you get a different value. I wanted these values shown in the local rs. So the widgedt in the local is just mapped to the global internally to act as a âremote controlâ of the tapping, but no processing is done in the local. And then I would like to either change the caption of that button in the local (which seems problematic) or to simply display the values produced in the global script to be shown in the local rs.
So this is the code in the global that produces the values I am looking to send. Here is where Iâd like to sandwich the SetExternalWidgetLabel line. I know in its current form its not right, I just wanted you to see it in context.
On WidgetValueChanged(newValue : double) from RevDelStepperif newValue > 0 thenindex = (index + 1) % Size(stepperValues)SetWidgetValue(RevDelStepper, 0)
if stepperValues[index] == 1 then
SetWidgetLabel(RevDelStepper, "1: Clean" + stepperValues[index])
//txt = GetWidgetLabel(RevDelStepper)
SetExternalWidgetLabel(ew,"hello")
LoadGPPreset(ValRev, "1")
SetWidgetValue(RevGain,0.4)
LoadGPPreset(ValDel, "1b")
SetWidgetValue(DelGain,0.25)
elsif stepperValues[index] == 2 then
SetWidgetLabel(RevDelStepper, "2: Crunch" + stepperValues[index])
//txt = GetWidgetLabel(RevDelStepper)
SetExternalWidgetLabel(ew,"hello")
LoadGPPreset(ValRev, "2")
SetWidgetValue(RevGain,0.36)
LoadGPPreset(ValDel, "2-DualDuck")
SetWidgetValue(DelGain,0.30)
elsif stepperValues[index] == 3 then
SetWidgetLabel(RevDelStepper, "3: Lead" + stepperValues[index])
//txt = GetWidgetLabel(RevDelStepper)
SetExternalWidgetLabel(ew,"hello")
LoadGPPreset(ValRev, "3")
SetWidgetValue(RevGain,0.40)
LoadGPPreset(ValDel, "Lead1")
SetWidgetValue(DelGain,0.40)
elsif stepperValues[index] == 4 then
SetWidgetLabel(RevDelStepper, "4 Ambient" + stepperValues[index])
//txt = GetWidgetLabel(RevDelStepper)
SetExternalWidgetLabel(ew,"hello")
LoadGPPreset(ValRev, "4")
SetWidgetValue(RevGain,0.45)
LoadGPPreset(ValDel, "Quad-DuckTape")
SetWidgetValue(DelGain,0.45)
End
End
End
Basically Iâd like to send the stepperValues[index] part. Thank you!