I'm writing a script that will change the color of objects that are linked to a selected light. I've got it working, but it seems that if an object belongs to a layer, the layer's color overrides the wireframe color that I assign to it.
Does anybody know how to get around this? I hesistate to do any special attribute-adding and layer shuffling due to the speed hit, but I will if I have to...
My guess is this isn't going to be easy. When you add an object to a layer Maya locks the overrideEnabled attr and has the layer manage the Drawing Overrides.
You could try unlocking the attr and changing the color, but I have a feeling Maya isn't going to be to happy about it.
Hmm... just a thought, but you could change the layer color to be "none" and then change the colors on all objects in the layer. (not a great solution)