Loading Presets with a ComboBox
-
Hello everyone,
I have tried loading user presets via a combobox but every time HISE crashes... does anyone know why?This is my script
// PRESETS /////////////////////// const var Presets = Content.getComponent("Presets"); var menuItems = []; const var x = Engine.getUserPresetList(); for (i in x) menuItems.insert(-1, i); menuItems = menuItems.join("\n"); Presets.set("items", menuItems); inline function onPresetsControl(component, value) { Engine.loadUserPreset(Presets.getItemText() + ".preset"); }; Content.getComponent("Presets").setControlCallback(onPresetsControl);
Thanks
-
If your combo box is set to save in preset enabled then it will create an endless loop and kaboooooom!
-
@d-healey Olè!!! ahahah that's it ...thanks dude