You can select which camera views will render an image file, mask file, or depth file in the Render Globals window.
To select which camera views will render
See Render > Globals
.
to open the Render Globals window.
A camera will not render an image file, mask file, or depth file if the camera is invisible, regardless of its Image, Mask, and Depth toggle settings.