Root Motion in Sequencer

I am trying to animated a metahuman in sequencer using root mote animations. Ive got root motion enabled in the animation details, and in the animation preview, my character walks forward for an infinite amount of time using the root motion.

When I bring that character into sequencer, I am only given the option to add that root motion animation in single iterations ie. it plays once, then resets the body to the starting position.
image

I cant figure out any way to make the animation draggable to a custom length and having the root motion animation move the character forward without resetting the body back to the starting position everytime the animation loop completes.

Its driving me crazy.

Hello @P_U_C_C_I_N_I !

Perhaps you are missing the blending options?

2 Likes

I tried blending it via the root, in that menu, but alas is continues to reset the position.

Let me check how can be made

Can you share the animation?

Hi there,
To make this work, make sure to use a looping walking animation for repeated sequences. If your animation starts from idle, it will not work. Just drop the animation one after another. To link the current location, @alberto has showed you the fix. If you need a quick video instruction:

(1) UE4: Root Motion In Sequencer [Super Simple Unreal Engine Tutorial] - YouTube

3 Likes

I got it fixed!


I changed "when finished’ to “keep state” from project default.
I also used the method from that video, which I’ve tried previously without any difference, but in my frustration I only tried using "root’ bone.
This time I tried “pelvis” and its working!

Thanks guys. I wouldve just given up, but I will live to animate another day :wink:

2 Likes

Nevermind. Spoke too soon. Tried it with a different root animation to make sure it was solid and it doesnt work. Tried 10 different bones. Went back to the original root animation where I had the issue. Tried it again with the exact same setup. Resets my character back to its position after every iteration, regardless of bone matching. Clicked “show skeleton” under anim properties and the skeleton is left behind at the end of the animation when it resets the mesh to starting position. This cant be normal, or right.

I am now convinced root motion is purely broken. I played around on a different project with root motion in sequencer for about 30minutes. I retargeted root animations from scratch to new characters, enabling root motion, ensuring translation mode was set to “globally scaled” for root in IK retargeter, and ensuring root motion is not only limited to montages in animation_bp.

I loaded up 4 different root animations sequenced one after another. Enabled bone matching for each clip, starting with pelvis. All of the animations worked and my character continued on a path without resetting his position, although none of the animations transitioned smoothly. Oh well.

Then I added the same animation one after another 5 times and the root motion worked, although still, there was a slight skip backwards on the Y axis at every transition. Still the root motion worked.

Then I switched around the bone matching between clips, using head, clavicle, etc. All of them worked the same as pelvis previously. Then I switched to “root” for bone match. Everything broke. None of the animations transitioned anymore. Character reset to starting position after each animation played through.

There is ZERO consistency to this, and what is an absolutely crucial workflow for sequencer is completely busted in this version of UE5. Can’t say enough how disappointed I am, as this has brought me to a complete halt. My only other option is to manually key the transform position for my character using in-place animations, which is fine, If my characters didn’t break away from their transform gizmo and my previously set keys didn’t completely blow up and move all over the map.

So now, my ACTUAL only option is to figure out how to mocap an entire sequence and upload a single animation without being able to change or alter anything. This sucks.

I found that the blending option @alberto mentioned is relative to the position your cursor is at, which means to tell Sequencer where to start the blending I think.

2 Likes

Ill test that out but, if so, thats ridiculous of them to make that with no signifier

Haha try Rotoscoping, like the old times and see :rofl:

I wanted to follow up here as I ran into the same issue where my skeletons visually were matching but the mesh was popping to a different location, basically the root motion wasnt seeming to work.

My issued ended up being the Animation Mode on the character was set to a blueprint that wasnt extracting root motion. Switched the Animation mode on the mesh to either a custom mode or ABP that was doing that, and the mesh now stays with the skeleton.

Can confirm, was having the same issue with “inconsistencies” (random blending issues, which should’ve not have happened in the first place). So it’s key to make sure when you modify these stripes in the sequencer, your cursor (timeline) is right at the end/beginning when you set the blend type (on top of having the “keep state” property enabled in the settings above). Knowing this could’ve saved me a day or two!

Tested in 4.27:

  • for some reason when you add new animation to the track the new skeleton appears to be matched with previous animation though mesh is unmatched. That begs the question - are newly added animations supposed to be matched by default or it’s a bug?

  • matching it by root (even if I set cursor at the correct position) has 0 effect;

  • matching it by pelvis helps (sometimes).
    Any ideas why it works only by pelvis? That’s seems inconsistent and sometimes does not work too.

I guess also we are matching z,x,y and rotation
 better pelvis yes, who knows where is the root

If you want to use several animations must match one after other

A trick is make a camera change

Download for example a good animation content and take a look how was made

Another possibility and the logical is to fix that animations, of course is not easy

Dunno if it helps but I found this thread with a similar problem, we exported the animation clip from UE and reimported it and could then get the bone matching to work, which then led us to realise that ‘Root Motion Lock’ was enabled in the clip, if we disabled it then bone matching with previous clip works.

1 Like

how to extract root motion at animation blueprint?

1 Like

Anyone get this working?