Forums > MaxMSP

how to register a folder and subfolder into filepath?

May 23, 2010 | 4:58 pm

Dear advanced users,

by the following method, which is included in the maxhelp, I cannot add the subfolders of a folder.
is there any possibility to also add the subfolders of the selected folder?

Best,
prko

– Pasted Max Patch, click to expand. –

May 23, 2010 | 5:49 pm

Hi prko,

Here’s I do this type of thing.

best,
Zachary


May 23, 2010 | 7:08 pm

thanks


May 23, 2010 | 8:02 pm

But it works strangely, when there are more than one subfolder.
Is there any other suggestions?

thanks,
prko


May 24, 2010 | 6:31 am

Strangely? It works as expected. You just need to change the depth field in the config file:

1. open loader_config.txt
2. change depth, 0; to depth, 1; or 2; or 3;, etc.
3. with verbose on (i.e. verbose, 1;), it will print all paths added to the temporary search path in the Max window.

best,
Zachary


May 24, 2010 | 10:05 am

Dear Zachary,

See the attached file.
Main_Patch-LOADER.maxpat open five instances of the Main_Patch.maxpat.
The number of instances will be decided by the total number of subfolders.

best,
ptko

Attachments:
  1. Archive.zip

May 24, 2010 | 1:02 pm

Hi ptko,

You’re right, there was a mistake in there. Here’s the corrected version. Should work as desired now.

best,
Zachary

Attachments:
  1. correction.zip

May 24, 2010 | 4:34 pm

Thanks,
I now know what was the problem in my code.
I have learned from your patch,

best,
prko

– Pasted Max Patch, click to expand. –

May 24, 2010 | 8:02 pm

hi,

I have decided use the following code.
It is a simplified code of yours.

– Pasted Max Patch, click to expand. –

May 24, 2010 | 11:13 pm

ups.
I have copied the code not completely.
Here the full code.

– Pasted Max Patch, click to expand. –

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