Setting a widget's value without making it send a message is done by sending the same message it would send (matching address and preArgs) to o-s-c. /STATE/SET purposely triggers message sending but I guess it would do no harm to add an optional parameter that prevents it.
Forgive me, let me be a bit more clear in my use case.
I have a switch in O-S-C that toggles a behavior in a different software, let’s call the address /oscfunction 0 and /oscfunction 1. I do this with in OnValue script.
The other piece of software sends out a different OSC address, let’s call it /oscfunctionstate at regular intervals. Therefore, the two addresses are different, the one that elicits the behavior in the remote software and the one that polls the current status of the function and reports it back to O-S-C.
Therefore, I need the OSC address of the switch to be the same as the intervallic incoming message, I.e. /oscfunctionstate, but to NOT execute the OnValue script that sends the other OSC message outbound.