Ai Utility - Object ID Mode

We will cover a way to write custom color information (set as the beauty render) triggered by an Ai Utility shader to a particular AOV. If you want to have, for example, 'Object ID' as one of your AOVs.

The Maya scene is available here.

The Ai WriteColor shader can also be used to achieve a similar effect.

 

  • In the AOVs tab in the Arnold render settings, Add a custom AOV called ObjectID.

 

 

  • Go to the Shading Group where the standard shader is connected. In the Arnold section, you will see an ObjectID attribute under Other AOVs:
  • Drag and drop the Utility shader from the Hypershade to the ObjectID attribute in the Shading Group. 

Drag Utility shader onto ObjectID of Standard Surface SG

 

The Ai Utility that is connected to the custom AOV will only be executed in objects with that particular shader.

 

Now the custom 'ObjectID' AOV will get its value from the Ai Utility shader, but you can also use the rest of the standard AOV's: 

  • No labels