Be sure and import into a namespace instead of *. import pymel.core as pm And you can get a list of selected in pymel with pm.selected() As for the slow update of the AE, not sure.
On Saturday, July 23, 2016, Morten Bøhne <[email protected]> wrote: > this seems to work for me (only tested it in 2015: > > from pymel.core import * > mesh = ls(sl=True)[0] > # change displayColorChannel to none > mesh.displayColorChannel.set('None') > > > your options are: > 'None' > 'Ambient' > 'Ambient+Diffuse' > 'Specular' > 'Emission' > > The attribute Editor doesn't seem to update the value right away, not sure > why :\ > > On Wednesday, July 20, 2016 at 10:19:37 PM UTC+2, [email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');> wrote: >> >> hi! >> how change "display color channel" parametr? >> http://s6.uplod.ir/i/00802/v6pded3ug2um.jpg >> >> -- > 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] > <javascript:_e(%7B%7D,'cvml','python_inside_maya%[email protected]');> > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/4d2e87bb-47d3-4dc0-8c73-1b4e05557208%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/4d2e87bb-47d3-4dc0-8c73-1b4e05557208%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CABPXW4jCnujatcP6dd%3DNVgykn95Un0Fiuk-BrwQoUCOSOXc8Ug%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
