pattrstorage issue : json file ?

Jul 5, 2011 at 1:53pm

pattrstorage issue : json file ?

Hello,
I have a strange issue here. In a project, I use pattrstorage to save datas from sliders, toggles,.. in a patch. It works perfectly fine on my laptop but on another computer (64 bits), Max/MSP keeps saving the file in .json format while I’m using xml.

Here is the kind of patch I’m using

– Pasted Max Patch, click to expand. –

Anybody face that before ?
frenchie.

#56264
Jul 5, 2011 at 2:25pm

Yeah, I had this issue awhile back. The default now is a json file. You can use the writexml command to force pattrstorage to write an xml file, or just change the file on your computer to a json file and be done with it.

#201886
Jul 5, 2011 at 2:31pm

The only thing that annoy me is that writexml opens a windows where you have to specify the name of the xml file. It seems like it doesn’t understand the path in the argument like “write” did.

I’ll have a look on how to do this with json files.

Thanks for your time

#201887
Jul 5, 2011 at 2:34pm

Also, is there a way to update Max/MSP for me to have json by default on both of my computer ? I can’t find this option :)

#201888
Jul 5, 2011 at 3:47pm

I’m not sure it is an “option” but just the way it is with the newer editions of Max. I think if a patcher was already using an XML it will continue to do so, but new ones will use json. As for the writexml command, you can specify the file and path name in the message and it won’t open the window. I do it all the time for preset files.

#201889

You must be logged in to reply to this topic.