Forums > MaxMSP

Folder/ file path stuff

July 19, 2013 | 4:23 am

Hi all,

I’m currently using [opendialog fold] to load some umenus with file names. What I’d like to do is split the folder into a list of all the individual file names before going to the umenus. How do I got about doing this?


July 19, 2013 | 8:06 am


July 19, 2013 | 9:33 am

Have a look at [folder].

July 19, 2013 | 3:30 pm

That doesn’t seem to be doing the trick. It works fine with the [folder] going into an umenu, but with a set up like this


— Pasted Max Patch, click to expand. —


It just seems to be outputting one element of the list of files and how many files are in the folder. What I want is the whole list of files so I can split them up individually.

July 19, 2013 | 5:40 pm

yes, because it outputs all the elements sequentially, not at once. you should rahter plug a [print] at the outlet of an object you don’t know that you want to test, not a message box, a message box will only display the last element that it has received.


— Pasted Max Patch, click to expand. —


That said, it’s slightly a bit tricky to use [folder] in the above patch, because unlike most of the max objects, the leftmost outlet – which is all the elements in requested folder output sequentially – comes out first, and the rightmost outlet – which is the actual size of the list – comes out last. In this patch you can’t set the size of [zl group] by the size of the list, because it so happens that if you change the size of the [zl group] it empties its content, and as the size information would come to him after the elements od the list (leftmost outlet), it would be emptied of its content.

July 20, 2013 | 1:31 am

Yeah using message boxes is a habit I’ve formed which I should get out of.

Thanks though that actually work exactly how I want.

July 20, 2013 | 5:27 pm

glad to help :)

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

Forums > MaxMSP