Controller's colour changed after added to the Layer. "editDisplayLayerMembers"

Controller's colour changed after added to the Layer. "editDisplayLayerMembers"

chusak_saetan
Contributor Contributor
1,985 Views
2 Replies
Message 1 of 3

Controller's colour changed after added to the Layer. "editDisplayLayerMembers"

chusak_saetan
Contributor
Contributor

Hi everyone, I'm facing some stupid issues and i couldn't solve it.

The problem is, My controllers are lost its colors After added to the Display layer by "editDisplayLayerMembers" command.

First there was a colourful controllers but after added to the layer it turn back to the Default curve's color.

 

-To add the objects to the layer i used this -> mc.editDisplayLayerMembers(GeoLayerName,meshes,noRecurse=True) 

-My layer didn't set any color options.

-I created the layer by this "mc.createDisplayLayer(name=GeoLayerName)".

-To change controller's colors i used "setAttr .overrideColor".

- The object's type i added to the layer is "nurbsCurve","mesh". Gathered through mc.ls command.

 

*After messing around with the controller i found that the cause of color lost is, The controllers lost its "override color attribute". Before added to the Display layer the controller was set On to "Override Enable" and "Override Color",

 

Right after add the controller to the layer "Override Color" automatically change back to its default setting and couldn't change due to the "The attribute is locked or connected can't be modified" error.

0 Likes
Accepted solutions (1)
1,986 Views
2 Replies
Replies (2)
Message 2 of 3

mspeer
Consultant
Consultant
Accepted solution

Hi!

The Display Layer overrides the local override of the transform node.

Just apply the override to the shape node.

0 Likes
Message 3 of 3

chusak_saetan
Contributor
Contributor

This explain a lot to me. Never thought about what display layer did to the Objects. poor me. 

 

Anyway, after fixing this problem there is a another problem that all of my controller was create from the Script so i've to fix it all manual XD. Thanks you for the reply you save my world 🙂

0 Likes