Hello md,

You can use:

import maya.cmds as cmds

x = cmds.editRenderLayerGlobals(query=True, currentRenderLayer=True)

It's odd that the command is called editRenderLayerGlobals....

Best,



On Fri, Jul 11, 2014 at 5:41 PM, md <[email protected]> wrote:

> I know how to get all my renderLayers using something like :
>
> x = cmds.ls(type='renderLayer')
>
> Is there a way to find out if a renderLayer is selected ?? Since the scene
> selections does not seem to change when a renderLayer is selected I am at a
> lost at how to grab the selected renderLayers.
>
> Thanks
>
> M
>
> --
> 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/12c2d6b3-cd90-44a2-889a-f7143eb1d25d%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/12c2d6b3-cd90-44a2-889a-f7143eb1d25d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Tony

-- 
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/CAJhmvsT%2Bb_gs0oVGe1TeLmvbCY9GUDPGkLmtm2rVEJxG-P4yjw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to