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
e19ddc11
Commit
e19ddc11
authored
14 years ago
by
Daniel Salazar
Browse files
Options
Downloads
Patches
Plain Diff
Request by Gez, adding pass index to rotobezier
parent
abe211e6
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
+12
-11
12 additions, 11 deletions
animation_rotobezier.py
with
12 additions
and
11 deletions
animation_rotobezier.py
+
12
−
11
View file @
e19ddc11
...
...
@@ -25,12 +25,13 @@ Rev 0.1 initial release
Rev 0.2 new make matte object tools and convenient display toggles
Rev 0.3 tool to clear all animation from the curve
Rev 0.4 moved from curve properties to toolbar
Rev 0.5 added pass index property
-------------------------------------------------------------------------
'''
bl_addon_info
=
{
'
name
'
:
'
RotoBezier
'
,
'
author
'
:
'
Daniel Salazar <zanqdo@gmail.com>
'
,
'
version
'
:
(
0
,
4
),
'
version
'
:
(
0
,
5
),
'
blender
'
:
(
2
,
5
,
5
),
'
api
'
:
33232
,
'
location
'
:
'
Select a Curve > Properties > Curve > RotoBezier
'
,
...
...
@@ -55,7 +56,7 @@ class VIEW3D_PT_rotobezier(bpy.types.Panel):
# show this add-on only in the Camera-Data-Panel
@classmethod
def
poll
(
self
,
context
):
if
bpy
.
context
.
active_object
:
if
context
.
active_object
:
return
context
.
active_object
.
type
==
'
CURVE
'
# draw the gui
...
...
@@ -63,23 +64,26 @@ class VIEW3D_PT_rotobezier(bpy.types.Panel):
layout
=
self
.
layout
row
=
layout
.
row
()
row
.
label
(
text
=
"
Keyframing
:
"
)
row
.
label
(
text
=
"
Keyframing
"
)
row
=
layout
.
row
()
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
.
label
(
text
=
"
Display
"
)
row
=
layout
.
row
()
row
.
operator
(
'
curve.toggle_draw_rotobezier
'
)
if
context
.
mode
==
'
EDIT_CURVE
'
:
row
.
operator
(
'
curve.toggle_handles_rotobezier
'
)
row
=
layout
.
row
()
row
.
label
(
text
=
"
Tools
:
"
)
row
.
label
(
text
=
"
Tools
"
)
row
=
layout
.
row
()
row
.
operator
(
'
curve.make_white_matte_rotobezier
'
)
row
.
operator
(
'
curve.make_black_matte_rotobezier
'
)
row
=
layout
.
row
()
ob
=
context
.
active_object
row
.
prop
(
ob
,
"
pass_index
"
)
class
CURVE_OT_insert_keyframe_rotobezier
(
bpy
.
types
.
Operator
):
...
...
@@ -97,8 +101,7 @@ class CURVE_OT_insert_keyframe_rotobezier(bpy.types.Operator):
def
execute
(
op
,
context
):
import
bpy
Obj
=
context
.
active_object
...
...
@@ -119,7 +122,7 @@ class CURVE_OT_insert_keyframe_rotobezier(bpy.types.Operator):
bpy
.
ops
.
object
.
editmode_toggle
()
return
{
'
FINISHED
'
}
return
{
'
FINISHED
'
}
class
CURVE_OT_delete_keyframe_rotobezier
(
bpy
.
types
.
Operator
):
...
...
@@ -137,8 +140,6 @@ class CURVE_OT_delete_keyframe_rotobezier(bpy.types.Operator):
def
execute
(
op
,
context
):
import
bpy
Obj
=
context
.
active_object
...
...
@@ -158,9 +159,9 @@ class CURVE_OT_delete_keyframe_rotobezier(bpy.types.Operator):
if
Mode
:
bpy
.
ops
.
object
.
editmode_toggle
()
return
{
'
FINISHED
'
}
class
CURVE_OT_clear_animation_rotobezier
(
bpy
.
types
.
Operator
):
bl_label
=
'
Clear Animation
'
bl_idname
=
'
curve.clear_animation_rotobezier
'
...
...
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