Button to pick a random VST preset

Mariano Sibilia's icon

Hello

Do you know any method to simply press a button and have a VST plugin randomly choose a preset from its list.

Typically, these plugins organise presets into folders (like bass, arpeggiated, sequences, lead, plucked, etc.) so I'm wondering if there's a way, perhaps through the Live API or an existing device, to assign a single button for the random selection of presets.

Thanks in advance!

Roman Thilenius's icon

first collect the filepaths into an umenu, and while you do that, count their amount. then you can open one of them by sending an random int into the menu.