Great! Thank you Paul. Is there a shorthand version to setting this value to multiple widgets (mh2, mh3, mh4, etc.), or does each one require its own SetWidgetValue statement?
Hi Paul yes I’m familiar with widget groups. I’m just looking for a bit more flexibility. Would you mind composing a short example script with the looping SetWidgetValue?
var button_1 : Widget
mh1 : Widget
mh2 : Widget
mh3 : Widget
mh4 : Widget
mh : Widget Array
i : Integer
wv : double
initialization
mh = [mh1, mh2, mh3, mh4]
end
// Called when a widget value has changed
On WidgetValueChanged(newValue : double) from button_1
if newValue == 1.0 then
wv := GetWidgetValue(mh1)
For i=0; i < Size(mh); i = i+1 Do
SetWidgetValue(mh[i], wv)
End
End
End