[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1277] contrib/py/scripts/addons/ animation_add_corrective_shape_key.py: Maintenance - making sure to use latest file version (first commit)
Ivo Grigull
Monkeyloo at gmx.net
Tue Dec 14 20:43:05 CET 2010
Revision: 1277
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=1277
Author: loolarge
Date: 2010-12-14 20:43:05 +0100 (Tue, 14 Dec 2010)
Log Message:
-----------
Maintenance - making sure to use latest file version (first commit)
Modified Paths:
--------------
contrib/py/scripts/addons/animation_add_corrective_shape_key.py
Modified: contrib/py/scripts/addons/animation_add_corrective_shape_key.py
===================================================================
--- contrib/py/scripts/addons/animation_add_corrective_shape_key.py 2010-12-14 18:32:05 UTC (rev 1276)
+++ contrib/py/scripts/addons/animation_add_corrective_shape_key.py 2010-12-14 19:43:05 UTC (rev 1277)
@@ -19,7 +19,7 @@
bl_addon_info = {
'name': 'Corrective shape keys',
'author': 'Ivo Grigull (loolarge), Tal Trachtman',
- 'version': (1, 0)
+ 'version': (1, 0),
'blender': (2, 5, 5),
'location': 'Object Data > Shape Keys (Search: corrective) ',
'description': 'Creates a corrective shape key for the current pose',
@@ -58,7 +58,7 @@
def reset_transform(ob):
m = mathutils.Matrix()
- ob.matrix_local = m
+ ob.matrix_local = m
# flips rotation matrix
def flip_matrix_direction(m):
@@ -217,9 +217,7 @@
class add_corrective_pose_shape(bpy.types.Operator):
- '''Adds first object as shape to second object for the current pose while
- maintaining modifiers (i.e. anisculpt, avoiding crazy space).
- Beware of slowness!!!'''
+ '''Adds first object as shape to second object for the current pose while maintaining modifiers (i.e. anisculpt, avoiding crazy space) Beware of slowness!!!'''
bl_idname = "object.add_corrective_pose_shape"
bl_label = "Add object as corrective pose shape"
@@ -326,7 +324,7 @@
psdMeshVert = psdMesh[index]
listOfBoneNameWeightPairs = []
- for n in mesh.vertices[index].groups:
+ for n in mesh.vertices[index].groups:
try:
name = meshObToUnposeWeightSrc.vertex_groups[n.group].name
weight = n.weight
@@ -482,14 +480,8 @@
def vgroups_draw(self, context):
layout = self.layout
- layout.row().operator(
- "object.add_corrective_pose_shape_fast",
- text='Add as corrective pose-shape (fast, armatures only)',
- icon='COPY_ID') # icon is not ideal
- layout.row().operator(
- "object.add_corrective_pose_shape",
- text='Add as corrective pose-shape (slow, all modifiers)',
- icon='COPY_ID') # icon is not ideal
+ layout.row().operator("object.add_corrective_pose_shape_fast", text='Add as corrective pose-shape (fast, armatures only)', icon='COPY_ID') # icon is not ideal
+ layout.row().operator("object.add_corrective_pose_shape", text='Add as corrective pose-shape (slow, all modifiers)', icon='COPY_ID') # icon is not ideal
def modifiers_draw(self, context):
layout = self.layout
@@ -498,14 +490,8 @@
def register():
- #~ bpy.types.register(add_corrective_pose_shape)
- #~ bpy.types.register(add_corrective_pose_shape_fast)
- #~ bpy.types.register(object_duplicate_flatten_modifiers)
bpy.types.MESH_MT_shape_key_specials.append( vgroups_draw )
bpy.types.DATA_PT_modifiers.append( modifiers_draw )
def unregister():
pass
- #~ bpy.types.unregister(add_corrective_pose_shape)
- #~ bpy.types.unregister(add_corrective_pose_shape_fast)
- #~ bpy.types.unregister(object_duplicate_flatten_modifiers)
More information about the Bf-extensions-cvs
mailing list