LogicMachine Forum
Multistate knob widget - Printable Version

+- LogicMachine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Multistate knob widget (/showthread.php?tid=6193)



Multistate knob widget - Ceros2112 - 19.11.2025

Good day,

is it possible to make a multistate knob widget with the old visu? I would like to add it to an old project.

something like that:
   

Thank you


RE: Multistate knob widget - Daniel - 19.11.2025

Use Additional icons, you will need images of the knob in different states.


RE: Multistate knob widget - admin - 19.11.2025

It's possible to create a multi-state button using send fixed value attached to a virtual object. Set the multi-state object as status. Use additional icons to set an icon for each state.
Map an event script to the virtual object. Each write to a virtual object will change multi-state value to the next one (0, 1 or 2).
Code:
out = '0/3/3'
val = grp.getvalue(out)
val = (val + 1) % 3
grp.write(out, val)



RE: Multistate knob widget - Ceros2112 - 19.11.2025

Great, thanks!