Forums > MaxMSP

Pattrstorage – Get Client Data

March 12, 2012 | 4:35 pm

Hey all!

I’ve stared myself blind on this stupid little thing..

Does anyone know, how to "ask" / get the client data with a message from a pattrstorage object?

I can make it output everytime the data changes, but i’ve stared my self blind on how to just "get a current state".

Please help :)



— Pasted Max Patch, click to expand. —

March 12, 2012 | 5:29 pm

send a message "getstoredvalue " to pattrstorage and value appears in the output.
However i strongly suggest you dig deeper into pattrstorage to start working with stored values instead of client values (which are temporary more or less). It’s well worth invested time

March 12, 2012 | 5:36 pm

Thanks! But then i have to assign a alias my self, or do I get them from somewhere?

My patch deals with tempoary numbers only, i don’t have to store anything, so thats fine for now I think. But thank you so much for the good advice!

March 12, 2012 | 6:02 pm

getclientlist or get them from client window. :)
I believe you can also use the index number, but I didn’t deal with client window all that much, it’s in the reference file somewhere

March 12, 2012 | 6:41 pm

I tried the getclientlist, but then I don’t get the value of the client, which is what I need. Do you have some other idea for retrieving the value from a client / object with scripting name, that can have multiple values?

March 12, 2012 | 7:56 pm

You can send "getX" to pattrstorage. This will cause it to output a list of:

"X value"

if "X" is one of its clients

— Pasted Max Patch, click to expand. —
March 12, 2012 | 8:00 pm

Amazing! Stupid i didn’t try that one… so obvious. thanks a lot!

March 12, 2012 | 8:52 pm

whoops, should have clarified that. sorry :)

March 12, 2012 | 9:27 pm

haha! no problem. Thank you so much for taking your time to answer! :)

October 20, 2013 | 9:46 am

My solution:

— Pasted Max Patch, click to expand. —
Viewing 10 posts - 1 through 10 (of 10 total)

Forums > MaxMSP