Max Standalone - Pattrstorage - Where is the JSON stored?
I have a patch with pattrstorages in several places. It works in my Max Project - the JSONs live in the data folder. I have "writeagain" and "readagain" in my patches so I can tweak settings and store the changes to the JSON.
When I build an application - I can't use the writeagain or readagain messages anymore. When I writeagain, then hit readagain subsequently - it reverts to the settings last created when using the non-application version.
I can't find any JSONs in the build sub-folders. Where does pattrstorage get it's info from and can I manipulate it while running a built app?
use absolute paths when using standalone.
only that is 100% reliable.
Thanks Source - I will do a new build with an absolute path, though I'd prefer to not use them...
Regardless - Any idea where the files from a project's data folder get put when you build a standalone?
I can't find the JSON files the standalone is referencing.
I don't use max projects, becaue I mistrust any automatic ordering of files.
Pattr json stored files as any other files like coll files etc, do not get included anywhere.
You can place them manually into standalone file structure,
where in theory read, write, writeagain etc should work without full path,
but it does not, at least that was my experience.
just got an email from support explaining what happens to JSONs in a standalone:
When building standalones, the JSONS are not copied over as JSON's, but they are embedded in the Collective, aka the mxf.
Since you can't write into the collective using messages 'write' and 'writeagain', these messages will both open a savedialog.
The suggestion here , if you want to save and read files is to do it outside of the app bundle or exe. directory.
Currently, we have a feature request for copying the JSON's over as opposed to embedding them. I would be happy to bring this to the attention of engineering if you think it would help.
Good to keep in mind (for anyone in the future who finds this thread)