AREA forums upgrade
Read more about the planned upgrade of our forums
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Lighting - Rendering / Render Layer material override chaos
IMPORTANT ANNOUNCEMENT ABOUT AREA FORUMS
  RSS 2.0 ATOM  

Render Layer material override chaos
Rate this thread
 
59087
 
Permlink of this thread  
avatar
  • rooftop
  • Posted: 16 August 2011 03:25 AM
  • Total Posts: 138
  • Joined: 11 February 2008 06:43 PM

Hello,

I’ve run into a problem where assigning material overrides in render layers to referenced files, fails, giving the error: “// Error: Unable to update render layer adjustment. //
// Error: Error while parsing arguments. //”

The referenced files do not have render layers.

I am able to make face level overrides, but even then I cannot just select all faces of the mesh, marquee or double clicking as it produces the same error.

The only work around I’ve discovered is selecting bits and pieces of the mesh and applying then material.

I’ve read a bit about this problem, which seems to have existed since Maya 2009.

Found some “fixes” here: http://mayastation.typepad.com/m...tching-render-layers.html, but the problem persists.

Has anyone else experienced these problems?  And have you found a solution?  And do you know if it’s been fixed in 2012?

Kind regards,
Ed



Replies: 0
avatar
  • rooftop
  • Posted: 19 August 2011 01:05 AM

Does anyone have a quick fix for this problem?

Found this thread: http://forums.cgsociety.org/showthread.php?f=87&t=588503&page=2&pp=15 But it all seems like such a lengthy process.

As it is, I’m having to spend 10 times as much time to get things done.

There’s this pay for script at http://www.creativecrash.com/may...misc/c/abxrenderlayers--2

Does anyone know if it works?



Replies: 0
avatar
  • rooftop
  • Posted: 19 August 2011 01:50 AM

So I seem to have found a rough solution on that CGSociety thread. 

Remove material overrides from the various render layers.

Look up the shape node for your mesh in the Hypergraph: Connections, delete all connections from the shape node to the Shading Engine Nodes(SG Nodes).

Apply your material to the mesh in the master layer, then make face level material assignments in the render layers.

It’s probably not the best fix, but was quick enough for me.  Faster than the last 3 hours I spent trying to assign materials to sometimes, individual faces.

Have Render Layers really been in Maya since v7 :/



Replies: 1
/img/forum/light/default_avatar.png

Thanks for posting this experience and solution.  I encountered the same problem.  Unfortunately, this solution didn’t work :(.
In this case I only had one additional render layer (and the object in question wasn’t in it), so I deleted it and then was able to assign materials on a face-level.  An alternative to try would be to paste the obj into a new doc and make changes there, then paste back.

Author: PixelDroid

Replied: 23 July 2012 08:18 AM  
avatar
  • joelgvfx
  • Posted: 25 October 2012 12:09 PM

I believe I have found a fix to this issue. (at least it worked for my scene).
I found that if I selected large amounts of geo in my scene simultaneously, or selected all objects with a certain material then I would get this error. However, if I selected one piece of geo and assign my shader to it, it works fine.
Therefore my fix is to write a loop script which reassigns the initial shading group to all selected geo, one object at a time. This seems to fix the bug, allowing me to then assign new overrides as required.

string $sel[] = `ls -sl`;
for (
$each in $sel){
    sets 
--forceElement initialShadingGroup $each;
}

I know this is an older post, but I still occasionally get this bug. I hope this fix works for you!

cheers



Replies: 0