[Bf-extensions-cvs] [f862db5] master: Rigify updates and fixes

Campbell Barton noreply at git.blender.org
Wed Jul 20 19:42:08 CEST 2016


Commit: f862db54403067248a3ca00edc5eec4935b3228b
Author: Campbell Barton
Date:   Thu Jul 21 03:15:48 2016 +1000
Branches: master
https://developer.blender.org/rBAf862db54403067248a3ca00edc5eec4935b3228b

Rigify updates and fixes

D2114 by @icappiello

Sanitize float rounding error

===================================================================

M	rigify/metarigs/pitchipoy_human.py
M	rigify/rigs/pitchipoy/super_face.py

===================================================================

diff --git a/rigify/metarigs/pitchipoy_human.py b/rigify/metarigs/pitchipoy_human.py
index 108a98b..5674876 100644
--- a/rigify/metarigs/pitchipoy_human.py
+++ b/rigify/metarigs/pitchipoy_human.py
@@ -277,8 +277,8 @@ def create(obj):
     bone.parent = arm.edit_bones[bones['forearm.R']]
     bones['hand.R'] = bone.name
     bone = arm.edit_bones.new('nose')
-    bone.head[:] = 0.0006, -0.1536, 1.8978
-    bone.tail[:] = 0.0006, -0.1834, 1.8589
+    bone.head[:] = 0.0000, -0.1536, 1.8978
+    bone.tail[:] = 0.0000, -0.1834, 1.8589
     bone.roll = 0.0000
     bone.use_connect = False
     bone.parent = arm.edit_bones[bones['face']]
@@ -298,8 +298,8 @@ def create(obj):
     bone.parent = arm.edit_bones[bones['face']]
     bones['lip.B.L'] = bone.name
     bone = arm.edit_bones.new('jaw')
-    bone.head[:] = 0.0006, -0.0945, 1.7439
-    bone.tail[:] = 0.0006, -0.1519, 1.7392
+    bone.head[:] = 0.0000, -0.0945, 1.7439
+    bone.tail[:] = 0.0000, -0.1519, 1.7392
     bone.roll = 0.0000
     bone.use_connect = False
     bone.parent = arm.edit_bones[bones['face']]
@@ -403,22 +403,22 @@ def create(obj):
     bone.parent = arm.edit_bones[bones['face']]
     bones['cheek.T.R'] = bone.name
     bone = arm.edit_bones.new('teeth.T')
-    bone.head[:] = 0.0006, -0.1568, 1.8214
-    bone.tail[:] = 0.0006, -0.1112, 1.8214
+    bone.head[:] = 0.0000, -0.1568, 1.8214
+    bone.tail[:] = 0.0000, -0.1112, 1.8214
     bone.roll = 0.0000
     bone.use_connect = False
     bone.parent = arm.edit_bones[bones['face']]
     bones['teeth.T'] = bone.name
     bone = arm.edit_bones.new('teeth.B')
-    bone.head[:] = 0.0006, -0.1500, 1.7892
-    bone.tail[:] = 0.0006, -0.1043, 1.7892
+    bone.head[:] = 0.0000, -0.1500, 1.7892
+    bone.tail[:] = 0.0000, -0.1043, 1.7892
     bone.roll = 0.0000
     bone.use_connect = False
     bone.parent = arm.edit_bones[bones['face']]
     bones['teeth.B'] = bone.name
     bone = arm.edit_bones.new('tongue')
-    bone.head[:] = 0.0006, -0.1354, 1.7946
-    bone.tail[:] = 0.0006, -0.1101, 1.8002
+    bone.head[:] = 0.0000, -0.1354, 1.7946
+    bone.tail[:] = 0.0000, -0.1101, 1.8002
     bone.roll = 0.0000
     bone.use_connect = False
     bone.parent = arm.edit_bones[bones['face']]
@@ -480,8 +480,8 @@ def create(obj):
     bone.parent = arm.edit_bones[bones['hand.R']]
     bones['palm.04.R'] = bone.name
     bone = arm.edit_bones.new('nose.001')
-    bone.head[:] = 0.0006, -0.1834, 1.8589
-    bone.tail[:] = 0.0006, -0.1965, 1.8450
+    bone.head[:] = 0.0000, -0.1834, 1.8589
+    bone.tail[:] = 0.0000, -0.1965, 1.8450
     bone.roll = 0.0000
     bone.use_connect = True
     bone.parent = arm.edit_bones[bones['nose']]
@@ -501,8 +501,8 @@ def create(obj):
     bone.parent = arm.edit_bones[bones['lip.B.L']]
     bones['lip.B.L.001'] = bone.name
     bone = arm.edit_bones.new('chin')
