diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-12-17 22:48:30 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-12-17 22:48:30 +0300 |
commit | 0c813b2a0ee4e293428caa3fc7d2b706377c92cf (patch) | |
tree | 516119c4cb48fd8d51e0582bdc618206c1978400 /release/scripts/modules/rigify | |
parent | 959e0486cfe144005ea23220b30de51f09541544 (diff) |
autorigging front end, access in pose mode armature panel (at the bottom)
demo: http://download.blender.org/durian/metarig_demo.ogv
sintel base rig also, would like to include more generic/simple rigs eventually
Diffstat (limited to 'release/scripts/modules/rigify')
-rw-r--r-- | release/scripts/modules/rigify/arm_biped_generic.py | 12 | ||||
-rw-r--r-- | release/scripts/modules/rigify/leg_biped_generic.py | 4 |
2 files changed, 4 insertions, 12 deletions
diff --git a/release/scripts/modules/rigify/arm_biped_generic.py b/release/scripts/modules/rigify/arm_biped_generic.py index 2363b5366e6..509f1bb7aef 100644 --- a/release/scripts/modules/rigify/arm_biped_generic.py +++ b/release/scripts/modules/rigify/arm_biped_generic.py @@ -164,14 +164,6 @@ def ik(obj, definitions, base_names, options): con.chain_length = 2 con.pole_angle = -90.0 # XXX, RAD2DEG - # ID Propery on the hand for IK/FK switch - - prop = rna_idprop_ui_prop_get(ik_chain.hand_p, "ik", create=True) - ik_chain.hand_p["ik"] = 0.5 - prop["soft_min"] = 0.0 - prop["soft_max"] = 1.0 - - # last step setup layers layers = get_layer_dict(options) lay = layers["ik"] @@ -292,8 +284,8 @@ def fk(obj, definitions, base_names, options): def main(obj, bone_definition, base_names, options): - bones_ik = ik(obj, bone_definition, base_names, options) bones_fk = fk(obj, bone_definition, base_names, options) + bones_ik = ik(obj, bone_definition, base_names, options) bpy.ops.object.mode_set(mode='OBJECT') - blend_bone_list(obj, bone_definition, bones_ik, bones_fk, target_bone=bone_definition[1], blend_default=1.0) + blend_bone_list(obj, bone_definition, bones_fk, bones_ik, target_bone=bones_fk[1], blend_default=1.0) diff --git a/release/scripts/modules/rigify/leg_biped_generic.py b/release/scripts/modules/rigify/leg_biped_generic.py index 7cb71009596..745ee49cbfe 100644 --- a/release/scripts/modules/rigify/leg_biped_generic.py +++ b/release/scripts/modules/rigify/leg_biped_generic.py @@ -367,8 +367,8 @@ def fk(obj, bone_definition, base_names, options): def main(obj, bone_definition, base_names, options): - bones_ik = ik(obj, bone_definition, base_names, options) bones_fk = fk(obj, bone_definition, base_names, options) + bones_ik = ik(obj, bone_definition, base_names, options) bpy.ops.object.mode_set(mode='OBJECT') - blend_bone_list(obj, bone_definition, bones_ik, bones_fk, target_bone=bone_definition[1], blend_default=0.0) + blend_bone_list(obj, bone_definition, bones_fk, bones_ik, target_bone=bones_ik[1], blend_default=0.0) |