[#10223] a new object function to add vertex group from an armature

Patch from Jean-Michel Soler (with slight modifs)

Small BPy feature to help script writers deal with armatures and vertex groups (calls the bone heat method to create and assign groups)
This commit is contained in:
2008-05-27 20:02:38 +00:00
parent 83a7fbf499
commit c1874b3cee
2 changed files with 46 additions and 0 deletions

View File

@@ -651,6 +651,13 @@ class Object:
Link a new particle system (see Blender.Particle).
"""
def addVertexGroupsFromArmature(object):
"""
Add vertex groups from armature using the bone heat method
This method can be only used with an Object of the type Mesh when NOT in edit mode.
@type object: a bpy armature
"""
def buildParts():
"""
Recomputes the particle system. This method only applies to an Object of