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/f959a043-5d3e-4808-83be-4e507e6cc727%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to