Render Sequence quits after the first added render layer. Cannot switch to that layer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So as the title states, Render Sequence using Arnold quits after the first added render layer. It says "we cannot switch to that layer".
It will render the master layer and then the first of the next render layers on the list, but it quits there. If I turn off the first added render layer, it will render the master layer and then the next active one on the list and then will quit after that. If I turn off the master layer it will render just one of the added render layers and quit after that.
For example, I have a "height layer" and a "foliage mask" layer. When I click "render sequence" I get the master layer rendered, and the height layer, but it never gets to may "foliage mask" layer. It throws this error:
# Error: file: C:/Program Files/Autodesk/Maya2023/scripts/others/renderSequence.mel line 163: RuntimeError: file <string> line 2: Cannot connect attributes. For details see the Maya user guide.
# Unapply layer height_layer failed: (kFailure): Unexpected Internal Failure
# RuntimeError: (kFailure): Unexpected Internal Failure
// Warning: file: C:/Program Files/Autodesk/Maya2023/scripts/others/renderSequence.mel line 165: Cannot render 'rs_foliage_mask' because we cannot switch to that layer.
I should mention I do have some scene assembly references in the scene which seem to be causing some other errors of their own. Not sure if that is related. I have deleted those objects (as well as running "optimize scene") just to test it. I have tried deleting and remaking the render layers. I have also run the fixRenderLayerOutAdjustmentErrors script but the problem persists.
I am running Arnold version 5.2.2.1 with Maya 2023.3 on Windows 10.
I did come across this thread which seems to be a similar problem from Maya 2017:
But the "solution" was essentially to not use the render setup which doesn't really solve the issue. I suppose I can just split this up into a bunch of separate scene files (one for each render layer) and render them all separately, but I'd really like to avoid that if possible.
Any thoughts?