Pattrstorage - Get Client Data

Lasse Munk's icon

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 :)

Lasse

Max Patch
Copy patch and select New From Clipboard in Max.

----

---

Ploki's icon

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

Lasse Munk's icon

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!

Ploki's icon

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

Lasse Munk's icon

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?

willyc's icon

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

"X value"

Max Patch
Copy patch and select New From Clipboard in Max.

if "X" is one of its clients

Lasse Munk's icon

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

Ploki's icon

whoops, should have clarified that. sorry :)

Lasse Munk's icon

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

keepsound's icon

My solution:

Max Patch
Copy patch and select New From Clipboard in Max.