how to register a folder and subfolder into filepath?

May 23, 2010 at 4:58pm

how to register a folder and subfolder into filepath?

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. –
#50524
May 23, 2010 at 5:49pm

Hi prko,

Here’s I do this type of thing.

best,
Zachary

#181253
May 23, 2010 at 7:08pm

thanks

#181254
May 23, 2010 at 8:02pm

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

thanks,
prko

#181255
May 24, 2010 at 6:31am

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

#181256
May 24, 2010 at 10:05am

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
#181257
May 24, 2010 at 1:02pm

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
#181258
May 24, 2010 at 4:34pm

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. –
#181259
May 24, 2010 at 8:02pm

hi,

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

– Pasted Max Patch, click to expand. –
#181260
May 24, 2010 at 11:13pm

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

– Pasted Max Patch, click to expand. –
#181261

You must be logged in to reply to this topic.