diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-12-09 17:29:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-12-09 17:29:55 +0300 |
commit | 5dd68e8cb62dd6bd755543fd4f2d152e6840234b (patch) | |
tree | efeaa7dd6376ac9487ffc50d770fb7355073f78b | |
parent | a41131db24cd063f770b22bfdfa452511560c4ac (diff) |
some more rig options, fix typo
-rw-r--r-- | release/scripts/modules/rigify/arm.py | 12 | ||||
-rw-r--r-- | release/scripts/modules/rigify/leg.py | 5 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_armature.c | 2 |
3 files changed, 17 insertions, 2 deletions
diff --git a/release/scripts/modules/rigify/arm.py b/release/scripts/modules/rigify/arm.py index 66797ddc312..6ed564ac070 100644 --- a/release/scripts/modules/rigify/arm.py +++ b/release/scripts/modules/rigify/arm.py @@ -126,7 +126,12 @@ def ik(obj, definitions, base_names): mt.update() ik.update() ik_chain.update() - + + # Set IK dof + ik_chain.forearm_p.ik_dof_x = True + ik_chain.forearm_p.ik_dof_y = False + ik_chain.forearm_p.ik_dof_z = False + con = ik_chain.forearm_p.constraints.new('IK') con.target = obj con.subtarget = ik_chain.hand @@ -191,6 +196,11 @@ def fk(obj, definitions, base_names): ex.update() fk_chain.update() + # Set rotation modes and axis locks + fk_chain.forearm_p.rotation_mode = 'XYZ' + fk_chain.forearm_p.lock_rotation = (False, True, True) + fk_chain.hand_p.rotation_mode = 'ZXY' + con = fk_chain.arm_p.constraints.new('COPY_LOCATION') con.target = obj con.subtarget = ex.socket diff --git a/release/scripts/modules/rigify/leg.py b/release/scripts/modules/rigify/leg.py index 55f8fb9cf74..ed28c21fd32 100644 --- a/release/scripts/modules/rigify/leg.py +++ b/release/scripts/modules/rigify/leg.py @@ -213,6 +213,11 @@ def ik(obj, bone_definition, base_names): mt_chain.update() ik_chain.update() + # Set IK dof + ik_chain.shin_p.ik_dof_x = True + ik_chain.shin_p.ik_dof_y = False + ik_chain.shin_p.ik_dof_z = False + # IK con = ik_chain.shin_p.constraints.new('IK') con.chain_length = 2 diff --git a/source/blender/makesrna/intern/rna_armature.c b/source/blender/makesrna/intern/rna_armature.c index 6a6c370977a..4859f23967f 100644 --- a/source/blender/makesrna/intern/rna_armature.c +++ b/source/blender/makesrna/intern/rna_armature.c @@ -43,7 +43,7 @@ #include "BKE_context.h" #include "BKE_depsgraph.h" #include "BKE_idprop.h" -#include "BKE_main.h"" +#include "BKE_main.h" #include "ED_armature.h" #include "BKE_armature.h" |