[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1522] trunk/py/scripts/addons/ animation_animall.py: AnimAll: Users got a bit confused on how to use Shape animation.

Daniel Salazar zanqdo at gmail.com
Sun Jan 30 01:56:13 CET 2011


Revision: 1522
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1522
Author:   zanqdo
Date:     2011-01-30 00:56:12 +0000 (Sun, 30 Jan 2011)
Log Message:
-----------
AnimAll: Users got a bit confused on how to use Shape animation. This should help

Modified Paths:
--------------
    trunk/py/scripts/addons/animation_animall.py

Modified: trunk/py/scripts/addons/animation_animall.py
===================================================================
--- trunk/py/scripts/addons/animation_animall.py	2011-01-29 12:29:42 UTC (rev 1521)
+++ trunk/py/scripts/addons/animation_animall.py	2011-01-30 00:56:12 UTC (rev 1522)
@@ -88,6 +88,9 @@
     
     # draw the gui
     def draw(self, context):
+        
+        Obj = context.active_object
+        
         layout = self.layout
         
         col = layout.column(align=True)
@@ -106,6 +109,20 @@
         row.operator('anim.delete_keyframe_animall', icon='KEY_DEHLT')
         row = layout.row()
         row.operator('anim.clear_animation_animall', icon='X')
+        
+        if context.window_manager.key_shape:
+            
+            ShapeKey = Obj.active_shape_key
+            
+            split = layout.split()
+            row = split.row()
+            
+            if ShapeKey:
+                row.label(ShapeKey.name, icon='SHAPEKEY_DATA')
+                row.prop(ShapeKey, "value", text="")
+                row.prop(Obj, "show_only_shape_key", text="")
+            else:
+                row.label('No active ShapeKey', icon='INFO')
 
 
 class ANIM_OT_insert_keyframe_animall(bpy.types.Operator):



More information about the Bf-extensions-cvs mailing list