Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
e76cef72
Commit
e76cef72
authored
14 years ago
by
Daniel Salazar
Browse files
Options
Downloads
Patches
Plain Diff
Option to clear all animation
parent
ab53d506
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
animation_rotobezier.py
+23
-0
23 additions, 0 deletions
animation_rotobezier.py
with
23 additions
and
0 deletions
animation_rotobezier.py
+
23
−
0
View file @
e76cef72
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment