Rollover image to view object_id pass (utility shader set to obj)


The aov_write shader in combination with the utility shader is a useful combination for writing out an Object ID pass. This simple setup will allow you to use an ID pass in compositing software to identify certain objects by their color. We will also isolate certain objects and give them specific id's with which to group by color.


Standard Surface

Aov_write_rgb shader

ObjectID added to aov_name of aov_write_rgb shader

Utility shader

Final shader network

Custom AOV

Add a Custom AOV and rename it 'ObjectID' (the same name used for the aov_write_rgb shader)

Utility shader's object mode uses the name of the shapes to compute the color