Forums > MaxMSP

How to defer output from sprintf? (only want to output a complete path + file)

August 29, 2010 | 1:33 am

So I have a patch where I first get a path to a folder, then attach this path to a bunch of filenames to read them into a jit.qt.movie.

I’m using (sprintf symout %s%s), which works great, except that the first time I load the folder path, it spits it out, and the jit.qt.movie generates an error.

Is there any way to defer output of the sprintf when I have only loaded the first argument? Or do I need to put something like a (trigger 1 s 0) connected to a gate to disable it while I load the first argument?

– Pasted Max Patch, click to expand. –

August 29, 2010 | 2:00 am

[zl reg] is probably the most efficient, but a case could be made for using a message box, if you wanted to be able to see the path.

– Pasted Max Patch, click to expand. –

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