Use the MultiMatte Materials Render Element in V-Ray for SketchUp to create selection masks based on material IDs.
Overview
The MultiMatte Materials Render Element creates red, green and blue selection masks based on each material's ID number. It ignores the material's ID colour.
This render element uses only three colours: red, green and blue. At render time, it checks the scene and creates enough channels for the unique IDs you specify. Each channel holds up to 3 unique IDs. Its name shows which IDs it represents.
With MultiMatte, you can use a single R, G or B channel directly as a matte. You do not need to select the colour in your compositing software.
The MultiMatte Materials Render Element has an antialiasing option.
V-Ray also supports the MultiMatte Objects channel, which uses Object ID numbers.


UI paths
||V-Ray Asset Editor|| > Render Elements (right-click) > MultiMatte Materials
||V-Ray Asset Editor|| > Create Asset (left-click) > Render Elements > MultiMatte Materials
How to set Material IDs
Use the Add Attribute button to assign the Material ID attribute to all materials. Set each material's ID number in the rollout that appears.
Assign the same ID number to multiple materials to group their objects in the MultiMatte channel.
All items with the same material appear in the same colour in this channel. See the result in the overview.

Common uses
Use the MultiMatte Materials Render Element to isolate materials in a scene. MultiMatte can be quicker to use than other matte render elements because it uses pure red, green or blue channels to represent objects. Compositing software often lets you select these channels directly as mattes.
In this example, the pillow material ID is 1, the sofa material ID is 2 and the blanket material ID is 3. Use these IDs to create masks in your compositing software and adjust the isolated materials. Compare the render before and after compositing.

