Community
Arnold General Rendering Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting Cryptomatte for SitoA working.

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
468 Views, 0 Replies

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

520-setup-1.jpg

521-setup-2.jpg

522-cryptomatte.jpg

523-beauty-mask.jpg

Tags (1)
Labels (1)
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report