diff options
author | Nathan Vegdahl <cessen@cessen.com> | 2011-02-21 23:29:27 +0300 |
---|---|---|
committer | Nathan Vegdahl <cessen@cessen.com> | 2011-02-21 23:29:27 +0300 |
commit | 3428aad9c8ea3438219eeffb3f0964eeae1f57d9 (patch) | |
tree | 7cb907223a7a40edc58891e2c0389509a34071a4 /rigify/rigs | |
parent | aae36412f5bdee133a97dba4c8c8f612ab2ff61b (diff) |
Rigify works again! Yay!
Just required some misc updates due to python API changes.
Diffstat (limited to 'rigify/rigs')
-rw-r--r-- | rigify/rigs/biped/arm/ik.py | 6 | ||||
-rw-r--r-- | rigify/rigs/biped/leg/__init__.py | 1 | ||||
-rw-r--r-- | rigify/rigs/biped/leg/fk.py | 2 | ||||
-rw-r--r-- | rigify/rigs/biped/leg/ik.py | 8 |
4 files changed, 9 insertions, 8 deletions
diff --git a/rigify/rigs/biped/arm/ik.py b/rigify/rigs/biped/arm/ik.py index 2b941b9e..403d1d0d 100644 --- a/rigify/rigs/biped/arm/ik.py +++ b/rigify/rigs/biped/arm/ik.py @@ -158,9 +158,9 @@ class Rig: vispole_e.tail = vispole_e.head + Vector((0, 0, v1.length / 32)) # Determine the pole offset value - plane = (farm_e.tail - uarm_e.head).normalize() - vec1 = uarm_e.x_axis.normalize() - vec2 = (pole_e.head - uarm_e.head).normalize() + plane = (farm_e.tail - uarm_e.head).normalized() + vec1 = uarm_e.x_axis.normalized() + vec2 = (pole_e.head - uarm_e.head).normalized() pole_offset = angle_on_plane(plane, vec1, vec2) # Object mode, get pose bones diff --git a/rigify/rigs/biped/leg/__init__.py b/rigify/rigs/biped/leg/__init__.py index 4c9997bf..3c518320 100644 --- a/rigify/rigs/biped/leg/__init__.py +++ b/rigify/rigs/biped/leg/__init__.py @@ -78,6 +78,7 @@ class Rig: group.separate_ik_layers = bpy.props.BoolProperty(name="Separate IK Control Layers:", default=False, description="Enable putting the ik controls on a separate layer from the fk controls.") group.ik_layers = bpy.props.BoolVectorProperty(size=32, description="Layers for the ik controls to be on.") + print("Adding thigh twist.") group.use_thigh_twist = bpy.props.BoolProperty(name="Thigh Twist", default=True, description="Generate the dual-bone twist setup for the thigh.") group.use_shin_twist = bpy.props.BoolProperty(name="Shin Twist", default=True, description="Generate the dual-bone twist setup for the shin.") diff --git a/rigify/rigs/biped/leg/fk.py b/rigify/rigs/biped/leg/fk.py index a212d445..628798f8 100644 --- a/rigify/rigs/biped/leg/fk.py +++ b/rigify/rigs/biped/leg/fk.py @@ -141,7 +141,7 @@ class Rig: # Positioning vec = Vector(eb[self.org_bones[3]].vector) - vec = vec.normalize() + vec.normalize() foot_e.tail = foot_e.head + (vec * foot_e.length) foot_e.roll = eb[self.org_bones[3]].roll diff --git a/rigify/rigs/biped/leg/ik.py b/rigify/rigs/biped/leg/ik.py index a04b57dc..6dc232df 100644 --- a/rigify/rigs/biped/leg/ik.py +++ b/rigify/rigs/biped/leg/ik.py @@ -221,7 +221,7 @@ class Rig: # Positioning vec = Vector(toe_e.vector) - vec = vec.normalize() + vec.normalize() foot_e.tail = foot_e.head + (vec * foot_e.length) foot_e.roll = toe_e.roll @@ -281,9 +281,9 @@ class Rig: foot_ik_target_e.tail = Vector(org_foot_e.tail) # Determine the pole offset value - plane = (shin_e.tail - thigh_e.head).normalize() - vec1 = thigh_e.x_axis.normalize() - vec2 = (pole_e.head - thigh_e.head).normalize() + plane = (shin_e.tail - thigh_e.head).normalized() + vec1 = thigh_e.x_axis.normalized() + vec2 = (pole_e.head - thigh_e.head).normalized() pole_offset = angle_on_plane(plane, vec1, vec2) # Object mode, get pose bones |