Is there more efficient way to copy keyframes programmatically from mesh A shape key to the similar shape key in the mesh B?
Here's the approach I'm using but it's kind of slow (for 160 shape keys it works at speed 3 keyframes per second) and creates lots of unnecessary keyframes.
for kf_i in range(scene.frame_start, scene.frame_end+1):
print(f'Current keyframe - #{kf_i}')
bpy.context.scene.frame_set(kf_i)
for dest_sk_name in shape_keys_convertion:
base_sk_name = shape_keys_convertion[dest_sk_name]
base_sk = o.data.shape_keys.key_blocks[base_sk_name]
dest_sk = d.data.shape_keys.key_blocks[dest_sk_name]
dest_sk.value = base_sk.value
dest_sk.keyframe_insert('value', frame=kf_i)