Forums > MaxMSP

navigate in folders & path

March 28, 2011 | 7:45 pm

hello,
I discovered recently dynamic search path with filepath object.

I’d need today to "navigate".

This one:
[loadbang]
|
(path)
|
[thispatcher]

… gives me the folder where the patch is located.

I want to have the parent of this folder.
Any idea ?

I’ll make a standalone, in the end, I hope I won’t have problem related to that…


March 28, 2011 | 8:58 pm

Hello Julien,

"…
[loadbang]
|
(path)
|
[thispatcher]
…"

This should give you the full (absolute) path to the patch, but it might not work if you call it from a Max Collective (or Application, which has a Collective inside).

If you’ll make a standalone you should check the [standalone] object. The attribute "usesearchpath" set to 1 creates a search path of all subfolders of the folder containing the application. Inside that folder should be the files the application will refer to.

Is this what you were asking? If not please give more details.

Best,
Ignacio


March 29, 2011 | 12:43 am

If you use [regexp (.*/).*/] the second outlet will provide the path for the directory above the one sent to the input.


March 29, 2011 | 1:44 pm

Hello Ignacio & Luke !
and thanks a lot.

Indeed, I’m figuring out all the differences between standalone & patch machine launching.

I hope I won’t have other surprise :)


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