Use V-Ray masks to refine selected parts of a rendered image in the VFB.
Overview
V-Ray masks let you refine selected parts of a rendered image in the VFB. You can apply them to Color correction layers, Lens Effects, the Denoiser and Folders in the VFB layers tree. You can also apply them to Render Elements when the Source layer is set to Composite.
To create a V-Ray mask, use the Add layer button or right-click the layer tree and select the option under New layer. You can also use the quick Mask creation button in the Properties area of folders and layers.
When you apply one or more masks to a folder or layer, a mask icon appears in front of it in the layer tree. Each mask's parameters appear in a separate tab in the Properties of that layer or folder.
Masks define areas through selections of objects, materials, groups or layers. The corresponding Render Elements must be available in the rendered image. There are three Mask types: Integer Mask, MultiMatte Mask, and Cryptomatte Mask.
Where to find masks:
||V-Ray Frame Buffer|| > Layers > Select layer or folder > Add button
||V-Ray Frame Buffer|| > Layers > Select layer or folder > right-click menu New Layer option
||V-Ray Frame Buffer|| > Layers > Select layer or folder > Properties > Add new mask layer button

Parameters
All masks share these parameters:
Blending controls how multiple masks combine over a single correction layer:
Overwrite uses the current mask as it is, without blending it with the masks before it (to its left).
Add adds the current mask to the combined result of all masks before it. This is the default mode.
Subtract subtracts the current mask from the combined result of all masks before it.
Multiply multiplies the current mask by the combined result of all masks before it.
Divide divides the current mask by the combined result of all masks before it.
Element selects the render element that supplies the mask. The dropdown lists only render elements that are available in the rendered image and compatible with the mask type.
Opacity is the mask opacity multiplier. It controls how much the selected layer obscures or reveals the layer beneath it. You can adjust opacity even if there is only one mask child. The opacity is multiplied by the mask colour.
Show preview when selected displays a preview when you select the mask.
Invert mask inverts the mask results when enabled.

Adds a new mask layer.

Shows all tabs of the selected colour correction layer.

MultiMatte Mask
The MultiMatte Mask uses the MultiMatte Render Element.
Use red uses the red channel as a greyscale mask.
Use green uses the green channel as a greyscale mask.
Use blue uses the blue channel as a greyscale mask.
Use intensity uses the pixel intensity as a greyscale mask.

Integer Mask
Use the Integer Mask with Render ID and Object ID Render Elements.
+/- Pick lets you add or remove items by picking them in the Render View. When it is active and your pointer is inside the Render View, a red square marks the exact point where the value is picked.
Clear all removes all items from the item list.
New item lets you type a mask ID manually. Use the + button to add it to the current selection.
Use + to add IDs to the list.
Use - to remove IDs from the list.

Cryptomatte Mask
The Cryptomatte Mask uses the V-Ray Cryptomatte Render Element.
+/- Pick lets you add or remove items by picking them in the Render View. When it is active and your pointer is inside the Render View, a red square marks the exact point where the value is picked.
Clear all removes all items from the item list.
New item lets you type a mask ID. Use the + button to add it to the current selection. The text is case insensitive.
Use + to add IDs to the list.
Use - to remove IDs from the list.

Drag and drop masks onto another layer to move or copy them.