-    bone.head[:] = 0.0006, -0.1519, 1.7392
-    bone.tail[:] = 0.0006, -0.1634, 1.7692
+    bone.head[:] = 0.0000, -0.1519, 1.7392
+    bone.tail[:] = 0.0000, -0.1634, 1.7692
     bone.roll = 0.0000
     bone.use_connect = True
     bone.parent = arm.edit_bones[bones['jaw']]
@@ -592,8 +592,8 @@ def create(obj):
     bone.parent = arm.edit_bones[bones['cheek.T.R']]
     bones['cheek.T.R.001'] = bone.name
     bone = arm.edit_bones.new('tongue.001')
-    bone.head[:] = 0.0006, -0.1101, 1.8002
-    bone.tail[:] = 0.0006, -0.0761, 1.7949
+    bone.head[:] = 0.0000, -0.1101, 1.8002
+    bone.tail[:] = 0.0000, -0.0761, 1.7949
     bone.roll = 0.0000
     bone.use_connect = True
     bone.parent = arm.edit_bones[bones['tongue']]
@@ -669,15 +669,15 @@ def create(obj):
     bone.parent = arm.edit_bones[bones['palm.04.R']]
     bones['f_pinky.01.R'] = bone.name
     bone = arm.edit_bones.new('nose.002')
-    bone.head[:] = 0.0006, -0.1965, 1.8450
-    bone.tail[:] = 0.0006, -0.1854, 1.8402
+    bone.head[:] = 0.0000, -0.1965, 1.8450
+    bone.tail[:] = 0.0000, -0.1854, 1.8402
     bone.roll = 0.0000
     bone.use_connect = True
     bone.parent = arm.edit_bones[bones['nose.001']]
     bones['nose.002'] = bone.name
     bone = arm.edit_bones.new('chin.001')
-    bone.head[:] = 0.0006, -0.1634, 1.7692
-    bone.tail[:] = 0.0006, -0.1599, 1.7909
+    bone.head[:] = 0.0000, -0.1634, 1.7692
+    bone.tail[:] = 0.0000, -0.1599, 1.7909
     bone.roll = 0.0000
     bone.use_connect = True
     bone.parent = arm.edit_bones[bones['chin']]
@@ -753,8 +753,8 @@ def create(obj):
     bone.parent = arm.edit_bones[bones['cheek.T.R.001']]
     bones['nose.R'] = bone.name
     bone = arm.edit_bones.new('tongue.002')
-    bone.head[:] = 0.0006, -0.0761, 1.7949
-    bone.tail[:] = 0.0006, -0.0538, 1.7673
+    bone.head[:] = 0.0000, -0.0761, 1.7949
+    bone.tail[:] = 0.0000, -0.0538, 1.7673
     bone.roll = 0.0000
     bone.use_connect = True
     bone.parent = arm.edit_bones[bones['tongue.001']]
@@ -830,8 +830,8 @@ def create(obj):
     bone.parent = arm.edit_bones[bones['f_pinky.01.R']]
     bones['f_pinky.02.R'] = bone.name
     bone = arm.edit_bones.new('nose.003')
-    bone.head[:] = 0.0006, -0.1854, 1.8402
-    bone.tail[:] = 0.0006, -0.1706, 1.8393
+    bone.head[:] = 0.0000, -0.1854, 1.8402
+    bone.tail[:] = 0.0000, -0.1706, 1.8393
     bone.roll = 0.0000
     bone.use_connect = True
     bone.parent = arm.edit_bones[bones['nose.002']]
@@ -894,14 +894,14 @@ def create(obj):
     bones['temple.R'] = bone.name
     bone = arm.edit_bones.new('nose.L.001')
     bone.head[:] = 0.0176, -0.1627, 1.8429
-    bone.tail[:] = 0.0006, -0.1965, 1.8450
+    bone.tail[:] = 0.0000, -0.1965, 1.8450
     bone.roll = 0.1070
     bone.use_connect = True
     bone.parent = arm.edit_bones[bones['nose.L']]
     bones['nose.L.001'] = bone.name
     bone = arm.edit_bones.new('nose.R.001')
     bone.head[:] = -0.0176, -0.1627, 1.8429
-    bone.tail[:] = -0.0006, -0.1965, 1.8450
+    bone.tail[:] = -0.0000, -0.1965, 1.8450
     bone.roll = -0.1070
     bone.use_connect = True
     bone.parent = arm.edit_bones[bones['nose.R']]
@@ -977,8 +977,8 @@ def create(obj):
     bone.parent = arm.edit_bones[bones['f_pinky.02.R']]
     bones['f_pinky.03.R'] = bone.name
     bone = arm.edit_bones.new('nose.004')
-    bone.head[:] = 0.0006, -0.1706, 1.8393
-    bone.tail[:] = 0.0006, -0.1698, 1.8244
+    bone.head[:] = 0.0000, -0.1706, 1.8393
+    bone.tail[:] = 0.0000, -0.1698, 1.8244
     bone.roll = 0.0000
     bone.use_connect = True
     bone.parent = arm.edit_bones[bones['nose.003']]
