Linking pattrstorage in the main patch to a preset object inside a bpatcher
Hi everyone,
I'm facing an issue in linking a `preset` object inside a `bpatcher` to a `pattrstorage` object in the main patch in Max MSP.
I have a main patch (parent) with several `bpatchers`, and one of them contains a `preset` object. I would like to link this `preset` to the `pattrstorage` object in the main patch, but I can't seem to make it work using the same name.
Attached a simplified example of my setup.
I'm wondering how I can establish a connection between the `preset` object in a bptacher and the `pattrstorage` object in the main patch (parent). I've tried giving them the same name, but it doesn't seem to work.
I would appreciate any advice or solutions you could offer.
Thanks a lot!
hello
I do not think it's possible.
If really you need a preset object in a bpatcher controlling a pattrstorage in a parent patcher you have to connect the "store/recalls outputs" of the preset object to pattrstorage, you can use send/receive too.
But the "delete" information is not output bby the preset object, you will have to do some tricks with the getslot message to maintain synchronisation between preset and pattrstotrage.
Also, in your example it cannot work because your preset object do not exclude the numboxs.
Look too to the greedy attribute of pattstorage.
hope it helps

Put another pattrstorage named blorg in your bpatcher. Go to inspector for your preset object and change the pattrstorage attribute to blorg. The preset is now linked to your [pattrstorage blorg]. It becomes basically a UI for those pattrstorage presets. Your top level pattrstorage will see the pattrstorage blorg in the bpatcher and recall its preset number.