Object Mask

The 'object mask' workflow has been added to facilitate the creation of object id masks for composition. Each selected object or object group will be written to a separate floating-point AOV.

A video tutorial can be found here.

A scene (R16) that demonstrates the 'object mask' workflow can be found here.

Volumes do not support object masks.

Rendering a procedural with an object mask will override shaders in the procedural.

Workflow

Let's use an example scene containing some primitive objects.

Our goal is to add the Sphere and the Cone to object_mask1 AOV and everything under the Null group to object_mask_group AOV. First, we have to assign the objects to AOVs which is done by a special tag.

Arnold Object Mask found under C4DtoA Tags menu. Object Mask Tag will appear in Object Manager. Rename the AOV in the Attribute Manager.

Now we have to activate the object mask AOVs.

Once you click OK, a display driver is created in the Object Manager window containing the activated AOVs.

Display driver with the object mask AOVs

When you render the scene, you will find your object masks under the Layer tab in the Picture Viewer.

Object mask AOVs rendered in the Picture Viewer (the sphere has a displacement shader).

If you change the AOV name in the Arnold Object Mask, tag, you will have to maintain your activated AOVs. You will need to open the Arnold Setup AOVs dialog, remove the old AOV and activate the new one.

You can also manually create custom object id/mask AOVs adding a write_aov shader to your shader networks (this is what the plug-in does automatically using the Arnold Object Mask tags). You can also define user data on the objects which can be read via user_data shaders.