9 hours ago
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).
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)