reset a lot of objects

plim's icon

hi all.

I made a patch with about 30 buttons [pictctrl] to lauch some sounds. everything is fine and works, but I want my buttons to reset when I click on any button, except the one that I want to be active.

Naively, I started to add a message "0" to every button, it works for a time but now max runs very slowly and patchcords mess a lot my patch (it makes a lot of patchcords!!)

is there any way to make something like:

"if [button x] is clicked then [set 0] to every other buttons" ?

I assumed it has something to do with scripting names...

thanks for your help!

Roman Thilenius's icon

what ablut sending "0" to all using [universal] and then turning on that one button again?

plim's icon

thanks.

[universal] makes all my [pictctrl] O. good, but how can the one I want to be active? what I want is like a solo, in fact...

mzed's icon
plim's icon

hmmmmmm....

Every [pictctrl] act as a toggle.I click one and all other are "off".

Max Patch
Copy patch and select New From Clipboard in Max.

If I click again on the same button, it has to make nothing, except stop the sound of this button.