PDA

View Full Version : Querying render layer material overrides


Keithtron
06-06-2008, 08:00 PM
Hi everyone,

I'm writing some MEL code to sync up optimized versions of renderable scenes, and I need to query the render layers to find out whether or not each of them has an overall material override, and if so, with what material. The editRenderLayerAdjustment command only returns changes to objects and such, not material overrides to the overall layer. Do any of you know how to retrieve that info?

Thanks in advance for any help!

nkls
06-09-2008, 07:53 AM
you could use the following command, and check if it returns empty or not...

listConnections myLayer.shadingGroupOverride

Keithtron
06-11-2008, 07:00 PM
Thanks for the input. I ended up using connectionInfo as that was extra easy, but your suggestion helped to point me in the right direction.

CGTalk Moderation
06-11-2008, 07:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.