clear all matrix

Omri Blau's icon

Hey guys!
I'm using a jit.grab for using the webcam of the computer. The toggle sets it on and off, but I want to clear the window from everything once I turn it off. Currently the picture stays from the last moment I turned it off.
The clear message isn't clearing.
Any ideas?

Thanks a lot :)

Pedro Santos's icon

You have to make sure that your patch is doing the following in order:

  1. Close the webcam connection;

  2. Clear the internal matrix;

  3. Make sure that the black matrix is output. For that effect, if your main metro is already turned off, you can send an explicit bang to jit.grab.

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


Omri Blau's icon

Wonderful thank you Pedro