Render Setup Error when switching layers

Render Setup Error when switching layers

Anonymous
Not applicable
4,140 Views
4 Replies
Message 1 of 5

Render Setup Error when switching layers

Anonymous
Not applicable

I have started getting this error when using the Render Setup window in 2017.

 

# Traceback (most recent call last):
# File "C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\maya\app\renderSetup\views\renderSetupWindow.py", line 691, in showContextMenu
# self.contextMenu.exec_(self.mapToGlobal(point))
# File "C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\maya\app\renderSetup\views\pySide\cursors.py", line 36, in wrapper
# return f(*args, **kwargs)
# File "C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\maya\app\renderSetup\views\renderSetupWindow.py", line 850, in _delete
# self._deleteItems(persistentSelectedIndexes)
# File "C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\maya\app\renderSetup\model\undo.py", line 62, in wrapper
# return f(*args, **kwargs)
# File "C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\maya\app\renderSetup\views\renderSetupWindow.py", line 840, in _deleteItems
# item.delete()
# File "C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\maya\app\renderSetup\views\proxy\renderSetup.py", line 1205, in delete
# self.setData(False, renderSetupRoles.NODE_VISIBLE)
# File "C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\maya\app\renderSetup\views\proxy\renderSetup.py", line 1133, in setData
# renderSetupModel.instance().switchToLayer(self._model if (value==True or self._model.needsRefresh()) else None)
# File "C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\maya\app\renderSetup\common\guard.py", line 126, in wrapper
# return f(*args, **kwargs)
# File "C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\maya\app\renderSetup\model\renderSetup.py", line 252, in switchToLayer
# renderSetupPrivate.SwitchVisibleRenderLayerCmd.execute(rLayer)
# File "C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\maya\app\renderSetup\model\renderSetupPrivate.py", line 56, in execute
# cmds.renderSetupSwitchVisibleRenderLayer()
# File "<string>", line 2, in renderSetupSwitchVisibleRenderLayer
# RuntimeError: TypeError: file C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\maya\app\renderSetup\model\connectionOverride.py line 912: Connection override apply node has no render layer connection
#

 

My scene is basically boned at this point and I cannot delete the current layer or switch back to the "Scene" layer at all. This happens even when I close and reopen the file. I have a large scene and Render Setup has worked for me in the past.

 

I thought that it could be related to referencing another scene and using that with Render Setup collections but it does not seem to matter. Before I started getting this error, material overrides were not working reliably. The collection contained the right objects but the initialShadingGroup was still applied not the material override.

 

Any suggestions would be very helpful. 

0 Likes
4,141 Views
4 Replies
Replies (4)
Message 2 of 5

mspeer
Consultant
Consultant

Hi!

 

If this happens according to the latest Maya update (update 3), you may try installing the newest Arnold update:

https://support.solidangle.com/display/AFMUG/1.4.2.1

0 Likes
Message 3 of 5

Anonymous
Not applicable

Yeah this is happening on Update 3. I am actually using V-Ray 3.40.06. Still could be worth a try.

0 Likes
Message 4 of 5

strubefabian4
Contributor
Contributor

Hi Josh,

 

we got the same problem here. Maya crash while switching Renderlayer in the new Render Setup..
We wonder if updating Arnold worked for you or if you found any other solution for the problem?

Kind Regards
Fabian

0 Likes
Message 5 of 5

Anonymous
Not applicable

Hey, I actually didn't even bother with the Arnold update. I was in a bit of crunch time and ended up doing a full uninstall and bringing maya back to 2017 update 1. Not sure if the issue is present in update 2 as I can't seem to get it to install. 

 

Even after bringing it back to Update 1, I ended up rebuilding the scenes that were affected as they still had render setup issues. However after rebuilding entirely with 2017 update 1 I had no more issues. To do the rebuild I just exported the render setup (from update 3) and re-imported it into update 1, rather than having to rebuild by hand.

 

I did a little bit of testing because I was using Referencing to bring in the geometry and wasn't sure if that could have been the cause of it. As we all know referencing and render layers have been a minefield in the past but I figured that since there was this overhaul it "might" work. However I couldn't really find any hard and fast proof that the issue was related to referencing. I referenced the geometry in update 1 and it seemed to work fine.

 

Another thing that I did notice is that a bunch of connection nodes are added to the object in update 3 when switching to a Render Setup Layer other than Master Layer. I can't remember exactly but they are something along the lines of [objectname]_connection_info_op or something along those lines. Again this is not present in update 1.

 

I guess the only real solution that I can offer is to revert to an earlier update and hold off until update 4.