Forums > MaxMSP

asking how many files in a folder… ?

November 9, 2006 | 6:22 pm

hey, I’m just wondering if there’s an object / process out there that can be used to find out how many files there are in a folder?
I’m hoping to use something like this in my patch- the user puts quicktime movies in a patch, and the patch randomly selects between them. So the result will change the argument of a [random] object. I’m thinking this will be much better than making the user input how many videos manually wach time the patch is used.
please let me now if you have any suggestions.
thanks
tom


November 9, 2006 | 6:37 pm

The folder object’s right outlet gives exactly that,
cheers
— register wrote:

>
> hey, I’m just wondering if there’s an object /
> process out there that can be used to find out how
> many files there are in a folder?
> I’m hoping to use something like this in my patch-
> the user puts quicktime movies in a patch, and the
> patch randomly selects between them. So the result
> will change the argument of a [random] object. I’m
> thinking this will be much better than making the
> user input how many videos manually wach time the
> patch is used.
> please let me now if you have any suggestions.
> thanks
> tom
>


November 9, 2006 | 7:19 pm

aha… excellent, thank you, didn’t know that it did that!
Just trying to get it to recognise the .mov’s now… what would I put in the [types _____] message going into folder? So many times I’ve tried to find a resource for all the different [types] four letter codes. Is there a resource out there?
Can’t find anything in the manuals
thanks again
tom


November 9, 2006 | 7:32 pm


November 9, 2006 | 7:39 pm


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