Bake the animation of a rig following another rig
Go to Pose Mode and select all bones of your character's rig.
Select Pose-&gt;Animation-&gt;Bake Action like below:

then select Only Selected Bones + Visual Keying + Clear Constrains + Overwrite Current Action