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
d4fcda59
Commit
d4fcda59
authored
3 years ago
by
Damien Picard
Browse files
Options
Downloads
Patches
Plain Diff
Fix T94846: AnimAll does not keyframe bezier curve handle type
Add option to export Bezier curves' left and right handle types
parent
30129110
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
animation_animall.py
+14
-0
14 additions, 0 deletions
animation_animall.py
with
14 additions
and
0 deletions
animation_animall.py
+
14
−
0
View file @
d4fcda59
...
...
@@ -93,6 +93,11 @@ class AnimallProperties(bpy.types.PropertyGroup):
description
=
"
Insert keyframes on point locations
"
,
default
=
False
)
key_handle_type
:
BoolProperty
(
name
=
"
Handle Types
"
,
description
=
"
Insert keyframes on Bezier point types
"
,
default
=
False
)
key_radius
:
BoolProperty
(
name
=
"
Radius
"
,
description
=
"
Insert keyframes on point radius (Shrink/Fatten)
"
,
...
...
@@ -181,6 +186,8 @@ class VIEW3D_PT_animall(Panel):
row
=
col
.
row
()
row
.
prop
(
animall_properties
,
"
key_radius
"
)
row
.
prop
(
animall_properties
,
"
key_tilt
"
)
row
=
col
.
row
()
row
.
prop
(
animall_properties
,
"
key_handle_type
"
)
elif
obj
.
type
==
'
SURFACE
'
:
row
.
prop
(
animall_properties
,
"
key_points
"
)
...
...
@@ -271,6 +278,10 @@ class ANIM_OT_insert_keyframe_animall(Operator):
if
animall_properties
.
key_radius
:
insert_key
(
CV
,
'
radius
'
,
group
=
"
Spline %s CV %s
"
%
(
s_i
,
v_i
))
if
animall_properties
.
key_handle_type
:
insert_key
(
CV
,
'
handle_left_type
'
,
group
=
"
spline %s CV %s
"
%
(
s_i
,
v_i
))
insert_key
(
CV
,
'
handle_right_type
'
,
group
=
"
spline %s CV %s
"
%
(
s_i
,
v_i
))
if
animall_properties
.
key_tilt
:
insert_key
(
CV
,
'
tilt
'
,
group
=
"
Spline %s CV %s
"
%
(
s_i
,
v_i
))
...
...
@@ -468,6 +479,9 @@ class ANIM_OT_delete_keyframe_animall(Operator):
delete_key
(
CV
,
'
co
'
)
delete_key
(
CV
,
'
handle_left
'
)
delete_key
(
CV
,
'
handle_right
'
)
if
animall_properties
.
key_handle_type
:
delete_key
(
CV
,
'
handle_left_type
'
)
delete_key
(
CV
,
'
handle_right_type
'
)
if
animall_properties
.
key_radius
:
delete_key
(
CV
,
'
radius
'
)
if
animall_properties
.
key_tilt
:
...
...
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