Osc Toggle Effect On Off

Hello

is it possible to trigger an effect on off using

/renoise/song/track/1/device/-1/set_parameter_by_index

or
/renoise/song/track/1/device/-1/set_parameter_by_name

or is there anotherway doing it ?

i remember doing something like this

“/renoise/song/track/1/device/-1/set_parameter_by_index”,1,0 ;
but not working anymore

has anyone done this before?

Cheers good day and evening

According to the GlobalOSCActions.lua:
/song/track/XXX/device/XXX/set_parameter_by_index

description = “Set parameter value of an device [0 - 1]\n”…
“XXX is the device index, -1 the currently selected device”,

The other way of doing it is this:
/song/track/XXX/device/XXX/bypass
description = “Set bypass status of an device [true or false]\n”…
“XXX is the device index, -1 the currently selected device”,

But i suspect you can’t send “true” or “false” values.
You could also try adding your own message to that lua file that does bypass on 0 and 1 value instead of true or false.

it worked thanks :)