Remove Player Twists From Hips In Animations

I have 8 walk animations (walk forward, backward, left, right, etc), I used two avatar masks called “Lower” and “Upper”, Everytime i walk the hips twists the player to the direction of the legs. (More of the problem is below)

5915960--631913--upload_2020-5-29_15-28-5.png

5915960--631922--upload_2020-5-29_15-29-12.png

I made an Animation Layer that uses the “Lower” avatar mask, which holds a blend tree containing all the walk animations. The “Lower” Avatar Mask has the spine on (on purpose or else the player floats and his back bends)

I made another Animation Layer that uses the “Upper” avatar mask, which holds the idle animation for a gun.

The problem is that everytime i walk (using the “Lower” Animation Layer) it twists the whole player the other way and i want to remove that so it only moves the legs and not the hips.

Video: Hip Problem - Album on Imgur

Basically i want to split the body so the upper has its own animations and the lower has its own animations aswell without the lower body twisting the hips for the upper body.
5915960--631934--upload_2020-5-29_15-40-24.png

to me this looks like the root transform rotations are not aligned. (is this a blend tree?)
try adding offset (and baking)

but I think it’s not possible that the lower body hips won’t be affecting upper body.
might need zero rotations on upper body spine1 and/or a script adjusting spine1 rotation in lateupdate.

Haha thanks, i removed all spine rotations from the leg animations and now it stopped twisting too much. Although it still twists a little, but it doesn’t really matter to me.