Answered

Best way to horizontally flip a clip?

Erik Hermansen 3 months ago updated 3 months ago 3

I'd like to take a clip and swap all the keys left to right and right to left. E.g. left upper arm rotation becomes right upper arm rotation.

I know that there is a "Copy to the Other Side" feature. But it would be a lot of labor to go to each key and perform that copy. Also, there are times when I want to not just copy in one direction (left-to-right or right-to-left), but also perform a swap on the same key. So the "Copy to the Other Side" feature would actually overwrite a key that I need for the swap.

Is there an efficient way to swap all the keys in UMotion? Or maybe there is some way to edit keys that would be reasonably fast for my task?

I know that in Unity's animation controller you can flip a clip there, but I'm using Animancer instead which doesn't seem to allow flipping.

BTW, I really love UMotion. Thanks for making the great software.

UMotion Version:
1.26p02
Unity Version:
2019.4.13f1

Answer

Answer
Answered

Hi Erik,

thank you very much for your support request.

#3 - Duplicate the animation clip asset and check the "Mirror" checkbox in the inspector.

That's the method I would recommend. Please note that this method not only swaps left/right keys, but also mirrors the spine.

Also, there are times when I want to not just copy in one direction (left-to-right or right-to-left), but also perform a swap on the same key. So the "Copy to the Other Side" feature would actually overwrite a key that I need for the swap.

Swapping is supported by "Copy to Other Side". Just select both bones (on left and right side) and perform the action. Using shortcuts usually makes it really fast to use "Copy to Other Side" on all keys of an animation. I did something similar in this video tutorial:

(See 10:05)


BTW, I really love UMotion. Thanks for making the great software.

Thank you very much for the nice words, that means a lot to me :-)


Please let me know in case you have any follow-up questions.


Best regards,
Peter

GOOD, I'M SATISFIED
Satisfaction mark by Erik Hermansen 3 months ago

I now know three ways to do this! Documenting for posterity...

#1 - copy keys around inside UMotion.

#2 - make a copy of the .anim file and make "left" <-> "right" search/replace edits on the copy in a text editor. Import the hand-edited animation clip into a UMotion project.

#3 - Duplicate the animation clip asset and check the "Mirror" checkbox in the inspector.

#1 and #2 are slow and error-prone. Yeah, the last one seems the best way to do it, really.

Answer
Answered

Hi Erik,

thank you very much for your support request.

#3 - Duplicate the animation clip asset and check the "Mirror" checkbox in the inspector.

That's the method I would recommend. Please note that this method not only swaps left/right keys, but also mirrors the spine.

Also, there are times when I want to not just copy in one direction (left-to-right or right-to-left), but also perform a swap on the same key. So the "Copy to the Other Side" feature would actually overwrite a key that I need for the swap.

Swapping is supported by "Copy to Other Side". Just select both bones (on left and right side) and perform the action. Using shortcuts usually makes it really fast to use "Copy to Other Side" on all keys of an animation. I did something similar in this video tutorial:

(See 10:05)


BTW, I really love UMotion. Thanks for making the great software.

Thank you very much for the nice words, that means a lot to me :-)


Please let me know in case you have any follow-up questions.


Best regards,
Peter

> Swapping is supported by "Copy to Other Side". Just select both bones (on left and right side) and perform the action.

Ohhhhhhhhhh! :)

Nice. Thanks for the help.