Store and unpack coll

Dec 16, 2010 at 2:38am

Store and unpack coll

Hi all,
I am sending 16 lists to a coll object.
Coll saves those correctly.
How can I store them and unpack them correctly, see attached patch?
I have entered the questions i have directly in the patch.
Thanks!
Emanuel

#53907
Dec 16, 2010 at 7:38am

Hello Emmanuel,

[coll] is not pattrstoragizable, and cannot be used with [preset] :-(

- search “coll pattr” in this forum.
- use [coll] write/read files function.
- don’t use [coll] ; f.e. append datas in a big list and fill a [pattr] with it.

#194010
Dec 16, 2010 at 8:34am

Hi Pizza,

thanks for your reply and suggestions:
Appending might not be an option, because the values of the instances need to be changed on the fly, that is done well in coll.

I adopted my questions in the attached updated file in order to be more specific.

I could use the following external (store coll in pattr), but hesitate because its not max standard:

http://cycling74.com/forums/topic.php?id=17009

I feel there should be a simpler way without coll, too. Because mainly its just storing 4 figures assigned to an id, and restoring them. On top this should have presets.

Emanuel

#194011
Dec 16, 2010 at 10:26am

I don’t understand what you expect the [zl mth] to do. It will pick out an individual element from a list.

The dump message to coll dumps n lists, one for each entry in the coll.

#194012
Dec 16, 2010 at 5:03pm

Hello,

- don’t understand [zl mth] too.
- [pattrstorage foo] refers to data from [pattr coll] and not [coll].

– Pasted Max Patch, click to expand. –

Appending might not be an option, because the values of the instances need to be changed on the fly, that is done well in coll.

For 16 x 4 values ; IMHO use [pattr] way or even use UI script name and [autopattr] …

#194013
Dec 16, 2010 at 6:50pm

Hello maxers,

using [pattr] ; must be improved …

– Pasted Max Patch, click to expand. –

HTH

#194014
Dec 16, 2010 at 8:56pm

I think that the goal is still sort of ill-defined. Are the various instances going to be in abstractions or bpatchers? If so, pattr would work well without the coll part. Just expose the four numbers that you want to save to autopattr, and then make sure that the abstraction is exposed to autopattr at the top level.

That said, here’s an edit of the original with coll that deals with what I think you want to do with the pack/unpack.

– Pasted Max Patch, click to expand. –
#194015
Dec 27, 2010 at 3:58am

Chris, Pizza,
Thanks so much for your help so far.
Your ideas brought me to the final implementation:
I now use several Pack/Unpack/Forward/Pattr plus some Funnel/Spray/Pattr objects.
I also moved to Max4Live for the project, so that’s why it is all a little different. I might come back to you for some final questions, but until then, thank you very much.
Emanuel

#194016

You must be logged in to reply to this topic.