Saving and accessing presets
-
@pcs800 said in Saving and accessing presets:
This code isn't working
Did you remove your code before putting this code in? Did you disable the radio group (set it to 0)? Radio groups are for when you have multiple buttons working together.
@pcs800 said in Saving and accessing presets:
When the plugin is loaded into a daw, the preset browser shows up. I want it to be hidden at startup. How would I code that?
If the button's saveInPreset property is enabled, then as long as you save your project with the preset browser hidden it will be hidden when the plugin is loaded.
-
@d-healey I had not set the radil0 option back to zero, my fault. So yes your code does work, thank you for that.
I am compiling a new build with the browser hidden in the reset.
I'll let you know if I somehow mess that up too. -
@d-healey Ok that worked! Thanks!
Now my other issue is that the presets I built in hise, are not showing up in the preset browser when the plugin is loaded into a daw. -
@pcs800 If you've enabled the option in project preferences to embed presets in the plugin then the first time you run the plugin the presets will be extracted - but only the first time.
After that the presets won't be extracted unless you clear them from the app data folder (which you can find through the file menu in HISE).
-
@d-healey So go to the project appdata folder and delete the .json file inside the user presets folder?
-
@pcs800 Delete the user presets folder
-
@d-healey That worked, but seems odd when thinking in terms of installing on a users computer.
But I'll get to that when the time comes.
The only issue I have left now, if that when I choose a preset, the browser window closes. It should remain open until the user clicks the show/hide button.
How do I accomplish that? -
@pcs800 You need to save your presets with the button enabled.
-
@d-healey I am not sure what you mean.
I do click the button o show the browser, then i create presets and save them. Once done, I then close the browser and export the vst3. The browser closes after selecting a preset.
Actually, it does that in hise too when testing and selecting a preset. -
@pcs800 Is the button's saveInPreset property enabled?
-
@d-healey Yes, it sure is
-
@pcs800 Can you send me a snippet
-
@d-healey Actually, I think I found the solution.
In Hise, I open the browser, click a preset, the window closes. I open it again and click save, to resave the preset. This seems to work. I can click presets now and the window does not close. -
@d-healey Thanks for all your help. It's very much appreciated.