Save screenshot of a video with bang

zealen's icon

I want to save a screenshot on the computer of a movie playing in the patch when I press a button, how can I make that?

I want to save the picture that is created when you press the big button in the patch.

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

Rob Ramirez's icon

check out the "exportimage" message to jit.matrix

zealen's icon

Ah, thank you! It worked great, just one problem, how do I write it so that it saves an image with a new filename everytime so that I don't overwrite the last picture?

Pedro Santos's icon

sprintf is your friend!

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

zealen's icon

Thank you Pedro!