Transfer shader assignments from a render layer to masterLayer

Transfer shader assignments from a render layer to masterLayer

Anonymous
Not applicable
1,334 Views
3 Replies
Message 1 of 4

Transfer shader assignments from a render layer to masterLayer

Anonymous
Not applicable

Does anyone know of a script that would transfer the shader assignments from a render layer and apply them in the masterLayer?  I'm using Maya 2016 and V-Ray on Windows 10.

 

I have a scene in which all the look dev shading was done in a render layer named "beauty" but we want all those shaders to be assigned in the masterLayer.

 

 

Thanks,

-Brian

 

0 Likes
1,335 Views
3 Replies
Replies (3)
Message 2 of 4

faline.custodio.da.silva
Alumni
Alumni

@Anonymous

 

Are you referring to Render Setup or legacy render layers?

 

You may have to create a mel script for this one..but I will look into this more

 

You can turn on Echo All Commands in the script editor to see the MEL commands used when interacting with the UI. So you can translate a series of commands to a script easily enough.

 

echo all commands maya.jpg

 


Faline Custodio Da Silva

0 Likes
Message 3 of 4

Anonymous
Not applicable

Using Maya 2016, so legacy render layers.  I'm not a scripter so I was just pinging the list to see if there was an existing script someone knew about.  It was not a huge scene so I've already re-assigned shaders manually.

 

Thanks for the reply.

0 Likes
Message 4 of 4

timdan
Advocate
Advocate

Hey @bkirchdoerfer,

 

You don't have to be a scripter. The Echo All Commands feature just populates whatever script is being called when you click a button or perform pretty much any action in Maya. This way, you can copy that command to the bottom pane and save it to a button to be used with a single click. I've copied multiple commands to a single button, so I can with one button setup all my render settings for certain projects. Just a basic understanding of the scripting editor - not necessarily scripting - is what you need:

 

https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/Maya/fil...

+ timdan

-
http://www.timdan.com
0 Likes