I’m away from the computer running Maya, so take these with a grain of salt.
There are two controls you need to set. The first is the override enabled and the second is the color. If your object is in a layer, the shape and the transform’s Drawing Overrides (the group containing both these attributes as well as override visibility and such) is connected to the Layer. This locks all those attributes unless you create some other attribute to drive them. Not real useful.
In general, I want the Layer overrides for visibility, templatization, etc, but want to choose colors specifically. So, instead of adding an object to the Layer, which adds the connection I don’t want, I simply connect up the attributes on the layer that I want directly, rather than the uber-Drawing Overrides. You can do this manually with the connection editor, but it’s a bit tedious with lots of controls. It’s pretty easy to write a MEL script to do it, though, using a simple loop.
Here’s a little trick I’ve used to do it with minimal code writing of my own.
- Open the Connection Editor with the Layer in the left and the first object in the right.
- Clear the Script Editor History.
- Connect the attributes you wish from the layer to the object. Each time you do this, you’ll get a ‘connectAttr’ command in the SE history.
- Once done, Copy all the SE history to the clipboard
- Write the code:
ls -sl -fl):
// pasted code goes here
- Modify the pasted code, replacing the name of the first object with ‘($i’ and add a ) at the end of each line prior to the semicolon. It’ll be something like this:
connectAttr Layer.XXX Object.YYY;
connectAttr Layer.XXX ($i.YYY);
for each line.
Select all the items you wish to link
Execute the command in the SE.
If all goes well (and I haven’t forgotten anything) you’ll find a bunch of connections connecting each item to the layer. The layer’s controls will override those things so you can make all your controls invisible, for example, but not the others, which you can control manually.
Ok, that’s a lot, and it’s all from memory. It’s much easier to do than explain. Let me know if you need any more help/clarification.