diff options
author | Nathan Vegdahl <cessen@cessen.com> | 2010-01-25 17:19:12 +0300 |
---|---|---|
committer | Nathan Vegdahl <cessen@cessen.com> | 2010-01-25 17:19:12 +0300 |
commit | ede3f0285d351923ee337ecc4b79d04afd745df2 (patch) | |
tree | b5282dcdc431667d3f8995e6b64b9b0df92ba9a1 /release/scripts/modules/rigify/leg_biped.py | |
parent | ab5a985cfeb105c5c04b0fe84bc6d4e7ab12c93c (diff) |
Rigify now generates the rig into the same armature every time, so you don't have to re-hook-up things like armature modifiers, parenting, etc.
By default the generated rig object is named "rig". But you can add a custom "rig_object_name" property to the metarig to specify the name of the object to generate into.
Diffstat (limited to 'release/scripts/modules/rigify/leg_biped.py')
-rw-r--r-- | release/scripts/modules/rigify/leg_biped.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/modules/rigify/leg_biped.py b/release/scripts/modules/rigify/leg_biped.py index 5c214cea362..5c243727516 100644 --- a/release/scripts/modules/rigify/leg_biped.py +++ b/release/scripts/modules/rigify/leg_biped.py @@ -19,6 +19,7 @@ # <pep8 compliant> import bpy +from math import pi from rigify import RigifyError, get_layer_dict from rigify_utils import bone_class_instance, copy_bone_simple, blend_bone_list, get_side_name, get_base_name from rna_prop_ui import rna_idprop_ui_prop_get @@ -226,7 +227,7 @@ def ik(obj, bone_definition, base_names, options): con = ik_chain.shin_p.constraints.new('IK') con.chain_length = 2 con.iterations = 500 - con.pole_angle = -90.0 # XXX - in deg! + con.pole_angle = -pi/2 con.use_tail = True con.use_stretch = True con.use_target = True |