From c7232394ddfbe17c244940bc40c0b5db2695ac31 Mon Sep 17 00:00:00 2001 From: Daniel Salazar <zanqdo@gmail.com> Date: Sun, 30 Jan 2011 00:56:12 +0000 Subject: [PATCH] AnimAll: Users got a bit confused on how to use Shape animation. This should help --- animation_animall.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/animation_animall.py b/animation_animall.py index fc9001ca8..fe970bc45 100644 --- a/animation_animall.py +++ b/animation_animall.py @@ -88,6 +88,9 @@ class VIEW3D_PT_animall(bpy.types.Panel): # draw the gui def draw(self, context): + + Obj = context.active_object + layout = self.layout col = layout.column(align=True) @@ -106,6 +109,20 @@ class VIEW3D_PT_animall(bpy.types.Panel): 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): -- GitLab