Skip to content

Commit

Permalink
Option to clear all animation
Browse files Browse the repository at this point in the history
  • Loading branch information
ZanQdo committed Nov 21, 2010
1 parent ab53d50 commit e76cef7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions animation_rotobezier.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ def draw(self, context):
row.operator('curve.insert_keyframe_rotobezier')
row.operator('curve.delete_keyframe_rotobezier')
row = layout.row()
row.operator('curve.clear_animation_rotobezier')
row = layout.row()
row.label(text="Display:")
row = layout.row()
row.operator('curve.toggle_draw_rotobezier')
Expand Down Expand Up @@ -156,6 +158,27 @@ def main_func(op, context):

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
def MakeMatte (Type):
Expand Down

0 comments on commit e76cef7

Please sign in to comment.