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

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAGw4rjs5ffenW86cjOckusmZk7WPvk2mF9XNZSqsuApsHEuC9w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to