d'oh, I forgot the : import pymel.core as pm
part... ;) On Thursday, January 8, 2015 11:04:29 AM UTC-8, AK Eric wrote: > > Optionally you can cut out a lot of cruft using PyMel: > > def redWireColour(): > sel = pm.ls(selection=True) > for item in sel: > item.overrideEnabled.set(1) > item.overrideColor.set(4) > > One of the nice things it does is, if it can't find an attr on the > transform, it'll auto look to the shape. > -- 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/a4dc6a8c-9290-4ba8-b4d4-5ed8827878cf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
