passing file name to jit.qt.movie

Guilherme Martins's icon

I think this is simple, I am building this movie playlist based on someone's post, now I need to pass the clicked file name to the jit.qt.movie but it gives an error saying that couldn't find the file, can someone help me please???

thanks in advance

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

cap10subtext's icon

Problem is likely your pathnames. If you hook a dropzone to [prepend read] to [jit.qt.movie] you'll see it passes along the absolute file name. Unless the folder you are dropping is already in the Max search path, it won't see it if you only pass the file name.

Look in the sprintf help file and double click p More-Examples, you'll see an example for how to reconnect the file path back on to a filename.

Guilherme Martins's icon

Thanks, the sprintf object solved my problem. Perhaps this can be optimized, but here's the patch, might me useful for someone.

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