Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

Arnold GPU - Cryptomatte masking AOV alternatives

Intuos5
Advisor
Advisor

Arnold GPU - Cryptomatte masking AOV alternatives

Intuos5
Advisor
Advisor

I would like to know whether there are any other options to create masking AOVs for Arnold GPU, because currently, cryptomattes are not supported. Preferably, I would like to mask out objects for post-compositing in Photoshop. 

0 Likes
Reply
1,762 Views
2 Replies
Replies (2)

Christoph_Schaedl
Mentor
Mentor

create a custom ID pass.

https://www.youtube.com/watch?v=91n_YMgzKv0

 

You could also use this script todo so.

 

import maya.cmds as cmds
import mtoa.aovs as aovs

aovs.AOVInterface().addAOV("Object_ID")

UtiD = cmds.createNode("aiUtility" , name="aiUtility_ID") 
cmds.setAttr('aiUtility_ID.shadeMode' , 2)
cmds.setAttr('aiUtility_ID.colorMode' , 21)


cmds.connectAttr('aiUtility_ID.outColor' , 'aiAOV_Object_ID.defaultValue')

 

----------------------------------------------------------------
https://linktr.ee/cg_oglu
0 Likes

Intuos5
Advisor
Advisor

@Christoph_Schaedl Thank you for your quick response. 
I am sorry, but I see that the video is for Maya and the script also contains "maya.cmds" are you sure that this works in 3ds Max?

0 Likes