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
07330b17
Commit
07330b17
authored
12 years ago
by
Bastien Montagne
Browse files
Options
Downloads
Patches
Plain Diff
Shorten those stupid names, these are labels, not tooltips!
parent
05b9d083
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
mocap/__init__.py
+21
-22
21 additions, 22 deletions
mocap/__init__.py
with
21 additions
and
22 deletions
mocap/__init__.py
+
21
−
22
View file @
07330b17
...
...
@@ -433,7 +433,7 @@ class OBJECT_OT_RetargetButton(bpy.types.Operator):
# has an action for retargeting
"""
Retarget animation from selected armature to active armature
"""
bl_idname
=
"
mocap.retarget
"
bl_label
=
"
Retarget
active action from Performer to End-user
"
bl_label
=
"
Retarget
"
bl_options
=
{
'
REGISTER
'
,
'
UNDO
'
}
def
execute
(
self
,
context
):
...
...
@@ -471,7 +471,7 @@ class OBJECT_OT_SaveMappingButton(bpy.types.Operator):
#Operator for saving mapping to enduser armature
"""
Save mapping to active armature (for future retargets)
"""
bl_idname
=
"
mocap.savemapping
"
bl_label
=
"
Save
user generated mapping from Performer to End-user
"
bl_label
=
"
Save
Mapping
"
def
execute
(
self
,
context
):
enduser_obj
=
bpy
.
context
.
active_object
...
...
@@ -494,7 +494,7 @@ class OBJECT_OT_LoadMappingButton(bpy.types.Operator):
"""
Load saved mapping from active armature
"""
#Operator for loading mapping to enduser armature
bl_idname
=
"
mocap.loadmapping
"
bl_label
=
"
Load
user generated mapping from Performer to End-user
"
bl_label
=
"
Load
Mapping
"
def
execute
(
self
,
context
):
enduser_obj
=
bpy
.
context
.
active_object
...
...
@@ -517,7 +517,7 @@ class OBJECT_OT_SelectMapBoneButton(bpy.types.Operator):
#Operator for setting selected bone in enduser armature to the performer mapping
"""
Select a bone for faster mapping
"""
bl_idname
=
"
mocap.selectmap
"
bl_label
=
"
Select
a bone for faster m
apping
"
bl_label
=
"
Select
M
apping
Bone
"
perf_bone
=
StringProperty
()
def
execute
(
self
,
context
):
...
...
@@ -549,7 +549,7 @@ class OBJECT_OT_ConvertSamplesButton(bpy.types.Operator):
#Operator to convert samples to beziers on the selected object
"""
Convert active armature
'
s sampled keyframed to beziers
"""
bl_idname
=
"
mocap.samples
"
bl_label
=
"
Convert
s
amples
/ simplifies keyframes to beziers
"
bl_label
=
"
Convert
S
amples
"
def
execute
(
self
,
context
):
mocap_tools
.
fcurves_simplify
(
context
,
context
.
active_object
)
...
...
@@ -565,7 +565,7 @@ class OBJECT_OT_LooperButton(bpy.types.Operator):
"""
Trim active armature
'
s animation to a single cycle, given
"""
\
"""
a cyclic animation (such as a walk cycle)
"""
bl_idname
=
"
mocap.looper
"
bl_label
=
"
Loop
animation / sampled mocap data
"
bl_label
=
"
Loop
Mocap
"
def
execute
(
self
,
context
):
mocap_tools
.
autoloop_anim
()
...
...
@@ -581,7 +581,7 @@ class OBJECT_OT_DenoiseButton(bpy.types.Operator):
"""
Denoise active armature
'
s animation (good for dealing
"""
\
"""
with
'
bad
'
frames inherent in mocap animation)
"""
bl_idname
=
"
mocap.denoise
"
bl_label
=
"
Denoise
sampled mocap data
"
bl_label
=
"
Denoise
Mocap
"
def
execute
(
self
,
context
):
mocap_tools
.
denoise_median
()
...
...
@@ -597,7 +597,7 @@ class OBJECT_OT_LimitDOFButton(bpy.types.Operator):
"""
Create limit constraints on the active armature from
"""
\
"""
the selected armature
'
s animation
'
s range of motion
"""
bl_idname
=
"
mocap.limitdof
"
bl_label
=
"
Analyze animations Max/Min DOF and add hard/soft c
onstraints
"
bl_label
=
"
Set DOF C
onstraints
"
def
execute
(
self
,
context
):
performer_obj
=
[
obj
for
obj
in
context
.
selected_objects
if
obj
!=
context
.
active_object
][
0
]
...
...
@@ -619,7 +619,7 @@ class OBJECT_OT_RemoveLimitDOFButton(bpy.types.Operator):
#Removes constraints created by above operator
"""
Remove previously created limit constraints on the active armature
"""
bl_idname
=
"
mocap.removelimitdof
"
bl_label
=
"
Remove
previously created limit constraints on the active armature
"
bl_label
=
"
Remove
DOF Constraints
"
def
execute
(
self
,
context
):
mocap_tools
.
limit_dof_toggle_off
(
context
,
context
.
active_object
)
...
...
@@ -638,7 +638,7 @@ class OBJECT_OT_RotateFixArmature(bpy.types.Operator):
"""
Realign the active armature
'
s axis system to match Blender
"""
\
"""
(commonly needed after bvh import)
"""
bl_idname
=
"
mocap.rotate_fix
"
bl_label
=
"
Rotate
selected armature 90 degrees (fix for bvh import)
"
bl_label
=
"
Rotate
Fix
"
def
execute
(
self
,
context
):
mocap_tools
.
rotate_fix_armature
(
context
.
active_object
.
data
)
...
...
@@ -655,7 +655,7 @@ class OBJECT_OT_ScaleFixArmature(bpy.types.Operator):
"""
Rescale selected armature to match the active animation,
"""
\
"""
for convenience
"""
bl_idname
=
"
mocap.scale_fix
"
bl_label
=
"
Scale
performer armature to match target armature
"
bl_label
=
"
Scale
Fix
"
def
execute
(
self
,
context
):
enduser_obj
=
bpy
.
context
.
active_object
...
...
@@ -679,7 +679,7 @@ class MOCAP_OT_AddMocapFix(bpy.types.Operator):
"""
Add a post-retarget fix - useful for fixing certain
"""
\
"""
artifacts following the retarget
"""
bl_idname
=
"
mocap.addmocapfix
"
bl_label
=
"
Add Mocap Fix
to target armature
"
bl_label
=
"
Add Mocap Fix
"
type
=
EnumProperty
(
name
=
"
Type of Fix
"
,
items
=
[(
"
point
"
,
"
Maintain Position
"
,
"
Bone is at a specific point
"
),
(
"
freeze
"
,
"
Maintain Position at frame
"
,
"
Bone does not move from location specified in target frame
"
),
...
...
@@ -704,7 +704,7 @@ class OBJECT_OT_RemoveMocapConstraint(bpy.types.Operator):
#Operator to remove a post-retarget fix
"""
Remove this post-retarget fix
"""
bl_idname
=
"
mocap.removeconstraint
"
bl_label
=
"
Remove
fixes from target armature
"
bl_label
=
"
Remove
Mocap Fix
"
constraint
=
IntProperty
()
def
execute
(
self
,
context
):
...
...
@@ -729,7 +729,7 @@ class OBJECT_OT_BakeMocapConstraints(bpy.types.Operator):
#Operator to bake all post-retarget fixes
"""
Bake all post-retarget fixes to the Retarget Fixes NLA Track
"""
bl_idname
=
"
mocap.bakeconstraints
"
bl_label
=
"
Bake
all fixes to target armature
"
bl_label
=
"
Bake
Mocap Fixes
"
def
execute
(
self
,
context
):
mocap_constraints
.
bakeConstraints
(
context
)
...
...
@@ -746,7 +746,7 @@ class OBJECT_OT_UnbakeMocapConstraints(bpy.types.Operator):
"""
Unbake all post-retarget fixes - removes the baked data
"""
\
"""
from the Retarget Fixes NLA Track
"""
bl_idname
=
"
mocap.unbakeconstraints
"
bl_label
=
"
Unbake
all fixes to target armature
"
bl_label
=
"
Unbake
Mocap Fixes
"
def
execute
(
self
,
context
):
mocap_constraints
.
unbakeConstraints
(
context
)
...
...
@@ -764,7 +764,7 @@ class OBJECT_OT_UpdateMocapConstraints(bpy.types.Operator):
"""
Update all post-retarget fixes (neccesary to take under
"""
\
"""
consideration changes to armature object or pose)
"""
bl_idname
=
"
mocap.updateconstraints
"
bl_label
=
"
Update
all post-retarget f
ixes
"
bl_label
=
"
Update
Mocap F
ixes
"
def
execute
(
self
,
context
):
mocap_constraints
.
updateConstraints
(
context
.
active_object
,
context
)
...
...
@@ -780,7 +780,7 @@ class OBJECT_OT_GuessHierachyMapping(bpy.types.Operator):
#Operator which calls heurisitic function to guess mapping between 2 armatures
"""
Attempt to auto figure out hierarchy mapping
"""
bl_idname
=
"
mocap.guessmapping
"
bl_label
=
"
Attempt to auto figure out h
ierarchy
m
apping
"
bl_label
=
"
Guess H
ierarchy
M
apping
"
def
execute
(
self
,
context
):
enduser_obj
=
bpy
.
context
.
active_object
...
...
@@ -803,7 +803,7 @@ class OBJECT_OT_PathEditing(bpy.types.Operator):
#Operator which calls path editing function, making active object follow the selected curve.
"""
Set active object (stride object) to follow the selected curve
"""
bl_idname
=
"
mocap.pathediting
"
bl_label
=
"
Set
active object (stride object) to follow the selected curve
"
bl_label
=
"
Set
Path
"
def
execute
(
self
,
context
):
path
=
[
obj
for
obj
in
context
.
selected_objects
if
obj
!=
context
.
active_object
][
0
]
...
...
@@ -821,10 +821,9 @@ class OBJECT_OT_PathEditing(bpy.types.Operator):
class
OBJECT_OT_AnimationStitchingButton
(
bpy
.
types
.
Operator
):
#Operator which calls stitching function, combining 2 animations onto the NLA.
"""
Stitche two defined animations into a single one via
"""
\
"""
alignment of NLA Tracks
"""
"""
Stitch two defined animations into a single one via alignment of NLA Tracks
"""
bl_idname
=
"
mocap.animstitch
"
bl_label
=
"
Stitch
two defined animations into a single one via alignment of NLA Track
s
"
bl_label
=
"
Stitch
Animation
s
"
def
execute
(
self
,
context
):
mocap_tools
.
anim_stitch
(
context
,
context
.
active_object
)
...
...
@@ -845,7 +844,7 @@ class OBJECT_OT_GuessAnimationStitchingButton(bpy.types.Operator):
#Operator which calls stitching function heuristic, setting good values for above operator.
"""
Guess the stitch frame and second offset for animation stitch
"""
bl_idname
=
"
mocap.animstitchguess
"
bl_label
=
"
Guess
the stitch frame and second offset for a
nimation
s
titch
"
bl_label
=
"
Guess
A
nimation
S
titch
"
def
execute
(
self
,
context
):
mocap_tools
.
guess_anim_stitch
(
context
,
context
.
active_object
)
...
...
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