Page MenuHome

2 small features. Added the ability to change the color of the wireframe per object. And added Random Bone coloring for bones.
Closed, ArchivedPublicPATCH

Description

1st feature. Added a color property to objects. If it is black then it uses the default wireframe color set in the Preferences. This also colors the wireframe in shaded mode if you turn on the per object wire option.

2nd feature. Unable to add a color property to Edit Bones. When I did it the same way as above, it kept crashing the build. So I added a 4 float property, which works just fine but you don't get the cool color wheel in the UI. This lets you set the color for the Edit Bones. If you extrude the bones they get colored randomly from a list of 6 colors. This can be expanded on. I did not spend a lot of time on this. I'm not even sure what colors work best for bones. I didn't want to make the R, G, and B random because a lot of the colors that get created are unreadable. Only the EditBones show up colored if you leave edit mode. They all become one color dictated by the Armature color. If you go back to Edit Mode the colors remain intact.

I hope this is useful to someone. It seemed useful to me. I can see how adding a color per Layer would also be useful.

Event Timeline

I forgot to add that this is for 2.5 in Trunk. I am maybe 2 weeks behind I would guess.

Here is the same patch as before with a fix. The bug revealed itself when I was using the Maya presets, I would select away from the model and it would not draw the wireframe with the right color.

Sorry one more to go. I forgot to add random color generation for the add command in edit mode for an armature.

Man I'm lame. I have another one coming. I'll add it here soon. :)

Use the ObjectWireframeColor4.patch. I made sure that I covered all the bone styles. I wanted to do something with Pose mode, but it looks like Pose mode uses color already for something else. I will try and learn more about it.

Don't use this patch I have expanded on it. If you are interested I put up a web page describing the changes I made to my local Blender. https://home.comcast.net/~antony.jones/index.html.

my email is antony.jones@comcast.net

Bastien Montagne (mont29) changed the task status from Unknown Status to Unknown Status.Aug 4 2014, 3:22 PM
Bastien Montagne (mont29) claimed this task.

Archiving…