2
$\begingroup$

I've run into a strange project where I have to build multiple spline IKs' for a less-than-optimally posed mesh. An edges-to-bones addon or script would be ideal if such a thing exists.

I'm familiar with the basics of python in Blender but haven't gone deep enough to do it myself. How easy would it be to write a (hopefully short) script that would do something like this?

$\endgroup$
3
$\begingroup$

I expect the skin modifier can a create the armature that you are after.

If you only want a rig for a portion of your mesh, duplicate the mesh an delete the excess parts.

Add a skin modifier. You may want to use Mark Root in edit mode with one vertex selected at the end of your mesh, this can prevent extra bones and keep the bones facing in the same direction.

Click the Create Armature button in the skin modifier.

skin modifier

You can then delete the skin modifier, or the duplicate mesh if you duplicated it to start with and you are left with an armature matching the edges of your mesh. The new armature has the display set to stick which you can change to octahedral in the armature settings.

new armature

$\endgroup$
  • $\begingroup$ Wow, I completely forgot about this. Thank you sambler! $\endgroup$ – allen Oct 12 '17 at 10:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.