Notifications
Clear all
[Closed] Scripting color of object
Mar 31, 2008 2: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…
1 Reply
Mar 31, 2008 2:05 pm
Use the property wirecolor of the object. For example:
$box01.wirecolor=red
or
$box01.wirecolor=(color 255 0 0)