Hi guys,
i'm tryng to get the renderer used by each renderLayer, there's something that i don't understand.
normally without renderLayers the command is simple:
cmds.getAttr('defaultRenderGlobals.currentRenderer')
My wrong logic said: "ok, just get each renderLayer and get the currentRenderer"
so:
import sys
import maya.cmds as cmds
import maya.mel as mel
render_layers =
cmds.ls(type = 'renderLayer')
for rl in render_layers:
print cmds.getAttr('%s.currentRenderer' % rl)
But is not the way apparently...
So the question is: how i can get for each renderLayer the current render engine ?
Thanks in advance
Leo
