Retarget animation from Emptie to Rig with same bones in Blender 4.1

Hey, thanks for opening this post,

I have animated Empty object and a Rig with same bone names and same structure (I got them from the same provider),

Now I need to pass the animation from Emptie to the Rig.
What would be the best way of doing that in Blender 4.1?

I installed that promising add-on Empties to Bones, but it didn’t manage to transfer it.

thanks in advance, much love!

This is a little script that will add a Copy Transforms constraint to the bones in an armature.

It will try to find an object with the name of each bone. Then add the constraint if the object is found.

import bpy

arm = bpy.data.objects['Armature']

for bone in arm.pose.bones:
    name = bone.name
    if name in bpy.data.objects:
        copy_transform = bone.constraints.new('COPY_TRANSFORMS')
        copy_transform.target = bpy.data.objects[name]

If the animation looks ok when the constraints are in place, you can bake it down to it’s own Action.

1 Like

thanks - this actually works, all the best to you!

1 Like