a button to send constant value

I just find it strangely hard to make a button to send constant value with Touch. It seems some people having same issue but there are still not very best solution…

viewtopic.php?f=4&t=2857&p=10006&hilit=send+one+value#p10006
viewtopic.php?f=12&t=3619&p=13054&hilit=reset#p13054
viewtopic.php?f=4&t=3440&p=12588&hilit=reset#p12588

I’d say that simple(and useful) function should be accomplished very easily. Attached is just for exmaple. Any suggestions would be appreciated.

itaru
buttonToSendValue.toe (7.47 KB)

Good compilation of other attempts to set a gadget to a default value.

rurik almost had it right In your example, change button1 to a Momentary button, then create a Panel Execute DAT that refers to button1, and put this 1-line script in the DAT:

click sliderhorzvalue/slider 0

or whatever default value you want. When you click the button, its panel value “select” goes 0 to 1, and the script runs.

got it! Thank you Greg.
buttonToSendValue.4.toe (6.78 KB)