Skip to content
Snippets Groups Projects
Commit c7232394 authored by Daniel Salazar's avatar Daniel Salazar
Browse files

AnimAll: Users got a bit confused on how to use Shape animation. This should help

parent 9e2c0ef6
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment