pattrstorage autorestore outside max's searchpath ?

Pinho's icon

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)

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

here's an example patch:

Max 6.0.4 (OSX 10.6.8)

vichug's icon

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

Pinho's icon

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

vichug's icon

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

Jeremy's icon

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

Pinho's icon

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