import bpy
# Select the two meshes
mesh_a = bpy.data.objects["Cube"]
mesh_b = bpy.data.objects["Cube.001"]
# Assign the shape keys of Mesh B to Mesh A
mesh_b.shape_key_add(name='Basis', from_mix=False)
mesh_a.shape_key_add(name='Basis', from_mix=False)
mesh_a.shape_key_add(name='Morph1', from_mix=False)
bpy.ops.object.editmode_toggle()
for i, vert_b in enumerate(mesh_b.data.vertices):
mesh_a.data.shape_keys.key_blocks["Morph1"].data[i].co = vert_b.co
0 件のコメント:
コメントを投稿