Can't get data out of dict?

Brian Bonadona's icon

Hi. I am looking for any way to get data out of a dict and into number boxes.

I need to use all the data that is under the "body" tab in "dict data 1", but when I send a "get body" message it just outputs "body dictionary u429010261" rather than the actual data in the "body" key. I also tried using array stuff with it but that didn't work either. Any help would be super appreciated, thanks!

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

Ben Bracken's icon

One way to do it is with dict.unpack. Here is an example that hopefully will get you started:

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

There are a lot of other ways to parse dictionaries, but maybe this'll work for what you need to do.

Brian Bonadona's icon

Thanks so much! That is exactly what I needed!