There appears to be a bug where if I create an override on the "Enable" attribute of a render layer (in order to disable it), I am stuck on that render layer and can no longer switch between render layers. If I delete the AOV's palette that is automatically created from the override, the problem vanishes and I can again switch between render layers.
Using Maya 2018.3 + V-Ray 3.60.01
Also, this message is generated in the script editor when attempting to switch away from the render layer with the AOV override:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# Traceback (most recent call last):
# File "C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\views\pySide\cursors .py", line 36, in wrapper
# return f(*args, **kwargs)
# File "C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\views\progressBar.py ", line 8, in progressBarWrapper
# f(*args, **kwargs)
# File "C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\views\renderSetupWin dow.py", line 855, in _setVisibility
# item.setData(not item.data(renderSetupRoles.NODE_VISIBLE), renderSetupRoles.NODE_VISIBLE)
# File "C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\views\proxy\renderSe tup.py", line 1317, in setData
# renderSetupModel.instance().switchToLayer(self._mo del if (value==True or self._model.needsRefresh()) else None)
# File "C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\common\guard.py", line 127, in wrapper
# return f(*args, **kwargs)
# File "C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\model\renderSetup.py ", line 384, in switchToLayer
# renderSetupPrivate.SwitchVisibleRenderLayerCmd.exe cute(rLayer)
# File "C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\model\renderSetupPri vate.py", line 64, in execute
# cmds.renderSetupSwitchVisibleRenderLayer()
# File "<string>", line 2, in renderSetupSwitchVisibleRenderLayer
# RuntimeError: # Unapply layer re_off_rl failed: Abstract function called from: VRayRenderElementStrategy.contentType(ArgSpec(args =['self'], varargs=None, keywords=None, defaults=None))
RuntimeError: file C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\common\devtools.py line 7: Abstract function called from: VRayRenderElementStrategy.contentType(ArgSpec(args =['self'], varargs=None, keywords=None, defaults=None))
#
# Traceback (most recent call last):
# File "C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\views\renderSetupWin dow.py", line 563, in mouseReleaseEvent
# action.trigger()
# File "C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\views\pySide\action. py", line 44, in trigger
# super(Action, self).trigger()
# File "C:\Program Files\Autodesk\Maya2018\bin\python27.zip\contextli b.py", line 24, in __exit__
# File "C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\views\pySide\action. py", line 21, in excepthookGuard
# raise consumer.exceptionRaised
# RuntimeError: # Unapply layer re_off_rl failed: Abstract function called from: VRayRenderElementStrategy.contentType(ArgSpec(args =['self'], varargs=None, keywords=None, defaults=None))
RuntimeError: file C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\common\devtools.py line 7: Abstract function called from: VRayRenderElementStrategy.contentType(ArgSpec(args =['self'], varargs=None, keywords=None, defaults=None))
#
Using Maya 2018.3 + V-Ray 3.60.01
Also, this message is generated in the script editor when attempting to switch away from the render layer with the AOV override:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# Traceback (most recent call last):
# File "C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\views\pySide\cursors .py", line 36, in wrapper
# return f(*args, **kwargs)
# File "C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\views\progressBar.py ", line 8, in progressBarWrapper
# f(*args, **kwargs)
# File "C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\views\renderSetupWin dow.py", line 855, in _setVisibility
# item.setData(not item.data(renderSetupRoles.NODE_VISIBLE), renderSetupRoles.NODE_VISIBLE)
# File "C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\views\proxy\renderSe tup.py", line 1317, in setData
# renderSetupModel.instance().switchToLayer(self._mo del if (value==True or self._model.needsRefresh()) else None)
# File "C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\common\guard.py", line 127, in wrapper
# return f(*args, **kwargs)
# File "C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\model\renderSetup.py ", line 384, in switchToLayer
# renderSetupPrivate.SwitchVisibleRenderLayerCmd.exe cute(rLayer)
# File "C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\model\renderSetupPri vate.py", line 64, in execute
# cmds.renderSetupSwitchVisibleRenderLayer()
# File "<string>", line 2, in renderSetupSwitchVisibleRenderLayer
# RuntimeError: # Unapply layer re_off_rl failed: Abstract function called from: VRayRenderElementStrategy.contentType(ArgSpec(args =['self'], varargs=None, keywords=None, defaults=None))
RuntimeError: file C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\common\devtools.py line 7: Abstract function called from: VRayRenderElementStrategy.contentType(ArgSpec(args =['self'], varargs=None, keywords=None, defaults=None))
#
# Traceback (most recent call last):
# File "C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\views\renderSetupWin dow.py", line 563, in mouseReleaseEvent
# action.trigger()
# File "C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\views\pySide\action. py", line 44, in trigger
# super(Action, self).trigger()
# File "C:\Program Files\Autodesk\Maya2018\bin\python27.zip\contextli b.py", line 24, in __exit__
# File "C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\views\pySide\action. py", line 21, in excepthookGuard
# raise consumer.exceptionRaised
# RuntimeError: # Unapply layer re_off_rl failed: Abstract function called from: VRayRenderElementStrategy.contentType(ArgSpec(args =['self'], varargs=None, keywords=None, defaults=None))
RuntimeError: file C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\renderSetup\common\devtools.py line 7: Abstract function called from: VRayRenderElementStrategy.contentType(ArgSpec(args =['self'], varargs=None, keywords=None, defaults=None))
#
Comment