The code is working great, thank you very much!

El viernes, 2 de septiembre de 2022 a las 18:34:39 UTC-3, Tenghao Wang 
escribió:

> import maya.cmds as mc
> import maya.mel as mm
>
> # select
> mm.eval('animLayerEditorOnSelect %s 1' % 'layerName')
> # deselect
> mm.eval('animLayerEditorOnSelect %s 0' % 'layerName')
>
> On Fri, Sep 2, 2022 at 1:50 PM Darwin Giordano <dg3...@gmail.com> wrote:
>
>> I create a layer and add the selected object then the layer is selected 
>> and finally I don't know how to activate the green color of the layer icon.
>> Any clue how to activate the green color icon of the selected layer?
>>
>> [image: green icon.gif] 
>>
>> -- 
>> 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_m...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/4ef28aa4-2404-4483-9b16-e6f189b67214n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/python_inside_maya/4ef28aa4-2404-4483-9b16-e6f189b67214n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/ede0c170-bc5d-4e6f-a94d-be1405510256n%40googlegroups.com.

Reply via email to