autopattr and Bpatcher

Studio DJ's icon

Hi
Im trying to get my Bpatcher to communicate with my main patch and its not working quite right! Im using a pattrstorage object which i named Presets, i then have placed a patch within a BP which includes a autopattr. When checking the pattrstorage list i can see the name of my patch but i can not see all of the parameters that i wish to store! What am i doing wrong. I also tried the autoname@ 1 attribute with no prevail.

Please help thanks!

(karrrlo)'s icon

did u try :
[pattrstorage @greedy 1] ?

Quote: Studio DJ wrote on Tue, 25 March 2008 11:14
----------------------------------------------------
> Hi
> Im trying to get my Bpatcher to communicate with my main patch and its not working quite right! Im using a pattrstorage object which i named Presets, i then have placed a patch within a BP which includes a autopattr. When checking the pattrstorage list i can see the name of my patch but i can not see all of the parameters that i wish to store! What am i doing wrong. I also tried the autoname@ 1 attribute with no prevail.
>
> Please help thanks!
----------------------------------------------------

Chris Muir's icon

On Mar 25, 2008, at 3:14 AM, Stuart Spencer wrote:
> What am i doing wrong.

I bet your bpatcher doesn't have a scripting name.

Chris Muir
cbm@well.com    
http://www.xfade.com

o s's icon

I don't understand the behavior of a bpatcher either...
When I put a [autopattr @autoname 1] object in my bpatcher (and also name the bpatcher itself), I can see the objects from the bpatcher in the host patch in the clientwindow of the [pattrstorage]. But when I save, close and reopen the patch no values are stored...

thanks for a hint

ole

Chris Muir's icon

On Mar 26, 2008, at 12:25 AM, Ole Schmidt wrote:
> When I put a [autopattr @autoname 1] object in my bpatcher (and also
> name the bpatcher itself), I can see the objects from the bpatcher
> in the host patch in the clientwindow of the [pattrstorage]. But
> when I save, close and reopen the patch no values are stored...

How do you have savemode set for your pattrstorage?

Chris Muir
cbm@well.com    
http://www.xfade.com

o s's icon

Quote: Chris Muir wrote on Wed, 26 March 2008 09:11
----------------------------------------------------

> How do you have savemode set for your pattrstorage?
>

----------------------------------------------------

[pattrstorage @savemode 2]

Chris Muir's icon

Ole-

I put up a very simple example that does what I think you're trying to
do here:
http://www.xfade.com/max/examples/bp-ap.zip

Is this really what you're trying to do?

Does this example work for you?

Chris Muir
cbm@well.com    
http://www.xfade.com

o s's icon

Quote: Chris Muir wrote on Wed, 26 March 2008 10:04
----------------------------------------------------

>
> Is this really what you're trying to do?
>
> Does this example work for you?

----------------------------------------------------

thanks a lot Chris, it works perfect! (and for me It is much easier to understand how [pattrstorage] works then from the overcrowded help-file

What I still don't understand why- when using [pattrstore] and [autopattr] in a (plain) patch is it possible to store the data without writing an xml-file...

ole

Studio DJ's icon

Thanks everyone, very helpful!

Rob Ramirez's icon

> What I still don't understand why- when using [pattrstore] and [autopattr] in a (plain) patch is it possible to store the data without writing an xml-file...
>
> ole

that's actually a feature of autopattr, i believe. you can't save slots, but it will save and restore the state of the gui objects from when the patch was last saved. it actually has nothing to do with pattrstorage's xml file.

if you look at the patch as text, you will see some lines beginning with "prestore", which is where the value is saved. you can disable this by giving autopattr the argument "autorestore 0".

-rob

o s's icon

Quote: Studio DJ wrote on Wed, 26 March 2008 19:20
----------------------------------------------------
> Thanks everyone, very helpful!
----------------------------------------------------

For me to as I wrote, but I'am still curious why using [autopattr] and [pattrstorage] is working 'out of the box' in a plain patcher
Where are the values stored if there is no xml-file? And why does it not work for bpatchers (although the values are displayed in the client-window)...

thanks for some explanations,

ole

o s's icon

rob, thank you for your explanations- I overlooked it or our postings crossed...

ole