Page MenuHome

Creates an Empty object based on 'sphere fit' of selected vertices.
Closed, ArchivedPublicPATCH

Description

Project: Blender Extensions
Tracker: Py Scripts Upload
Blender: 2.57
Category: Object
Python: 3.2
Script name: add_joint_object.py
Author(s): Terry Stafford
Status: Closed

Features:

The script does a 'sphere fit' on the selected vertices.
Using a 'sphere fit', an Empty is created at the center of the sphere with size of sphere radius.
If the mesh object has animation data the joint object is animated using the vertices of the transformed mesh.
If the mesh object data has animated shapekeys the object is animated using the vertices of the shapekeys.

This script adds a joint object to a Blender scene.
Joint objects are used in Blender for the automated building of armatures.
The add_joint_object.py script is part of a workflow to build armatures.
The other script in the workflow is the build_armature_from_joints.py script.
After all joint objects are created from the mesh object,
the build_armature_from_joints.py script builds an armature from the joint object names and location(s).

Setup:

Uncompress this file to any location.
Start Blender.
From User Preferences-->Add-Ons-->Install Add-On
Pick add_joint_object.py from previous location.
Select Object filter to see add-ons in the Object category.
Check the box by Object:Add Joint Object.

Check for Add-->Mesh-->Joint_Object from menu.

Manual:

Pick any mesh object. Select desired vertices.
Choose Add-->Mesh-->Joint_Object from menu.
Enter name for joint object in popup dialog and press OK.

See enclosed add_joint_object.pdf for more details.

Event Timeline

Hi,
Just a Reminder for people to Join the Mail List.
If you have not already, please visit this page:
http://lists.blender.org/mailman/listinfo/bf-extensions-cvs
& join the list.

this would be an extreamly usful script especially with parenting and rigging, however there is problems when using shapekeys

Traceback (most recent call last):
File "C:\Users\mfoxdogg\AppData\Roaming\Blender Foundation\Blender\2.59\scripts\addons\add_joint_object.py", line 364, in execute
if generate_joint(self.joint_name_input) == False:
File "C:\Users\mfoxdogg\AppData\Roaming\Blender Foundation\Blender\2.59\scripts\addons\add_joint_object.py", line 290, in generate_joint
coordinate_list.append(mesh.shape_keys.key_blocks[i].data[index].co)
IndexError: bpy_prop_collection[index]: index 2 out of range, size 2

once this is fixed i recommend it for contrib


Hi,
Due to changes to the api including the merging of bmesh, several addons are outdated.
Please, if you are the author of an addon check your script with blender revision 44256 or newer.
That is builds made After blender 2.62 official release.
I would ask that updates be made to your addon before the Blender 2.63 release.
6-8 weeks away.
This allows time for the api to become more exposed & bmesh to stablize furthur.
If you need help, drop into irc freenode #blenderpython or #blendercoders & feel welcome to ask questions.
At the time of 2.63 release, scripts that are not repaired or in active developement will have their tracker page marked "Closed"
this will not affect your links to the tracker, similar to closing scripts in 2.49b, the page will be still availible & can be re-opened.

Thanks for your understanding & patience during these Exciting Times.
Brendon.

hi
closing this page & will merge page with your companion addon
http://projects.blender.org/tracker/index.php?func=detail&aid=27605

Brendon Murphy (meta-androcto) changed the task status from Unknown Status to Unknown Status.Apr 16 2012, 1:15 PM