Increment a widget value when pressing a push button

Hello again,

I really tried to figure it out myself…

How to increment a fader by pressing a push button ?
In which option of the push button should I put the script ?
Or Should I use a Script widget ?
I successfully trigger by OSC message this script in a widget script.

JS{{
set(“fader_2”,@{fader_2}-1.0)
}}

What is the better solution ?
Thank you

Using a script widget is the appropriate way. To make the push button trigger it, you’ll need to set its value property to @{button_id} and probably add a condition in the script to ignore the button’s release:

if (value == 0) return 
set(“fader_2”,@{fader_2}-1.0)

Working flawlessly !!

I’d like to make a donation,this tool is amazing, coming from TouchOSC it’s beyond all my expectations and offer unlimited possibilities to my workflow :smiley: