presets with bpatcher

windspirit's icon

hey, how do you all remember presets with either preset, autopattr, whatever inside of a bpatcher? I just want to have different screens for different controls but the preset object would be outside and change all of them. I'm thinking about putting seperate presets into each patcher but then i would have to load more than 1 file. how do you people do this?

ComfortableInClouds's icon

within every bpatcher, place an autopattr (don't forget to name the objects within the bpatcher. all objects can be named automatically using the attribute @autoname 1). Then, for your highest level patch, place both an autopattr and a pattrstorage object. If you want to use preset to recall states from the pattrstorage object, go into the preset's info window, and link it to the name of your pattrstorage object.

Aaron Wharton's icon

So how does one go about only linking a preset object to recall states of a specific bpatcher in the parent patcher? autopattr and pattrstorage is recalling everything which isn't my aim.

I should note, I tried doing this without autopattr/ pattrstorage but nothing worked. No clue why.

My use case is rather simple. I have 9 live.dials in a bpatcher that I'm wanting to save states for in the parent patcher. I tried checkmarking "embed in parent patcher" and connecting the preset object, but it still wouldn't recall states.

Floating Point's icon

I think it's something like this:
don't use autopattr;
in your bpatcher attach a pattr outlet to each UI object you want to control:
[pattr myUIobject_1]->[live.dial]
[pattr myUIobject_2]->[live.dial]
[pattr myUIobject_3]->[live.dial]
etc
each live.dial object should have a unique scripting name (specify in its inspector)

then in the bpatcher's parent patch create a pattrstorage object. Double click on it to see its client objects. It should see your bpatcher's objects and you can mange them via this object

Let me know if it works-- I'm a little rusty on this stuff

Aaron Wharton's icon

I’ll give this a whirl if I can’t get what I’m currently trying to work:

creating multiple pattrstorage/ preset objects and disabling the params (via the client window) that I’m not wanting to recall states for with that particular preset object, etc