diff --git a/animation_animall.py b/animation_animall.py index fc9001ca8586e12c530dd9dc98a386e215840c56..fe970bc45c71e828f4967718e7e3ae6877ab64ae 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):