To create matte masks of materials that are part of the VRayBlend material, you can use the three different render elements: Material ID, Multi Matte and Multi Matte ID. Here is explained how to create a mask for compositing with each of them. For each sub-shader that you want to create mask for, go to Attributes > V-Ray and select Material ID. For more information on V-Ray Attributes for materials, see the Material Attributes page. Depending on the render element creating the mask, either put a value to the Multimatte ID parameter, or select a color for the Material ID parameter. Multi Matte and Multi Matte ID render elements do not produce gradient masks. |
Want to follow along but don’t have a license?

|