Trigger momentary button from python or with chops

I need to trigger a momentary button from python and I’m trying this from my chop exe:
Inside the onValueChange:

op(‘/settings’).par.Reset = true

or

op(‘/settings’).par.Reset = 1

Either seems to work. What would be the right syntax, please? And what is the chop version for this purpose?

Thanks!

the best syntax to press a button is:

op('/settings')par.Reset.pulse()

Thanks Malcom, but this is not working for me. Please see the attached example.
Trigger momentary test.toe (3.99 KB)

Hi.
There’s an issue with referencing parameters, that we’re working on.
You can work around it by stretching the pulse length a full frame:

op(‘/project1/container1’).par.Test.pulse(frames=1)

Thanks for the example,
Rob.

Actually, the issue is you’re using an expression in the constant CHOP to access the value.
The value changes twice on the same frame be default, so the constant CHOP will only hold the last value.
I think stretching the pulse to at least frames=1 is how to make sure the constant CHOP processes the on/off transition.

Cheers,
Rob.

Indeed, Rob, this is working now. Thanks a lot for the support!