autopattr and Bpatcher

Mar 25, 2008 at 10:14am

autopattr and Bpatcher

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!

#36502
Mar 25, 2008 at 3:52pm

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!
—————————————————-

#125355
Mar 25, 2008 at 5:11pm

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

#125356
Mar 26, 2008 at 7:25am

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

#125357
Mar 26, 2008 at 8:11am

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

#125358
Mar 26, 2008 at 8:18am

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

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

—————————————————-

[pattrstorage @savemode 2]

#125359
Mar 26, 2008 at 9:04am

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

#125360
Mar 26, 2008 at 10:29am

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

#125361
Mar 26, 2008 at 6:20pm

Thanks everyone, very helpful!

#125362
Mar 26, 2008 at 8:06pm

> 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

#125363
Mar 26, 2008 at 8:08pm

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

#125364
Mar 26, 2008 at 9:00pm

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

ole

#125365

You must be logged in to reply to this topic.