[Bf-extensions-cvs] [29c03b65] master: Rigify: enable the split toe option by default in metarigs and samples.

Alexander Gavrilov noreply at git.blender.org
Sun Jan 9 20:34:59 CET 2022


Commit: 29c03b657082c266233b3795407d71629f3a02ea
Author: Alexander Gavrilov
Date:   Wed Jan 5 23:59:22 2022 +0300
Branches: master
https://developer.blender.org/rBA29c03b657082c266233b3795407d71629f3a02ea

Rigify: enable the split toe option by default in metarigs and samples.

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

M	rigify/metarigs/Basic/basic_human.py
M	rigify/metarigs/human.py
M	rigify/rigs/limbs/leg.py

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

diff --git a/rigify/metarigs/Basic/basic_human.py b/rigify/metarigs/Basic/basic_human.py
index 9ddbdc0e..1c584325 100644
--- a/rigify/metarigs/Basic/basic_human.py
+++ b/rigify/metarigs/Basic/basic_human.py
@@ -418,7 +418,7 @@ def create(obj):
     except AttributeError:
         pass
     pbone = obj.pose.bones[bones['thigh.L']]
-    pbone.rigify_type = 'limbs.super_limb'
+    pbone.rigify_type = 'limbs.leg'
     pbone.lock_location = (False, False, False)
     pbone.lock_rotation = (False, False, False)
     pbone.lock_rotation_w = False
@@ -429,6 +429,10 @@ def create(obj):
         pbone.rigify_parameters.limb_type = "leg"
     except AttributeError:
         pass
+    try:
+        pbone.rigify_parameters.extra_ik_toe = True
+    except AttributeError:
+        pass
     try:
         pbone.rigify_parameters.fk_layers = [False, False, False, False, False, False, False, False, False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
     except AttributeError:
@@ -438,7 +442,7 @@ def create(obj):
     except AttributeError:
         pass
     pbone = obj.pose.bones[bones['thigh.R']]
-    pbone.rigify_type = 'limbs.super_limb'
+    pbone.rigify_type = 'limbs.leg'
     pbone.lock_location = (False, False, False)
     pbone.lock_rotation = (False, False, False)
     pbone.lock_rotation_w = False
@@ -457,6 +461,10 @@ def create(obj):
         pbone.rigify_parameters.limb_type = "leg"
     except AttributeError:
         pass
+    try:
+        pbone.rigify_parameters.extra_ik_toe = True
+    except AttributeError:
+        pass
     pbone = obj.pose.bones[bones['spine.002']]
     pbone.rigify_type = ''
     pbone.lock_location = (False, False, False)
@@ -610,7 +618,7 @@ def create(obj):
     pbone.rotation_mode = 'QUATERNION'
     pbone.bone.layers = [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, False, False]
     pbone = obj.pose.bones[bones['upper_arm.L']]
-    pbone.rigify_type = 'limbs.super_limb'
+    pbone.rigify_type = 'limbs.arm'
     pbone.lock_location = (False, False, False)
     pbone.lock_rotation = (False, False, False)
     pbone.lock_rotation_w = False
@@ -626,7 +634,7 @@ def create(obj):
     except AttributeError:
         pass
     pbone = obj.pose.bones[bones['upper_arm.R']]
-    pbone.rigify_type = 'limbs.super_limb'
+    pbone.rigify_type = 'limbs.arm'
     pbone.lock_location = (False, False, False)
     pbone.lock_rotation = (False, False, False)
     pbone.lock_rotation_w = False
diff --git a/rigify/metarigs/human.py b/rigify/metarigs/human.py
index 9ddc2f75..5ff61677 100644
--- a/rigify/metarigs/human.py
+++ b/rigify/metarigs/human.py
@@ -1328,7 +1328,7 @@ def create(obj):
     except AttributeError:
         pass
     pbone = obj.pose.bones[bones['thigh.L']]
-    pbone.rigify_type = 'limbs.super_limb'
+    pbone.rigify_type = 'limbs.leg'
     pbone.lock_location = (False, False, False)
     pbone.lock_rotation = (False, False, False)
     pbone.lock_rotation_w = False
@@ -1339,6 +1339,10 @@ def create(obj):
         pbone.rigify_parameters.limb_type = "leg"
     except AttributeError:
         pass
+    try:
+        pbone.rigify_parameters.extra_ik_toe = True
+    except AttributeError:
+        pass
     try:
         pbone.rigify_parameters.fk_layers = [False, False, False, False, False, False, False, False, False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
     except AttributeError:
@@ -1348,7 +1352,7 @@ def create(obj):
     except AttributeError:
         pass
     pbone = obj.pose.bones[bones['thigh.R']]
-    pbone.rigify_type = 'limbs.super_limb'
+    pbone.rigify_type = 'limbs.leg'
     pbone.lock_location = (False, False, False)
     pbone.lock_rotation = (False, False, False)
     pbone.lock_rotation_w = False
@@ -1367,6 +1371,10 @@ def create(obj):
         pbone.rigify_parameters.limb_type = "leg"
     except AttributeError:
         pass
+    try:
+        pbone.rigify_parameters.extra_ik_toe = True
+    except AttributeError:
+        pass
     pbone = obj.pose.bones[bones['spine.002']]
     pbone.rigify_type = ''
     pbone.lock_location = (False, False, False)
@@ -1520,7 +1528,7 @@ def create(obj):
     pbone.rotation_mode = 'QUATERNION'
     pbone.bone.layers = [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, False, False]
     pbone = obj.pose.bones[bones['upper_arm.L']]
-    pbone.rigify_type = 'limbs.super_limb'
+    pbone.rigify_type = 'limbs.arm'
     pbone.lock_location = (False, False, False)
     pbone.lock_rotation = (False, False, False)
     pbone.lock_rotation_w = False
@@ -1536,7 +1544,7 @@ def create(obj):
     except AttributeError:
         pass
     pbone = obj.pose.bones[bones['upper_arm.R']]
-    pbone.rigify_type = 'limbs.super_limb'
+    pbone.rigify_type = 'limbs.arm'
     pbone.lock_location = (False, False, False)
     pbone.lock_rotation = (False, False, False)
     pbone.lock_rotation_w = False
diff --git a/rigify/rigs/limbs/leg.py b/rigify/rigs/limbs/leg.py
index 051c0ec0..5967dcef 100644
--- a/rigify/rigs/limbs/leg.py
+++ b/rigify/rigs/limbs/leg.py
@@ -470,6 +470,10 @@ def create_sample(obj):
         pbone.rigify_parameters.tweak_layers = [False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
     except AttributeError:
         pass
+    try:
+        pbone.rigify_parameters.extra_ik_toe = True
+    except AttributeError:
+        pass
     pbone = obj.pose.bones[bones['shin.L']]
     pbone.rigify_type = ''
     pbone.lock_location = (False, False, False)



More information about the Bf-extensions-cvs mailing list