2016.5 RenderSetup Layers

30 views
Skip to first unread message

Magnetic Dreams

unread,
Aug 1, 2016, 6:08:43 PM8/1/16
to Royal Render Knights Tavern
Hi,

We are trying to render a test scene using layers with the new Render Setup in Maya 2016.5.  It's a simple scene rendering three layers, two geo layers (named sphere1 and base) and a shadow layer (shadow).
We've discovered that the layer you have selected when you save the scene is the layer that will render in all layer passes.  The files are saved to the corresponding layer directory and file names correctly (sphere1, base, and shadow), but they are renders of the layer selected when the scene was saved. It does not matter what layer you select with RR submitter, it will render with the layer selected on the scene save.

We decided the problem may lie with the Maya preferences used by RR, since the legacy render layers and render setup must be selected in the preference and Maya reloaded for the change to take effect. We copied the Maya user prefs (userPrefs.mel) file from the local user prefs with Render Setup selected into the RR Maya render prefs folder. The variable in the prefs that controls the layer system is:

optionVar
 -iv "renderSetupEnable" 1;


RR does copy the prefs locally at render time to each render node, so we assume it used those prefs, but the log file for each scene still contained this error:

"R123| Error: file: //rrServ/rr/render_apps/scripts/kso_maya.mel line 11: This file contains render setup nodes and Maya is currently in Legacy Render Layers mode. This combination is unsupported. You can switch to Render Setup mode from the Preferred Render Setup system drop-down list in the Rendering section of the Preferences window.'".


This makes us wonder if the render nodes are truly using the render setup layer system as opposed to the legacy render layer system.

We have uploaded a test scene for you to take a look at.

Thanks.

RR, Schoenberger

unread,
Aug 2, 2016, 9:20:27 AM8/2/16
to rrKn...@googlegroups.com
Hi
 
Have you updated to the latest RR version? We have implemented a quickfix for the issue. It will switch the layer system on render.
The file render_apps\scripts\kso_maya.py should contain for example this this statement:
$renderSetupEnableCurrentSession=1;
 
But the prefs must either have no setting for the render layer system (default: new) or need to be set to the new system.
As you can switch to the old system, but you cannot switch to the new if it was not loaded.
 
There is a Maya fix to use both layer systems inside the UI on www.binaryalchemy.de/index_dev.htm.
The RR fix works without the Maya UI fix, but it does not remove the warning messages.
 
 
regards,
Holger Schönberger
 

Please use the rrKnights Tavern
or our support system for new questions.

 


From: rrkn...@googlegroups.com [mailto:rrkn...@googlegroups.com] On Behalf Of Magnetic Dreams
Sent: Tuesday, August 02, 2016 12:09 AM
To: Royal Render Knights Tavern
Subject: [rrKnights] 2016.5 RenderSetup Layers

--
If you reply, the message is send to the user group which is sufficient.
("Reply All" just sends the message twice to the last author which is not required)
---
You received this message because you are subscribed to the Google Groups "Royal Render Knights Tavern" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rrKnights+...@googlegroups.com.
Visit this group at https://groups.google.com/group/rrKnights.
For more options, visit https://groups.google.com/d/optout.

Magnetic Dreams

unread,
Aug 2, 2016, 12:31:37 PM8/2/16
to Royal Render Knights Tavern, schoen...@royalrender.de

Yes, sorry, I should have mentioned, we are using 7.0.36, so your workaround is there in the kso_maya.py. It just does not seem to be triggering the new layer system.

The userPrefs.mel contains the following command, which we have verified does trigger the new layer system within Maya.
optionVar -iv "renderSetupEnable" 1;

We were able to modify the kso_maya.py to provide some visible outputs in the log:

        if (mayaVersion>2016 or (mayaVersion==2016 and mayaVersionMinor>=50)):
            renderLayerCount   = len( cmds.ls( type="renderLayer" ) )
            logMessage(renderLayerCount)
            renderSetupCount   = len( cmds.ls( type="renderSetupLayer" ) )
            logMessage(renderSetupCount)
            if (renderSetupCount>0):

                maya.mel.eval('global int $renderSetupEnableCurrentSession; $renderSetupEnableCurrentSession=1;')
                logMessage("Using New Layers")
            elif (renderLayerCount>0):
                maya.mel.eval('global int $renderSetupEnableCurrentSession; $renderSetupEnableCurrentSession=0;')
                logMessage("Using Old Layers")
            else:
                maya.mel.eval('global int $renderSetupEnableCurrentSession; $renderSetupEnableCurrentSession=1;')
                logMessage("Using New Layers 2")


The value of renderSetupCount was always 0, and therefore never triggers the new layer system.
The value of renderLayerCount was always 1, and therefore triggered the old layer system.
We tried changing the renderSetupEnableCurrentSession=0 to renderSetupEnableCurrentSession=1 which forced the new layer system, and the renders layers worked as expected.

RR, Schoenberger

unread,
Aug 2, 2016, 12:41:34 PM8/2/16
to rrKn...@googlegroups.com
>The value of renderSetupCount was always 0
>The value of renderLayerCount was always 1
 
Hmm, that's strange. I will test your scene. All of our test scenes had the right number of layers.
 
 
regards,
Holger Schönberger
 

Please use the rrKnights Tavern
or our support system for new questions.

 

