[Bf-extensions-cvs] [91fc865d] master: Rigify: assign a more reasonable B-Bone display size in metarigs too.
Alexander Gavrilov
noreply at git.blender.org
Fri Oct 25 15:26:14 CEST 2019
Commit: 91fc865d8df563d82a4c31bbe44aa4bb9b1d0eee
Author: Alexander Gavrilov
Date: Fri Oct 25 16:22:16 2019 +0300
Branches: master
https://developer.blender.org/rBA91fc865d8df563d82a4c31bbe44aa4bb9b1d0eee
Rigify: assign a more reasonable B-Bone display size in metarigs too.
===================================================================
M rigify/metarigs/Animals/bird.py
M rigify/metarigs/Animals/cat.py
M rigify/metarigs/Animals/horse.py
M rigify/metarigs/Animals/shark.py
M rigify/metarigs/Animals/wolf.py
M rigify/metarigs/Basic/basic_human.py
M rigify/metarigs/Basic/basic_quadruped.py
M rigify/metarigs/human.py
M rigify/utils/rig.py
===================================================================
diff --git a/rigify/metarigs/Animals/bird.py b/rigify/metarigs/Animals/bird.py
index 5b4bdace..eee6b38b 100644
--- a/rigify/metarigs/Animals/bird.py
+++ b/rigify/metarigs/Animals/bird.py
@@ -1502,6 +1502,7 @@ def create(obj):
bone.select = True
bone.select_head = True
bone.select_tail = True
+ bone.bbone_x = bone.bbone_z = bone.length * 0.05
arm.edit_bones.active = bone
arm.layers = [(x in [0, 3, 7, 10, 13, 16, 21, 24]) for x in range(32)]
diff --git a/rigify/metarigs/Animals/cat.py b/rigify/metarigs/Animals/cat.py
index b86a9346..66321116 100644
--- a/rigify/metarigs/Animals/cat.py
+++ b/rigify/metarigs/Animals/cat.py
@@ -2975,6 +2975,7 @@ def create(obj):
bone.select = True
bone.select_head = True
bone.select_tail = True
+ bone.bbone_x = bone.bbone_z = bone.length * 0.05
arm.edit_bones.active = bone
arm.layers = [(x in [0, 3, 5, 7, 10, 13, 16, 19]) for x in range(32)]
diff --git a/rigify/metarigs/Animals/horse.py b/rigify/metarigs/Animals/horse.py
index 733bc5c8..6c94a19d 100644
--- a/rigify/metarigs/Animals/horse.py
+++ b/rigify/metarigs/Animals/horse.py
@@ -1371,6 +1371,7 @@ def create(obj):
bone.select = True
bone.select_head = True
bone.select_tail = True
+ bone.bbone_x = bone.bbone_z = bone.length * 0.05
arm.edit_bones.active = bone
arm.layers = [(x in [0, 3, 4, 7, 10, 13, 16, 19, 21]) for x in range(32)]
diff --git a/rigify/metarigs/Animals/shark.py b/rigify/metarigs/Animals/shark.py
index d4f5e4ee..8b72a965 100644
--- a/rigify/metarigs/Animals/shark.py
+++ b/rigify/metarigs/Animals/shark.py
@@ -790,6 +790,7 @@ def create(obj):
bone.select = True
bone.select_head = True
bone.select_tail = True
+ bone.bbone_x = bone.bbone_z = bone.length * 0.05
arm.edit_bones.active = bone
arm.layers = [(x in [0, 3, 5, 6, 8, 10]) for x in range(32)]
diff --git a/rigify/metarigs/Animals/wolf.py b/rigify/metarigs/Animals/wolf.py
index 1ed5e947..f6150c54 100644
--- a/rigify/metarigs/Animals/wolf.py
+++ b/rigify/metarigs/Animals/wolf.py
@@ -3223,6 +3223,7 @@ def create(obj):
bone.select = True
bone.select_head = True
bone.select_tail = True
+ bone.bbone_x = bone.bbone_z = bone.length * 0.05
arm.edit_bones.active = bone
arm.layers = [(x in [0, 3, 4, 5, 7, 10, 13, 16, 19]) for x in range(32)]
diff --git a/rigify/metarigs/Basic/basic_human.py b/rigify/metarigs/Basic/basic_human.py
index 2afbb0f9..01017cf4 100644
--- a/rigify/metarigs/Basic/basic_human.py
+++ b/rigify/metarigs/Basic/basic_human.py
@@ -684,6 +684,7 @@ def create(obj):
bone.select = True
bone.select_head = True
bone.select_tail = True
+ bone.bbone_x = bone.bbone_z = bone.length * 0.05
arm.edit_bones.active = bone
arm.layers = [(x in [3, 7, 10, 13, 16]) for x in range(32)]
diff --git a/rigify/metarigs/Basic/basic_quadruped.py b/rigify/metarigs/Basic/basic_quadruped.py
index 7743ba05..5282df25 100644
--- a/rigify/metarigs/Basic/basic_quadruped.py
+++ b/rigify/metarigs/Basic/basic_quadruped.py
@@ -799,6 +799,7 @@ def create(obj):
bone.select = True
bone.select_head = True
bone.select_tail = True
+ bone.bbone_x = bone.bbone_z = bone.length * 0.05
arm.edit_bones.active = bone
arm.layers = [(x in [3, 4, 7, 10, 13, 16, 19]) for x in range(32)]
diff --git a/rigify/metarigs/human.py b/rigify/metarigs/human.py
index 9d6f914e..c849303f 100644
--- a/rigify/metarigs/human.py
+++ b/rigify/metarigs/human.py
@@ -2718,6 +2718,7 @@ def create(obj):
bone.select = True
bone.select_head = True
bone.select_tail = True
+ bone.bbone_x = bone.bbone_z = bone.length * 0.05
arm.edit_bones.active = bone
arm.layers = [(x in [0, 3, 5, 7, 10, 13, 16]) for x in range(32)]
diff --git a/rigify/utils/rig.py b/rigify/utils/rig.py
index 8c646ab5..0c07cfe6 100644
--- a/rigify/utils/rig.py
+++ b/rigify/utils/rig.py
@@ -283,6 +283,7 @@ def write_metarig(obj, layers=False, func_name="create", groups=False):
code.append(" bone.select = True")
code.append(" bone.select_head = True")
code.append(" bone.select_tail = True")
+ code.append(" bone.bbone_x = bone.bbone_z = bone.length * 0.05")
code.append(" arm.edit_bones.active = bone")
# Set appropriate layers visible
More information about the Bf-extensions-cvs
mailing list