Recovering keyframes after reorganizing hierarchy

6566149--744313--prob - Copy.png
Here I have an animation that uses transform-based keyframe animation. However, I want to reorganize my hierarchy. This unfortunately breaks these animations, so I am wondering if there’s any way to rebind the animations given a new hierarchy.

Old hierarchy

Parent (animator lives here)
   Body
      Head

New hierarchy

Parent (animator lives here)
   Pivot
      Body
         Head

Because I’m inserting a gameobject named “Pivot” between “Parent” and “Body” this breaks all animations that targeted the Body / Head.

Is there a way to fix animations based on the old hierarchy? Or is the only way to proceed to redo them? If I must redo them is there a way to copy paste as much as possible?

I don’t know of any inbuilt way to do it so I made a tool to Remap Animation Bindings in the upcoming update to Animancer v6.0 which is currently available for testing.

This is interesting, trying the lite version. Question: is it the case that the intended workflow I need to create an Animation Controller that uses the clip in order to preview it / edit the clip (its transform keyframes)? I want to Play it from a script, having no controller ultimately. But am I right that the only way to preview it is with a dummy Animation Controller that I then should clear when it’s no longer needed for previewing/editing purposes?

Transitions have their own Preview window.

Or if you have a script that references your animation attached to any of the parents or children of the object with the Animator and AnimancerComponent, then Unity’s regular Animation window should pick up that animation automatically.

1 Like

Aha, it seems that I needed a script with the clip referenced in it. Thanks.