@VirtualVirgin said in Questions about handling persistent data in panels:
Why would the value I set for the panel onInit then not be available?
After on init completes the value is overwritten by whatever the last saved value was, since you only ever set the value in on init the last saved value - a value set after on init - will be undefined.
Try it with a slider, set it's value in on init, hit compile and you will see the slider ignores the value you've set.
@VirtualVirgin said in Questions about handling persistent data in panels:
Does it mean that it cannot save values that are set onInit and that all of the values that it will restore must be entered dynamically through callbacks after onInit?
Yes
See this old thread for more details and examples - https://forum.hise.audio/topic/52/variable-persistence?_=1740706214240