diff options
author | Benjy Cook <benjycook@hotmail.com> | 2011-08-15 14:18:02 +0400 |
---|---|---|
committer | Benjy Cook <benjycook@hotmail.com> | 2011-08-15 14:18:02 +0400 |
commit | c8ae881b619ec2d2d05b3c55283ca1f4c69828ca (patch) | |
tree | 20320226661d7fc8cee62da13e753fc552ba36ea /release/scripts/startup | |
parent | 3237f39243ab431fbdf736e3b8648a0c19400564 (diff) |
Added option to each retargeted bone to fix twist issues caused by variable bone rolls and unknown axis differences. Also made retarget operator a single undo
Diffstat (limited to 'release/scripts/startup')
-rw-r--r-- | release/scripts/startup/ui_mocap.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/release/scripts/startup/ui_mocap.py b/release/scripts/startup/ui_mocap.py index 9be26a3b2ff..23354f9d722 100644 --- a/release/scripts/startup/ui_mocap.py +++ b/release/scripts/startup/ui_mocap.py @@ -223,6 +223,9 @@ bpy.types.Bone.reverseMap = bpy.props.CollectionProperty(type=MocapMapping) bpy.types.Bone.foot = bpy.props.BoolProperty(name="Foot", description="Marks this bone as a 'foot', which determines retargeted animation's translation", default=False) +bpy.types.Bone.twistFix = bpy.props.BoolProperty(name="Twist Fix", + description="Fix Twist on this bone", + default=False) bpy.types.PoseBone.IKRetarget = bpy.props.BoolProperty(name="IK", description="Toggles IK Retargeting method for given bone", update=toggleIKBone, default=False) @@ -295,6 +298,7 @@ class MocapPanel(bpy.types.Panel): label_mod = "ik chain" if hasIKConstraint(pose_bone): label_mod = "ik end" + row.prop(data=bone, property='twistFix', text='', icon='RNA') row.prop(pose_bone, 'IKRetarget') row.label(label_mod) else: @@ -396,6 +400,7 @@ class OBJECT_OT_RetargetButton(bpy.types.Operator): '''Retarget animation from selected armature to active armature ''' bl_idname = "mocap.retarget" bl_label = "Retargets active action from Performer to Enduser" + bl_options = {'REGISTER', 'UNDO'} def execute(self, context): scene = context.scene |