rescale metarig types to roughly match 1.0 == 1m for body parts, also fix py error with bone UI
This commit is contained in:
@@ -33,32 +33,32 @@ def metarig_template():
|
||||
obj = bpy.context.active_object
|
||||
arm = obj.data
|
||||
bone = arm.edit_bones.new('body')
|
||||
bone.head[:] = -0.3000, -1.0000, 0.0000
|
||||
bone.tail[:] = -0.3000, -1.0000, 1.0000
|
||||
bone.head[:] = -0.0728, -0.2427, 0.0000
|
||||
bone.tail[:] = -0.0728, -0.2427, 0.2427
|
||||
bone.roll = 0.0000
|
||||
bone.connected = False
|
||||
bone = arm.edit_bones.new('thigh')
|
||||
bone.head[:] = 0.0000, 0.0000, -0.0000
|
||||
bone.tail[:] = 0.3351, -0.8690, -1.3903
|
||||
bone.tail[:] = 0.0813, -0.2109, -0.3374
|
||||
bone.roll = -0.4656
|
||||
bone.connected = False
|
||||
bone.parent = arm.edit_bones['body']
|
||||
bone = arm.edit_bones.new('shin')
|
||||
bone.head[:] = 0.3351, -0.8690, -1.3903
|
||||
bone.tail[:] = 0.2943, -0.0179, -2.4026
|
||||
bone.head[:] = 0.0813, -0.2109, -0.3374
|
||||
bone.tail[:] = 0.0714, -0.0043, -0.5830
|
||||
bone.roll = -0.2024
|
||||
bone.connected = True
|
||||
bone.parent = arm.edit_bones['thigh']
|
||||
bone = arm.edit_bones.new('foot')
|
||||
bone.head[:] = 0.2943, -0.0179, -2.4026
|
||||
bone.tail[:] = 0.3830, -0.1995, -3.1531
|
||||
bone.head[:] = 0.0714, -0.0043, -0.5830
|
||||
bone.tail[:] = 0.0929, -0.0484, -0.7652
|
||||
bone.roll = -0.3766
|
||||
bone.connected = True
|
||||
bone.parent = arm.edit_bones['shin']
|
||||
bone = arm.edit_bones.new('toe')
|
||||
bone.head[:] = 0.3830, -0.1995, -3.1531
|
||||
bone.tail[:] = 0.4724, -0.5126, -3.1531
|
||||
bone.roll = 0.0000
|
||||
bone.head[:] = 0.0929, -0.0484, -0.7652
|
||||
bone.tail[:] = 0.1146, -0.1244, -0.7652
|
||||
bone.roll = -0.0000
|
||||
bone.connected = True
|
||||
bone.parent = arm.edit_bones['foot']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user