@Daanyoo said in Save Effects and Modulation in Factory Presets:
Do you feel that such an approach would still be suitable for the current state of HISE?
No I wouldn't use it, that script is old and I haven't tested it in years.
But as Christoph says in that thread, the scope of a user preset is to save/restore the state of controls on the user interface.
In your case you are wanting to make "presets" that the user has no control over, so perhaps the user preset system isn't that way to go.
Instead you can use another approach. I'll outline what I do, but be warned, it's complicated.
You have a script file that contains an array that contains object that specify the various properties you want for each of your modules. You will have one of these objects per "factory preset". On your UI you have a hidden knob.
Using the knob's value as an array index you can grab the object from the array and set the properties of your modules.
Here is an example of such an array in one of my projects. In my case I'm setting scripts, samplers, and modulators, but the same principle can be used for effects.