[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25242] trunk/blender: some more rig options, fix typo
Campbell Barton
ideasman42 at gmail.com
Wed Dec 9 15:29:55 CET 2009
Revision: 25242
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25242
Author: campbellbarton
Date: 2009-12-09 15:29:55 +0100 (Wed, 09 Dec 2009)
Log Message:
-----------
some more rig options, fix typo
Modified Paths:
--------------
trunk/blender/release/scripts/modules/rigify/arm.py
trunk/blender/release/scripts/modules/rigify/leg.py
trunk/blender/source/blender/makesrna/intern/rna_armature.c
Modified: trunk/blender/release/scripts/modules/rigify/arm.py
===================================================================
--- trunk/blender/release/scripts/modules/rigify/arm.py 2009-12-09 14:25:56 UTC (rev 25241)
+++ trunk/blender/release/scripts/modules/rigify/arm.py 2009-12-09 14:29:55 UTC (rev 25242)
@@ -126,7 +126,12 @@
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 @@
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
Modified: trunk/blender/release/scripts/modules/rigify/leg.py
===================================================================
--- trunk/blender/release/scripts/modules/rigify/leg.py 2009-12-09 14:25:56 UTC (rev 25241)
+++ trunk/blender/release/scripts/modules/rigify/leg.py 2009-12-09 14:29:55 UTC (rev 25242)
@@ -213,6 +213,11 @@
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
Modified: trunk/blender/source/blender/makesrna/intern/rna_armature.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_armature.c 2009-12-09 14:25:56 UTC (rev 25241)
+++ trunk/blender/source/blender/makesrna/intern/rna_armature.c 2009-12-09 14:29:55 UTC (rev 25242)
@@ -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"
More information about the Bf-blender-cvs
mailing list