@@ -1167,14 +1167,14 @@ def create(obj):
     bones['brow.T.R.002'] = bone.name
     bone = arm.edit_bones.new('brow.T.L.003')
     bone.head[:] = 0.0215, -0.1546, 1.9144
-    bone.tail[:] = 0.0004, -0.1536, 1.8978
+    bone.tail[:] = 0.0000, -0.1536, 1.8978
     bone.roll = -0.0423
     bone.use_connect = True
     bone.parent = arm.edit_bones[bones['brow.T.L.002']]
     bones['brow.T.L.003'] = bone.name
     bone = arm.edit_bones.new('brow.T.R.003')
     bone.head[:] = -0.0215, -0.1546, 1.9144
-    bone.tail[:] = -0.0004, -0.1536, 1.8978
+    bone.tail[:] = 0.0000, -0.1536, 1.8978
     bone.roll = 0.0423
     bone.use_connect = True
     bone.parent = arm.edit_bones[bones['brow.T.R.002']]
@@ -1718,7 +1718,7 @@ def create(obj):
     pbone.rotation_mode = 'QUATERNION'
     pbone.bone.layers = [True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
     pbone = obj.pose.bones[bones['palm.01.L']]
-    pbone.rigify_type = 'palm'
+    pbone.rigify_type = 'pitchipoy.super_palm'
     pbone.lock_location = (False, False, False)
     pbone.lock_rotation = (False, False, False)
     pbone.lock_rotation_w = False
@@ -1750,7 +1750,7 @@ def create(obj):
     pbone.rotation_mode = 'YXZ'
     pbone.bone.layers = [False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
     pbone = obj.pose.bones[bones['palm.01.R']]
-    pbone.rigify_type = 'palm'
+    pbone.rigify_type = 'pitchipoy.super_palm'
     pbone.lock_location = (False, False, False)
     pbone.lock_rotation = (False, False, False)
     pbone.lock_rotation_w = False
diff --git a/rigify/rigs/pitchipoy/super_face.py b/rigify/rigs/pitchipoy/super_face.py
index 9ed711c..bce972d 100644
--- a/rigify/rigs/pitchipoy/super_face.py
+++ b/rigify/rigs/pitchipoy/super_face.py
@@ -1071,8 +1071,8 @@ def create_sample(obj):
     bone.use_connect = False
     bones['face'] = bone.name
     bone = arm.edit_bones.new('nose')
-    bone.head[:] = 0.0004, -0.0905, 0.1125
-    bone.tail[:] = 0.0004, -0.1105, 0.0864
+    bone.head[:] = 0.0000, -0.0905, 0.1125
+    bone.tail[:] = 0.0000, -0.1105, 0.0864
     bone.roll = 0.0000
     bone.use_connect = False
     bone.parent = arm.edit_bones[bones['face']]
@@ -1092,8 +1092,8 @@ def create_sample(obj):
     bone.parent = arm.edit_bones[bones['face']]
     bones['lip.B.L'] = bone.name
     bone = arm.edit_bones.new('jaw')
-    bone.head[:] = 0.0004, -0.0389, 0.0222
-    bone.tail[:] = 0.0004, -0.0923, 0.0044
+    bone.head[:] = 0.0000, -0.0389, 0.0222
+    bone.tail[:] = 0.0000, -0.0923, 0.0044
     bone.roll = 0.0000
     bone.use_connect = False
     bone.parent = arm.edit_bones[bones['face']]
@@ -1197,29 +1197,29 @@ def create_sample(obj):
     bone.parent = arm.edit_bones[bones['face']]
     bones['cheek.T.R'] = bone.name
     bone = arm.edit_bones.new('teeth.T')
-    bone.head[:] = 0.0004, -0.0927, 0.0613
-    bone.tail[:] = 0.0004, -0.0621, 0.0613
+    bone.head[:] = 0.0000, -0.0927, 0.0613
+    bone.tail[:] = 0.0000, -0.0621, 0.0613
     bone.roll = 0.0000
     bone.use_connect = False
     bone.parent = arm.edit_bones[bones['face']]
     bones['teeth.T'] = bone.name
     bone = arm.edit_bones.new('teeth.B')
-    bone.head[:] = 0.0004, -0.0881, 0.0397
-    bone.tail[:] = 0.0004, -0.0575, 0.0397
+    bone.head[:] = 0.0000, -0.0881, 0.0397
+    bone.tail[:] = 0.0000, -0.0575, 0.0397
     bone.roll = 0.0000
     bone.use_connect = False
     bone.parent = arm.edit_bones[bones['face']]
     bones['teeth.B'] = bone.name
     bone = arm.e

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-extensions-cvs mailing list