Pattr System Overlords,
With the pattrstorage / pattr system, is there a way to do the following:
Have a parent patch "ParentPatch" containing X identical sub patchers of type "SubPatch"
Each "SubPatch" has a bunch of objects who's values I want to store and recall together as presets.
In "ParentPatch" each "SubPatch" wants to have *different* presets (so just saving presets in SubPatch wouldn't work) so they will be stored and recalled independently.
Be able to store / recall presets for each SubPatch from ParentPatch without needing to send store / recall messages to each individual element in SubPatch I want to recall.. (Yes, this is fundamentally an "I'm lazy" inquiry.)In case its not clear I don't expect the standalone SubPatch to be maintaining presets itself. It's not a hard requirement that it couldn't, but I want to just be writing one pattrstorage file from ParentPatch that contains n presets for X different.
In the past I've done this by making a list of the element names I want to refer to within the SubPatch and passing the parent base path (something like ::parent::SubPatch) as an argument to SubPatch so that with a single message from outside the SubPatch iterates through the list of element names and pattrforwards a bunch of "store/recall" messages to the pattrstorage in ParentPatch for its (the SubPatch's) own elements. This would be tidier if I didn't have to build the message-constructing system and inform the SubPatch of its path (relative to ParentPatch) as an argument.
I feel like there has to be a better way and that I must be missing something about how the pattr system can work that would make this (I assume) common design problem easier.
Thanks in advance,