Eversince I turned predictive loading ON this bit of OSC script only works one way. OSC in general is working (widget advanced property “direct OSC” works), but this script that uses this “OSC_SendString(”/lbl1", txt)" does not work.
I have a “stepper script” linked to a widget in Instance 1 that for each tap, selects a preset in a plugin in instance 2. Then, after selecting that preset, the widget label’s caption is sent back to instance 1 to be displayed in a text label. It works one way (from main instance that has predictive loading ON). The selection (stepper) from instance 1 is recieved and making the proper changes in instance 2, but the label caption isn’t being sent, or perhaps I should say isn’t being received by instance 1. The text label does not work. This only happened after turning predictive loading on. Here is the script in instance 1:
Var
txt : string
lbl1 : Widget
// RDlbl : widget
Stepper, B5prsts : Widget
stepperValues : integer array = [46, 899, 828, 36]
index : integer = 0
Initialization
SetWidgetLabel(Stepper, "" + stepperValues[index])
End
On OSCMessageReceived(m : OSCMessage) Matching "/lbl1"
txt = OSC_GetArgAsString(m,0)
SetWidgetLabel(lbl1,txt)
End
// Called when a single widget value has changed
On WidgetValueChanged(newValue : double) from Stepper
if newValue > 0
then
index = (index + 1) % Size(stepperValues)
//SetWidgetLabel(Stepper, "" + stepperValues[index])
SetWidgetValue(Stepper, 0)
SetWidgetValue(B5prsts, stepperValues[index]*0.001)
end
End
Here is the script from instance 2:
//Organ Preset Text Label update
var
B51, B52, B53, B54, B55, PresUpper, PresLower, lblB : Widget
txt : String
On WidgetValueChanged(newValue : double) from PresUpper
Sleep(5)
txt = GetWidgetLabel(PresUpper)
OSC_SendString("/lbl1", txt)
SetWidgetLabel(lblB,txt)
End
Worked fine until predictive loading was turned on. Thanks!