From: rrkn...@googlegroups.com [mailto:rrkn...@googlegroups.com] On Behalf Of Magnetic Dreams
Sent: Tuesday, August 02, 2016 6:32 PM

To: Royal Render Knights Tavern
Cc: schoen...@royalrender.de
Subject: Re: [rrKnights] 2016.5 RenderSetup Layers

Fabrice Altman

unread,
Aug 4, 2016, 5:35:18 AM8/4/16
to Royal Render Knights Tavern

Hi,

With kso_Maya from 7.0.36, we have the same error. Most basic scene, 2 layers sphere and cube.
We have multiple rendering issues on 2016.5 so trying to find out if they are scene based or else.
This error does not seem to create an issue on a simple scene but maybe it does a on a more complex one.

R110| Warning: Errors have occurred while reading this scene that may result in data loss.

R111| File read in 0.27 seconds.

R112| Error: file: //aka03/in_progress/AKA_ASSETS/100_RRender_V7/render_apps/scripts/kso_maya.mel line 11: This file contains render setup nodes and Maya is currently in Legacy Render Layers mode. This combination is unsupported. You can switch to Render Setup mode from the Preferred Render Setup system drop-down list in the Rendering section of the Preferences window.

R113| ' 10:20.13 rrMaya : Set Layer to 'rs_renderSetupLayer1'

  

RR, Schoenberger

unread,
Aug 5, 2016, 11:37:35 AM8/5/16
to rrKn...@googlegroups.com
What about a remote session next week (Tuesday)?
We can arrange all details via the support ticket system.
 
 
regards,
Holger Schönberger
 

Please use the rrKnights Tavern
or our support system for new questions.

 


From: rrkn...@googlegroups.com [mailto:rrkn...@googlegroups.com] On Behalf Of Fabrice Altman
Sent: Thursday, August 04, 2016 11:35 AM

To: Royal Render Knights Tavern
Subject: [rrKnights] Re: 2016.5 RenderSetup Layers

--

marc

unread,
Aug 9, 2016, 4:11:32 AM8/9/16
to Royal Render Knights Tavern, schoen...@royalrender.de
I have the same issue with v 7.0.35.

"This file contains render setup nodes and Maya is currently in Legacy Render Layers mode. This combination is unsupported. You can switch to Render Setup mode from the Preferred Render Setup system drop-down list in the Rendering section of the Preferences window."

just mentioning it :(

RR, Schoenberger

unread,
Aug 9, 2016, 7:15:07 AM8/9/16
to rrKn...@googlegroups.com
Hi
 
Note: The RR fix alone will not prevent this message from being displayed.
But it should still work (testing on more sites today)
 
If you want to fix this message and/or want to work with your Maya UI on both kinds of scenes without chaning prefs, please use the Maya mod from our website:
 
 
regards,
Holger Schönberger
 

Please use the rrKnights Tavern
or our support system for new questions.

 


From: rrkn...@googlegroups.com [mailto:rrkn...@googlegroups.com] On Behalf Of marc
Sent: Tuesday, August 09, 2016 10:12 AM

To: Royal Render Knights Tavern
Cc: schoen...@royalrender.de
Subject: Re: [rrKnights] Re: 2016.5 RenderSetup Layers

RR, Schoenberger

unread,
Aug 9, 2016, 1:09:42 PM8/9/16
to rrKn...@googlegroups.com
There is a new quickfix for the layer issue in Maya 2016.5.
Please copy the attached file into RR\render_apps\scripts\ and RR\render_apps\scripts\rr_original
 
 
regards,
Holger Schönberger
 

Please use the rrKnights Tavern
or our support system for new questions.

 


From: rrkn...@googlegroups.com [mailto:rrkn...@googlegroups.com] On Behalf Of RR, Schoenberger
Sent: Tuesday, August 09, 2016 1:15 PM
To: rrKn...@googlegroups.com
Subject: RE: [rrKnights] Re: 2016.5 RenderSetup Layers

kso_maya.py

marc

unread,
Aug 10, 2016, 4:37:36 AM8/10/16
to Royal Render Knights Tavern, schoen...@royalrender.de
Hello!
I copied the file into the specified location, but still the same problem:

C 10| Error in this log file (122): error: this file contains legacy render layers and maya is currently in render setup mode. this combination is unsupported. you can switch to legacy render layers mode from the preferred render setup system drop-down list in the rendering section of the preferences window.

RR, Schoenberger

unread,
Aug 10, 2016, 4:49:24 AM8/10/16
to rrKn...@googlegroups.com
Hi
 
That error message will always be there if you do not install the UI fix from BinaryAlchemy.de.
It is a false report as Autodesk has not planed to support both layer systems at the same time.
(Although Autodesk does it inhouse as well)
 
 
regards,
Holger Schönberger
 

Please use the rrKnights Tavern
or our support system for new questions.

 

From: rrkn...@googlegroups.com [mailto:rrkn...@googlegroups.com] On Behalf Of marc
Sent: Wednesday, August 10, 2016 10:38 AM

Fabrice Altman

unread,
Aug 10, 2016, 4:56:31 AM8/10/16
to Royal Render Knights Tavern
Hi,

in my case the error message has disappeared since updating to yesterday's kso_maya.py.
I am not trying to use both layer systems. Just the new layer system in brand new 2016.5 scene.

Cheers,
F. 
Reply all
Reply to author
Forward
0 new messages