Reset Toggle Button State Without Sending Off Message

Is there a way to reset the state of a toggle button without it sending the off message?

I have a few toggle buttons that show/hide certain folders in my DAW. I have another tap button that is supposed to reset those toggle buttons. However, when it resets their values back to 0, those toggle buttons send their OFF message back to my DAW and cause it to hang for a few seconds as it computes those messages. This brings me to the question stated above.

Currently, I have this excerpt in my "script" section of the "reset" button:
if (value == 1){
//AUDIO
set('sv_all_audio_folder', 0)
set('sv_drum_kit_subfolder', 0)
set('sv_guitars_subfolder', 0)
set('sv_misc_subfolder', 0)
//BASS
set('sv_all_bass_folder', 0)
}

Thanks in advance!

set takes optional third argument that can do that:
set('sv_all_bass_folder', 0, {send: false})

1 Like

This works perfectly! Thanks a ton for your help. I was struggling at getting that to work.