some more rig options, fix typo

This commit is contained in:
2009-12-09 14:29:55 +00:00
parent a41131db24
commit 5dd68e8cb6
3 changed files with 17 additions and 2 deletions

View File

@@ -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