Save knob state with "saveInPreset" disabled
-
Hi!
I would like to save the state of a knob when saving a project in the DAW, without activating the "saveInPreset" parameter. I mean, I don't want the "saveInPreset" option to be enabled, because it's a general setting that should not be applicable to presets. However, the plugin should still save the knob state to the DAW project. How could I do that?
Thanks :)
-
-
@d-healey Thanks, I'll try that :)
-
@d-healey In the last snippet, could it be that you enabled "saveInPreset" in Knob1 by mistake? (https://forum.hise.audio/topic/6410/restoring-properties-with-daw-session/22?_=1692136877228)
I tried the code you used with saveInPreset disabled and it didn't work for me. And if I enable saveInPreset, the state of the knob is saved in the presets.
-
@bendurso You have to have saveInPreset enabled, but in your postcallback you check if it's an internal preset load (DAW value) or not.