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

Option to clear all animation

parent ab53d506
No related branches found
No related tags found
No related merge requests found
...@@ -65,6 +65,8 @@ class OBJECT_PT_rotobezier(bpy.types.Panel): ...@@ -65,6 +65,8 @@ class OBJECT_PT_rotobezier(bpy.types.Panel):
row.operator('curve.insert_keyframe_rotobezier') row.operator('curve.insert_keyframe_rotobezier')
row.operator('curve.delete_keyframe_rotobezier') row.operator('curve.delete_keyframe_rotobezier')
row = layout.row() row = layout.row()
row.operator('curve.clear_animation_rotobezier')
row = layout.row()
row.label(text="Display:") row.label(text="Display:")
row = layout.row() row = layout.row()
row.operator('curve.toggle_draw_rotobezier') row.operator('curve.toggle_draw_rotobezier')
...@@ -156,6 +158,27 @@ class CURVE_OT_delete_keyframe_rotobezier(bpy.types.Operator): ...@@ -156,6 +158,27 @@ class CURVE_OT_delete_keyframe_rotobezier(bpy.types.Operator):
return {'FINISHED'} return {'FINISHED'}
class CURVE_OT_clear_animation_rotobezier(bpy.types.Operator):
bl_label = 'Clear Animation'
bl_idname = 'curve.clear_animation_rotobezier'
bl_description = 'Clear all animation from the curve'
bl_options = {'REGISTER', 'UNDO'}
# on mouse up:
def invoke(self, context, event):
self.main_func(context)
return {'FINISHED'}
def main_func(op, context):
Data = context.active_object.data
Data.animation_data_clear()
return {'FINISHED'}
# Matte Material Assignment Func # Matte Material Assignment Func
def MakeMatte (Type): def MakeMatte (Type):
......
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