load preset
-
Is it possible to load a preset with a combobox?
so without preset browser -
@MikeB With a comboBox, this means you have to populate it with all the presets you want first
Engine.getUserPresetList()
then you can use from the combobox callback
Engine.loadUserPreset(var relativePathOrFileObject)
Have you tried with two buttons first, it's easier to begin
Engine.loadNextUserPreset(bool stayInDirectory)
Engine.loadPreviousUserPreset(bool stayInDirectory)
-
Hello!., I also have that doubt friend, because I still cannot save my presets in the already compiled complement, I think I am missing some function :grinning_face_with_sweat:
-
@ustk said in load preset:
@MikeB With a comboBox, this means you have to populate it with all the presets you want first
Engine.getUserPresetList()
then you can use from the combobox callback
Engine.loadUserPreset(var relativePathOrFileObject)
Have you tried with two buttons first, it's easier to begin
Engine.loadNextUserPreset(bool stayInDirectory)
Engine.loadPreviousUserPreset(bool stayInDirectory)
@ustk - thanks for that - but no - I meant loading non-user presets.
The problem is that there is no way so far
a. Separate factory from user presets (they are both in the "UserPreset" folder)
b. To prevent the user from overwriting factory presets.Therefore my approach is to manage Factory-Presets in a separate folder and
and call them via a combo box.The user presets are managed as usual via the preset browser.
Thus the factory presets are not changeable for the user.
-
@MikeB they are in the user preset folder, but inside subfolders you can discriminate with a custom made preset browser using panels and the filesystem. Just don't authorize overwriting if the sub folder is "Factory"
This might not be easy at first, not impossible for sure -
I don't quite get you.
At the moment in HISE it is not possible to prevent the user from overwriting a factory preset.
See feature request.So there must be a workaround here.
I think a folder in the project folder - not in user preset folder - but outside.
In this folder are the factory presets.
They do NOT appear in the preset browserThere appear ONLY the user presets.
The question is how can I use a ComboBox on
Access my factory presets? -
@MikeB oh sorry, my bad! You mean overwriting the file manually? Then you're right… but is it not the case of almost all plugins? You can provide factory presets as a download in the user account to prevent losing them…
I don't know if it is possible to embed them in the plugin itself …