PDA

View Full Version : Scripting color of object


Mattrne
03-31-2008, 02:05 PM
Does anyone know if its possible to get a script to define the color assigned to an object (not material color but the actual color of the swatch next to the object name)?

I have a setup with some constraints on objects which get activated or deactivated and I want to change the color of the corresponding objects based on if the constraints are active or not...

phoelix
03-31-2008, 02:26 PM
Use the property wirecolor of the object. For example:

$box01.wirecolor=red

or

$box01.wirecolor=(color 255 0 0)

CGTalk Moderation
03-31-2008, 02:26 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.