Hi Johan,

getLayerSelection "Display" is the MEL command you need

Regards

-Dave

On Wed, Sep 30, 2020 at 7:45 AM johan Borgström <jo...@petfactory.se> wrote:

> Hi,
> I am trying to get the selected display layer.
> I know you can get the display layers with:
>
> *pm.ls <http://pm.ls>(type='displayLayer')*
>
> But that just returns a list of the available layers. As far as I could
> see there were no attribute on the returned layers to hold info whether
> they were "selected" or not. So I am guessing I need to get that info from
> the "layer editor itself".
>
> Should be quite straightforward, but I havent found any good docs on how
> to do this, any tips?
>
> Cheers, Johan
>
> --
> 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 python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/7a508a51-5b35-48bc-9934-7e59314a6a0an%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/7a508a51-5b35-48bc-9934-7e59314a6a0an%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
*David Moulder*
Technical Animator / Artist
squis...@gmail.com
*Professional Profile <http://uk.linkedin.com/pub/david-moulder/1/b12/b5a>*

Mobile: +44 (0)7814033242
See who we know in common
<http://www.linkedin.com/e/wwk/5748982/?hs=false&tok=3tztwkse1silw1> Want a
signature like this?
<http://www.linkedin.com/e/sig/5748982/?hs=false&tok=3pwLU9-mBsilw1>

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CABD4PkSYSS%3DPr1_ArSsWAsHtETZ8gUTOYB_P16ym%3DsggFC%2BVbw%40mail.gmail.com.

Reply via email to