how to register a folder and subfolder into filepath?

prko's icon

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?

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

Best,
prko

Zachary Seldess's icon

Hi prko,

Here's I do this type of thing.

best,
Zachary

581.load_patch_withTempSearchPaths.zip
zip
prko's icon

thanks

prko's icon

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

thanks,
prko

Zachary Seldess's icon

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

prko's icon

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

584.Archive.zip
zip
Zachary Seldess's icon

Hi ptko,

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

best,
Zachary

585.correction.zip
zip
prko's icon

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

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

best,
prko

prko's icon

hi,

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

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

prko's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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