diff options
Diffstat (limited to 'release/scripts/modules/rigify/leg_biped.py')
-rw-r--r-- | release/scripts/modules/rigify/leg_biped.py | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/release/scripts/modules/rigify/leg_biped.py b/release/scripts/modules/rigify/leg_biped.py index 70be980d7b2..5c214cea362 100644 --- a/release/scripts/modules/rigify/leg_biped.py +++ b/release/scripts/modules/rigify/leg_biped.py @@ -219,6 +219,8 @@ def ik(obj, bone_definition, base_names, options): ik.foot_roll_p.lock_rotation = False, True, True ik_chain.toe_p.rotation_mode = 'YXZ' ik_chain.toe_p.lock_rotation = False, True, True + ik_chain.toe_p.lock_location = True, True, True + ik.foot_roll_p.lock_location = True, True, True # IK con = ik_chain.shin_p.constraints.new('IK') @@ -329,6 +331,7 @@ def fk(obj, bone_definition, base_names, options): foot_p.rotation_mode = 'YXZ' fk_chain.toe_p.rotation_mode = 'YXZ' fk_chain.toe_p.lock_rotation = False, True, True + fk_chain.thigh_p.lock_location = True, True, True con = fk_chain.thigh_p.constraints.new('COPY_LOCATION') con.target = obj @@ -336,7 +339,7 @@ def fk(obj, bone_definition, base_names, options): # hinge prop = rna_idprop_ui_prop_get(fk_chain.thigh_p, "hinge", create=True) - fk_chain.thigh_p["hinge"] = 0.5 + fk_chain.thigh_p["hinge"] = 0.0 prop["soft_min"] = 0.0 prop["soft_max"] = 1.0 @@ -441,6 +444,11 @@ def deform(obj, definitions, base_names, options): con.target = obj con.subtarget = definitions[2] + con = uleg1.constraints.new('COPY_SCALE') + con.name = "scale" + con.target = obj + con.subtarget = definitions[1] + con = uleg2.constraints.new('COPY_ROTATION') con.name = "copy_rot" con.target = obj @@ -452,6 +460,11 @@ def deform(obj, definitions, base_names, options): con.target = obj con.subtarget = definitions[2] + con = lleg1.constraints.new('COPY_SCALE') + con.name = "copy_rot" + con.target = obj + con.subtarget = definitions[2] + con = lleg2.constraints.new('COPY_ROTATION') con.name = "copy_rot" con.target = obj @@ -484,5 +497,5 @@ def main(obj, bone_definition, base_names, options): deform(obj, bone_definition, base_names, options) bpy.ops.object.mode_set(mode='OBJECT') - blend_bone_list(obj, bone_definition + [None], bones_fk, bones_ik, target_bone=bones_ik[6], target_prop="ik", blend_default=0.0) + blend_bone_list(obj, bone_definition + [None], bones_fk, bones_ik, target_bone=bones_ik[6], target_prop="ik", blend_default=1.0) |