rescale metarig types to roughly match 1.0 == 1m for body parts, also fix py error with bone UI
This commit is contained in:
@@ -28,23 +28,24 @@ METARIG_NAMES = "finger_01", "finger_02", "finger_03"
|
||||
|
||||
|
||||
def metarig_template():
|
||||
# generated by rigify.write_meta_rig
|
||||
bpy.ops.object.mode_set(mode='EDIT')
|
||||
obj = bpy.context.active_object
|
||||
arm = obj.data
|
||||
bone = arm.edit_bones.new('finger.01')
|
||||
bone.head[:] = 0.0000, 0.0000, 0.0000
|
||||
bone.tail[:] = 0.8788, -0.4584, -0.1327
|
||||
bone.tail[:] = 0.0353, -0.0184, -0.0053
|
||||
bone.roll = -2.8722
|
||||
bone.connected = False
|
||||
bone = arm.edit_bones.new('finger.02')
|
||||
bone.head[:] = 0.8788, -0.4584, -0.1327
|
||||
bone.tail[:] = 1.7483, -0.9059, -0.3643
|
||||
bone.head[:] = 0.0353, -0.0184, -0.0053
|
||||
bone.tail[:] = 0.0702, -0.0364, -0.0146
|
||||
bone.roll = -2.7099
|
||||
bone.connected = True
|
||||
bone.parent = arm.edit_bones['finger.01']
|
||||
bone = arm.edit_bones.new('finger.03')
|
||||
bone.head[:] = 1.7483, -0.9059, -0.3643
|
||||
bone.tail[:] = 2.2478, -1.1483, -0.7408
|
||||
bone.head[:] = 0.0702, -0.0364, -0.0146
|
||||
bone.tail[:] = 0.0903, -0.0461, -0.0298
|
||||
bone.roll = -2.1709
|
||||
bone.connected = True
|
||||
bone.parent = arm.edit_bones['finger.02']
|
||||
|
||||
Reference in New Issue
Block a user