Pattrstorage – Get Client Data

Mar 12, 2012 at 4:35pm

Pattrstorage – Get Client Data

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

—-

– Pasted Max Patch, click to expand. –

#62254
Mar 12, 2012 at 5:29pm

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

#224912
Mar 12, 2012 at 5:36pm

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!

#224913
Mar 12, 2012 at 6:02pm

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

#224914
Mar 12, 2012 at 6:41pm

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?

#224915
Mar 12, 2012 at 7:56pm

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. –
#224916
Mar 12, 2012 at 8:00pm

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

#224917
Mar 12, 2012 at 8:52pm

whoops, should have clarified that. sorry :)

#224918
Mar 12, 2012 at 9:27pm

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

#224919
Oct 20, 2013 at 9:46am

My solution:

– Pasted Max Patch, click to expand. –
#268510

You must be logged in to reply to this topic.