'Folder' order of operations

Exit Only's icon

Sorry if this one has been mentioned before, or if its a legacy thing I've never noticed. The folder object's left outlet fires before the right one.

Has this always been the case? I have a patching situation where it would be preferable to receive the number of files in the folder before the contents are dumped out.

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

Peter Castine's icon

Yep, always been like that, as long as there's been two outlets.

Consider that the object may not even know how many files there are until it's iterated through the lot.

Exit Only's icon

Good to know. I solved the problem by having folder input all of the filenames into a coll, and then once the total is output sending a dump message to the coll.

Tj Shredder's icon
Chris Muir's icon

On Jan 22, 2009, at 3:08 PM, Stefan Tiedje wrote:

> with a simple trigger and an int you wouldn't need a coll:

A simple trigger and int manage to recreate the output of folder
perfectly. :-)

That wasn't what the original poster was after, though. The coll
solution mentioned earlier might be the best approach, but it could
also be approached with cascaded folder objects.

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

Chris Muir
cbm@well.com    
http://www.xfade.com