Answered

Layer masks or importing masked clips?

Anonymous 4 years ago updated by Peter - Soxware Developer 4 years ago 2

Good day

I have a UMotion Pro question. In Unity, I have created an Animator and used layer masks to combine two separate animations (one for the lower body and one weapon attack that only uses the arms and torso). Now I want to edit the resulting combined animation in UMotion (there is some clipping in the attack animation).

Is there a way to have avatar layer masks on the UMotion layers?

Alternatively, is there a way to import the clips in such a way that they are appropriately masked?

I know I should be able to copy only the keyframes I need, but I'm finding this quite challenging.

UMotion Version:
Unity Version:

Answer

Answer
Answered

Hi,

thank you very much for your support request.

Using the mask in the import settings in Unity might work (haven't tried that myself yet).


How I usually approach this:

  1. Importing both (not-masked) clips into UMotion.
  2. Open the upper body animation (the attack animation in your case) and select all keys (CTRL + A) and copy them (CTRL + C)
  3. Open the lower body animation (your base animation).
  4. Create a new animation layer of type "override".
  5. Set the frame cursor to frame 0 and paste your keys (CTRL + V).
  6. Now go through the animated properties list and remove the keys of the animated properties of the lower body bones.
    Pro Tip:
    Hold CTRL while selecting all the animated properties (you want to mask), then right click on a selected animated property and click on "Select All" to select all keys of all the selected animated properties at once.

Let me know if you have any follow-up questions.

Best regards,
Peter

    Hi! OP here. I believe I figured this out! I can mask the animation clips when importing them into Unity (under the animation tab). Then I should be able to pull them into UMotion with the mask applied.

    Answer
    Answered

    Hi,

    thank you very much for your support request.

    Using the mask in the import settings in Unity might work (haven't tried that myself yet).


    How I usually approach this:

    1. Importing both (not-masked) clips into UMotion.
    2. Open the upper body animation (the attack animation in your case) and select all keys (CTRL + A) and copy them (CTRL + C)
    3. Open the lower body animation (your base animation).
    4. Create a new animation layer of type "override".
    5. Set the frame cursor to frame 0 and paste your keys (CTRL + V).
    6. Now go through the animated properties list and remove the keys of the animated properties of the lower body bones.
      Pro Tip:
      Hold CTRL while selecting all the animated properties (you want to mask), then right click on a selected animated property and click on "Select All" to select all keys of all the selected animated properties at once.

    Let me know if you have any follow-up questions.

    Best regards,
    Peter