
Solid Angle - Rendering Glass Surfaces with Arnold.Note: Arnold updates are separate installation processes that happen more frequently than Maya updates.įor a full tutorial, review the Maya Help: Model glass or metal with the Standard Surface shader.įor information about Opacity and Transparency in Arnold and how they influence the scene, review the following guides: NumOfCustomAOVs = cmds.getAttr(shadingGroup+'.Solution: Learning about Arnold Parametersīefore starting, follow this guide to install the latest version of Arnold: Where to download Arnold updates Print 'No need to create a new customAOV' If not cmds.objExists('aiAOV_Default_Color'):ĬustomAOV = cmds.createNode('aiAOV',n='aiAOV_Default_Color', skipSelect=True)Ĭmds.setAttr(customAOV+'.name','Default_Color',type='string')Ĭmds.connectAttr(customAOV+'.message','defaultArnoldRenderOptions.aovList',force=1)Ĭmds.connectAttr('ssage',customAOV+'.outputs.driver', force=1)Ĭmds.connectAttr('ssage',customAOV+'.outputs.filter', force=1) Here is the code: '''check whether the aiAOV_Default_Color exists''' It seems that there is an initialization issue. Usually, when one creates a custom AOV from Render settings it automatically adds the AOV to a shading group list of aiCustomAOVS. If I divide the code to two parts (create an AOV and query the attribute of shading group) and run them separately I get the result, but I think it is not the proper way of doing that.

The print gives me zero as a number of AOVs of the shading group (see the last line of the code). I cannot access a newly created aiCustomAOV of my shading group (Arnold). I am starting working in maya and python and here is the first problem I faced:
