Can't seem to access defaultArnoldRenderOptions attributes

Can't seem to access defaultArnoldRenderOptions attributes

DavidHenion
Enthusiast Enthusiast
619 Views
1 Reply
Message 1 of 2

Can't seem to access defaultArnoldRenderOptions attributes

DavidHenion
Enthusiast
Enthusiast

I'm trying to run a 3rd party plugin and in the py file this line is failing:

 

render_device = cmds.getAttr("defaultArnoldRenderOptions.renderDevice")

 

In the script editor as mel commands I'm seeing this:

 

getAttr("defaultArnoldRenderOptions.renderDevice")
# Error: ValueError: file <maya console> line 1: No object matches name: defaultArnoldRenderOptions.renderDevice
 
listAttr("defaultArnoldRenderOptions")
# Error: ValueError: file <maya console> line 1: No object matches name: defaultArnoldRenderOptions
 
Arnold is set at the renderer and all works fine with a render, but not sure why these are failing.
Using Maya 2022.4
 
Any ideas?
Thank you
0 Likes
Accepted solutions (1)
620 Views
1 Reply
Reply (1)
Message 2 of 2

DavidHenion
Enthusiast
Enthusiast
Accepted solution

I was trying to run this on a new/empty scene - turns out Maya doesn't load some of the Arnold stuff until you open the render settings window (even though the renderer is set to Arnold.) If I open render settings, and then just close it - this works......

0 Likes