question

Felipe Ruiz avatar image
Felipe Ruiz asked

mtoa error when adding AOVs due to initialParticleSE shader

We are getting this error. Seems like some of the default shaders in Maya like "initialParticleSE" shaders doesn't play well with mtoa. Not sure why adding aovs on some of our scenes are causing this problem. Fyi: initialParticleSE cannot be deleted or manipulated because it is Maya default node.

--Felipe

# Error: setAttr: The attribute 'initialParticleSE.aiCustomAOVs[0].aovName' is locked or connected and cannot be modified.
# Traceback (most recent call last):
#   File "/net/software/autodesk/modules/maya/2020/arnold/maya2020_linux_4.2.3/scripts/mtoa/ui/aoveditor.py", line 163, in addAOVs
#     aov = self.renderOptions.addAOV(aovName, aovShader=aovShaderName)
#   File "/net/software/autodesk/modules/maya/2020/arnold/maya2020_linux_4.2.3/scripts/mtoa/aovs.py", line 419, in addAOV
#     addAliases([aov])
#   File "/net/software/autodesk/modules/maya/2020/arnold/maya2020_linux_4.2.3/scripts/mtoa/aovs.py", line 173, in addAliases
#     cmds.setAttr(plug, aov.name, type="string")
# RuntimeError: setAttr: The attribute 'initialParticleSE.aiCustomAOVs[0].aovName' is locked or connected and cannot be modified. # 
aoverror
2 comments
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Got a repro scene you can share? Or are there some steps I have to do before adding an AOV?
0 Likes 0 ·
Felipe Ruiz avatar image Felipe Ruiz Stephen Blair ♦♦ ·
Thanks for looking into this. Please see Answer's section for attachment.
0 Likes 0 ·

1 Answer

· Write an Answer
Felipe Ruiz avatar image
Felipe Ruiz answered

@Stephen Blair attached is a zip file with 2 empty maya files, open reproScene2.ma and make sure that the externalFile2.ma is properly referenced. Then attempt to add multiple aovs in the Render settings panel. You should get the error above. reproScenes.zip


reproscenes.zip (23.0 KiB)
2 comments
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

@

Thanks. But I'm off today and tomorrow is a global corporate holiday...

0 Likes 0 ·
Felipe Ruiz avatar image Felipe Ruiz Stephen Blair ♦♦ ·

No worries, we got around it by editing aovs.py But it would be nice to not have to add this change set every time we upgrade versions.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.