[Bf-blender-cvs] CVS commit: blender/release/scripts/bpymodules BPyMesh.py blender/release/scripts mesh_cleanup.py

Campbell Barton cbarton at metavr.com
Wed Apr 5 20:54:38 CEST 2006


campbellbarton (Campbell Barton) 2006/04/05 20:54:38 CEST

  Modified files:
    blender/release/scripts mesh_cleanup.py 
  Added files:
    blender/release/scripts/bpymodules BPyMesh.py 
  
  Log:
  Added BPyMesh for mesh python mesh functions.
  at the moment it only has meshWeight2Dict and dict2MeshWeight
    These allow you to deal with vertex weights as a list of dicts which makes scrips short and easy to understand.
     (kh_python, perhaps dict access to the python verts could replace this )
  
  Used the above util functions to update mesh_cleanup.
  Copied from the source
  
  	'Material Clean', 'Remove unused materials.'
  	'VGroups'
  	'Group Clean', 'Remove vertex groups that have no verts using them.'
  	'Weight Clean', 'Remove zero weighted verts from groups (limit is zero threshold).'
  	'Weight Normalize', 'Make the sum total of vertex weights accross vgroups 1.0 for each vertex.'
  
  Normalizing lets you see how much % of the vertex a bone owns just by looking at 1 of the bone weights.
  
  Would be nice to have this functionality in Blender but theres not much room for new buttons in teh vgroup and material area :/
  
  Revision  Changes    Path
  1.2       +158 -54   blender/release/scripts/mesh_cleanup.py
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/release/scripts/mesh_cleanup.py.diff?r1=1.1&r2=1.2&cvsroot=bf-blender>



More information about the Bf-blender-cvs mailing list