Cryptomatte

Beauty AOV / Cryptomatte material AOV

 

Arnold supports Cryptomatte, an ID matte creation tool created by Psyop. It creates ID mattes automatically with support for motion blur, transparency, and depth of field. Names, object namespaces, and material names can be used to organize ID mattes in the scene.

Workflow

Windows

  • Copy the cryptomatte.dll to:

C:\Program Files\MAXON\CINEMA 4D R1X\plugins\C4DtoA\shaders

C:\Program Files\MAXON\CINEMA 4D R1X\library\scripts

or under the home folder (if you save a script in the Script Manager it is saved to this appdata folder). 

C:\Users\[your user]\AppData\Roaming\MAXON\CINEMA 4D R1X_XXXXXXX\library\scripts\

OSX

  • Copy the cryptomatte.dylib to:

/Applications/MAXON/CINEMA 4D R1X/plugins/C4DtoA/shaders

/Applications/MAXON/CINEMA 4D R1X/library/scripts

or under the home folder (if you save a script in the Script Manager it is saved to this appdata folder). 

/Users/[your user]/Library/Preferences/MAXON/CINEMA 4D R1X_XXXXXXX/library/scripts

You could simply copy & paste the code from the script to the Script Manager window and save it. You can also assign a shortcut to the script from the Script Manager window.

  • Run the script from the Script Manager.

 

The script creates a cryptomatte shader and assigns it to the AOV shader list in the Arnold Render Settings.

 

It also creates an EXR driver with the three cryptomatte AOVs:

  • crypto_asset creates the same matte for all assets.
  • crypto_material creates a matte based on the assigned shader.
  • crypto_object creates a matte based on the object name.

The cryptomatte AOVs are also assigned to the display driver to be available in the IPR window.

  • No labels