pattrstorage trying to save json files...

zh's icon

hi there
in max 5.1 it looks like the default file type for pattrstorage has been changed to JSON, when it should be XML. this is ok when saving manually, but i have an automatic preset-maker-bit which can't make any new presets now!
is there a way around this?
NB just writing .xml in the argument of pattrstorage DOESN'T WORK.

a thought - have the powers that be just changed pattrstorage's preferred filetype to json? does it work equally well?
nick

zh's icon

... few minutes more playing, and it looks like JSON works just as well as XML used to, and you can specify a .json file as an argument to pattrstorage.
problem solved, but
a) when was this changed?
b) why?
c) was it announced anywhere?

Florent Ghys's icon

Hey
yes this is weird, I just noticed it too
but for me opening old xml files and writing xml instead of json in the save dialog works
if this is something new, the tutorial pattr 2 should be updated

zh's icon

yeah, writing or choosing xml works in the save dialog for me too... but from the default behaviour it seems like they now want us to use .json
in that case a few things need updated, eh?

Jeremy's icon

Sorry for the undocumented change -- this was necessary to support the new pattrstorage parameter features (related to M4L, but not necessarily dependent upon it). It is functionally equivalent to the old XML format. Additionally, you can use the 'writexml' and 'writejson' methods to force XML or JSON writing. Finally, if you read an XML file in, XML will be written out by default, so it should be fairly backward compatible without too much pain.

Jeremy

pm's icon

writexml doesn't seem to work on Max5.1... Am I the only one having this trouble?

Ben Bracken's icon

writexml along with a filename/path was broken in 5.1, but will be fixed for the next update.

-Ben