I am trying to get one popup controller to be set by another popup controller for example say I have the following code:
vb:popup {
id = "popup_a",
items = { Off, 1, 2, 3 }
value = 1
notifier = function(popup_value)
-- do something with the popup_value
end
},
vb:popup {
id = "control",
items = { Off, 1, 2, 3 }
value = 1
notifier = function(control_value)
-- set popup_a to the control_value and trigger the popup_a notifier
end
},
How can I get the ‘control’ popup to set the value of popup_a and also respond visually and also trigger the popup_a notifier?
This is for a rudimentary preset system as if I can work this out I could get one popup to set the value of number of other popups.
That’s correct, but i happen to also found a handy way to identify references to GUI objects more quickly in the editor when referring with literal string references.
Specially when you create large projects, it makes debugging a lot less frustrating using specific eye-catching structures but that’s just my secret tip.
Is there a way to do this without firing the notifier. I want the script to be able to set a sliders position without firing its notifier, however when the user adjusts the slider I want it to fire the notifier.