question

rachid Hadj Abderrahmane avatar image
rachid Hadj Abderrahmane asked ·

Getting Cryptomatte for SitoA working.

Hi
Someone has asked for Cryptomatte for Sitoa
Here is the solution:
First download cryptomatte from:https://github.com/anderslanglands/alShaders2/releases
add theses variabeles to your OS:
ARNOLD_PLUGIN_PATH = C:\Cryptomatte\bin
MAYA_CUSTOM_TEMPLATE_PATH = C:\Cryptomatte\aexml
MTOA_TEMPLATES_PATH = C:\Cryptomatte\ae

You have to edit 03 files located in Addons\SItoA\Application\Plugins\..
("ArnoldShaderDef.js" ,"ArnoldScenePreferences.js","ArnoldMenu.js")

after line 117, add theses lines to ArnoldShaderDef.js
in_reg.RegisterShader("Crypto_Asset", 1, 0);
in_reg.RegisterShader("Crypto_Object", 1, 0);
in_reg.RegisterShader("Crypto_Material", 1, 0);

after line 153, add these line to ArnoldScenePreferences.js
// Cryptomatte
aov_array.push({ name: "Crypto_Asset", type: siRenderChannelColorType });
aov_array.push({ name: "Crypto_Object", type: siRenderChannelColorType });
aov_array.push({ name: "Crypto_Material", type: siRenderChannelColorType });

after line 234, add this line to ArnoldMenu.js
in_menu.AddCallbackItem("Cryptomatte", "OnShadersMenu");

start Xsi
You will find Cryptomatte under Shaders/Cryptomatte use this one (do not use Cryptomatte that are under DLL Shaders, it won't work!)
make a test scene:
- Select all you objects and create your Cryptomatte, pin the attribute you will need it.
- Go to Scene Options and add crypto_asset, crypto_object, crypto_material, you will find these in Render Channel Output later
- Open Render Manger and add crypto_asset, crypto_object, crypto_material, change format to exr, and Render Current Frame
limitation: Only P, Z, N worked with cryptomatte when merged to one single exr file (the rest are all rendered black, the beauty Pass are renderded as mask)
Hopr this help

cryptomatte
setup-1.jpg (988.2 KiB)
setup-2.jpg (974.0 KiB)
cryptomatte.jpg (234.9 KiB)
beauty-mask.jpg (168.4 KiB)
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.