Community
3ds Max Shading, Lighting and Rendering
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max materials topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Arnold GPU - Cryptomatte masking AOV alternatives

2 REPLIES 2
Reply
Message 1 of 3
Intuos5
1764 Views, 2 Replies

Arnold GPU - Cryptomatte masking AOV alternatives

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. 

2 REPLIES 2
Message 2 of 3
Christoph_Schaedl
in reply to: Intuos5

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
Message 3 of 3
Intuos5
in reply to: Christoph_Schaedl

@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?

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

Post to forums  

Autodesk Design & Make Report