autopattr/pattrstorage consolidation

Jan 27, 2010 at 7:12am

autopattr/pattrstorage consolidation


I am working on a patch that has four separate subpatchers that each have a set of sliders/umenus/integers that have preset values being collected by autopattr and saved in pattrstorage objects. Because I have the autopattrs in each patcher, I end up having to save 4 separate files when I send the write message to the pattrstorages. I would like to add more subpatchers into this preset saving scheme, but that would make even more files to save. Also, if I move the set of presets to a new computer, it’s annoying to load all of the files.

What I would like to do is have the autopattrs all direct their data to a pattrstorage in the top level patcher so there is one monster .xml file saved that has all the data stored for all of the subpatchers.

Am I going about this the right way? Is there a way to redirect autopattrs to a higher patcher level? I can’t seem to figure this out.

Many thanks!

Jan 27, 2010 at 5:51pm

If I am understanding your setup up correctly, you should just be able to have a single pattrstorage in your topmost patcher.


Jan 28, 2010 at 8:29am

Put the pattrstorage at the topmost level and set its @greedy attribute to 1.

Feb 3, 2010 at 4:47am

Thank you so much! I can’t believe I missed that in the help file. That has been bugging me for a while.


You must be logged in to reply to this topic.