Rigify: assign a more reasonable B-Bone display size in metarigs too.

This commit is contained in:
Alexander Gavrilov 2019-10-25 16:22:16 +03:00
parent 2d023ea49f
commit 91fc865d8d
9 changed files with 9 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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