Page 1 of 1

Question on Maya

Posted: Thu Oct 31, 2013 8:06 pm
by Ernesto
Is it possible to link layer states to cameras?
I mean that I would like to have for instance layer 1 on and layer 2 off for Camera_A, and layer 2 on and layer 1 off for Camera_B automatically?

Ernesto

Re: Question on Maya

Posted: Fri Nov 01, 2013 10:55 am
by Mihnea Balta
You can do that with layer overrides. First, set layer 1 to on and layer 2 to off. Then create a new layer containing all the objects in the scene. Right click the enable checkbox of each material layer and select "create layer override". Disable layer 1 and enable layer 2. Use Camera_A in the default render layer and Camera_B in the layer with the overrides. You can then select which render layer is active in the render settings.

Sometimes the "create layer override" option doesn't show up in the menu. This is a Maya issue, but there's a simple workaround: instead of doing it through the menu, you can run this command:
Code: Select all
editRenderLayerAdjustment "maxwellLayer1.enabled"
Make sure to replace "maxwellLayer1" with the name of the material layer you want to change. You can find that out by clicking the enable checkbox and looking in the script editor, where Maya will show the MEL command which corresponds to the enable/disable action, e.g. setAttr "maxwellLayer2.enabled" 1.

Re: Question on Maya

Posted: Fri Nov 01, 2013 6:30 pm
by Ernesto
That is great!!
Thanks Mihnea Balta!!