Jit.grab not working

Jim Bastow's icon

Jit.grab is not opening my built-in camera on Max 8.0.3, using the avf engine (or any of the other engines).

I'm running Mojave 10.14.3 - any ideas why? (tried restarting, and the camera works fine in other applications).

yaniki's icon

Hello Jim

I use the same version of the operating system as you and for me [jit.grab] does not cause any problems. Did you check whether the object works in the standard help file? Also, I think you need to bang the object periodically to force it to propagate the matrix.

See attached file:

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

Jim Bastow's icon

Unfortunately not, no luck in the help file!

yaniki's icon

Ok, and what with the patch I posted?

Jim Bastow's icon

The same, nothing happens. The green light next to the built-in camera doesn't appear either.

yaniki's icon

Is there a message in the console related to the problem? Do other programs use the camera unhindered?

Rob Ramirez's icon

have you selected your built-in facetime camera as the device to use (using the vdevice menu in the help patch)? Max 8.0.3 should use FaceTime camera as default but maybe something is preventing that.

have you restarted your machine?

Jim Bastow's icon

Just checked and yes there is an error message in the console "jit.grab - error opening device for grab."

Yes i've selected FaceTime camera in the device menu, and tried restarting the machine multiple times.

Rob Ramirez's icon

ok probably best to file a bug report so we can get all your details collected. maybe you also want to try deleting your max preferences:
Navigate to '~/Library/Application Support/Cycling 74' and delete the entire 'Cycling 74' folder. (To get to this folder, click on your Desktop. Option-click on the 'Go' menu and pull down to 'Library'.)

Martin Beck's icon
Rob Ramirez's icon

ahh yes, that thing! thanks much Martin, hopefully that's the cause.

"I would suggest going to the System Preference and looking under Security & Privacy. Then under the Privacy tab see if Max is allowed to access the camera. "

Jim Bastow's icon

Problem solved as expected, thanks all.

Rob Ramirez's icon

fantastic, thanks for confirming.

yaniki's icon

@MARTIN BECK

thank you