Unlock defaultArnoldRenderOptions attributes

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  11 November 2017
Unlock defaultArnoldRenderOptions attributes


I have to create a skyShader and connect it with the defaultArnoldRenderOptions.background node. I am unable to do it successfully and get the following error.

mc.setAttr( "defaultArnoldRenderOptions.background", lock=False)
mc.setAttr("defaultArnoldRenderOptions.background", "aiSkyTransform",type="string")

# Error: setAttr: The attribute 'defaultArnoldRenderOptions.background' is locked or connected and cannot be modified.
# Traceback (most recent call last):
# File "<maya console>", line 1, in <module>
# RuntimeError: setAttr: The attribute 'defaultArnoldRenderOptions.background' is locked or connected and cannot be modified. #

Please suggest me a way to get this working.

  11 November 2017
You would need to use connectAttr, and hook up the message attribute of the aiSky node (not a transform):

cmds.connectAttr('aiSky.message', 'defaultArnoldRenderOptions.background')
reply share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 06:36 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.