Forums > MaxMSP

pattrstorage autorestore outside max's searchpath ?


Apr 12 2012 | 12:37 pm

Hi. I’m using a pattrstorage object (with @autorestore set to 1) so that it can load the last used preset file, but I’ve noticed that this will only work if the preset file is saved in max’s search path. Is there a way around this ?
(thanks in advance)

here’s an example patch:


-- Pasted Max Patch, click to expand. --

Max 6.0.4 (OSX 10.6.8)

Apr 15 2012 | 11:54 am

One workaround is using [filepath] to save the folder’s path, inside which you save your preset, inside Max preferences paths.

Apr 15 2012 | 9:57 pm

I was avoiding max’s search path so that I wouldn’t have problems with different files with the same name. But I ended up by adding my folder path to max’s search path temporarily, removing it when my patcher is loaded…

Thanks again

Apr 16 2012 | 9:31 am

ah, i understand. you could remove the file from the search path with [closebang] if it helps.

Apr 16 2012 | 11:43 am

You can use the new Project feature in Max 6 and add a project-local searchpath for that file.

Apr 16 2012 | 4:24 pm

Thanks….I didn’t notice that feature… Is there any documentation available?

Viewing 6 posts - 1 through 6 (of 6 total)

Forums > MaxMSP