Adding presets to a combobox
-
@Sampletekk said in Adding presets to a combobox:
@d-healey How would I get the list over presets?
Found it!
const var x = Engine.getUserPresetList(); for (i in x) Console.print(i);
That prints the full path, that is "bank/Category/Preset", What should I do if I only want the preset name?
-
@Sampletekk Look up the string functions.
-
-
@Sampletekk Yes, in there is everything you need - and all you actually need are
substring
,lastIndexOf
and possiblyreplace
-
-
And if you want to make it so you actually load a preset when choosing something in the combobox?
-
@Sampletekk
Engine.loadUserPreset()
-
@d-healey said in Adding presets to a combobox:
Engine.loadUserPreset()
Ok, I'm getting this:
It says that it doesn't exists, but as I see it, it does....
-
@Sampletekk FIle extension is missing
-
@d-healey said in Adding presets to a combobox:
@Sampletekk FIle extension is missing
Yep, noticed that. Would you add that by concatenating a text-string?
-
@Sampletekk Yes