switching between cameras while still keeping them active

Ruairi McAleer's icon

Hi all.

I am currently trying to make a project using a jitter where I can switch between cameras by pressing a button. The issue I am coming across is that when I switch between the cameras with the jit.grab command it turns on one and switches the other off which is making the transition delayed. I was wondering if there is fix for that. I am using the built-in camera in my MacBook Air and a USB external webcam hoping to transition to HDMI when I have general testing done.

If anyone knows how to fix this issue please let me know

Thanks

TFL's icon

You can use two jit.grab simultaneously, one for each camera, and switch between one or the other using [switch].

Ruairi McAleer's icon

Hi

I should have clarified I wanted them in the same jit.pwindow. I have tried having two jit.grabs and assigning them to each camera but it can’t switch between them without cutting out or just referring back to default

TFL's icon

I don't get where the problem is. Does this work for you?

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

Pedro Santos's icon

Using 2 jit.grab objects, you could even do a crossfade transition, if needed.

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