Legs looks "wobbly" after using rigify

So, I just finished parented an outfit to my model, and because the model doesn’t have IK bones I like to use rigify so that it can get some. I just finished a project a few days ago where I used rigify for the same reason and it worked just fine, but this time, for some unknown reason, when I move the leg or even import an animation on it the legs look wobbly, like unstable (pictures and blend file below). I don’t know why this happened. The only thing I did different I guess is that I used another model leg where the feet are already positioned in high heels since the model is wearing one, but I don’t think this is or should be a reason because before adding the rigify it was moving with the armature just fine. I tried tracing back my steps and fixing a few things but nothing worked, so here I am. In the blend file, I left it so that it’s just the rigify and the models armature, before integrating the armatures together. Here are the pictures, and if anyone has a solution, please let me know.

(If it means anything, I did not add any extra modifiers rather than just an armature modifier)

Blend file: https://drive.google.com/file/d/11qxtMWTuTQenmwoYnhl1iLv2ZJMRMhQ6/view?usp=sharing


Screenshot at Aug 04 17-58-52

hello,

to me it looks like the weighting is
is not correct.
You should check the weighting on the upper leg.

I have looked at it again,
and translated the names into english,
I noticed that the name does not match the anatomy.
As a workaround you could give the Leg-bone a copy-rotation-constrain, see picture

constrain

Hello, thank you so much for your help. But I am a bit confused, am I not supposed to do the leg bone that you showed in the example, given that there is x’s on it? I have tried doing it first and doing all the settings but the leg is just staying up now and if I move it it like…glitches?

I was playing with the space for a bit and got it to stand where it should be but it’s still glitching while moving it. Overall, it worked but won’t that affect the animation? In other words, I think I made a mistake but I will test it really fast.

Update: It messed it up.

I have problems with the Chinese naming,
but I think that here still a constrain must be set.

Like what kind of constraint?

copy_rotation! in the picture Above! to the green bone.

For some reason, it worked better this time- but still rotating on the z axis still causes the twisting.

Also, I can’t move the green bone anymore and the upper leg bone acts like it now when you move the y axis, and it also still twists in a really weird way. So, it doesn’t twist for the x axis but for the y and z axis?

can you make a small animation, only 2 poses , then i can see faster where the problem is, and upload again

Alright, I made it where the upper leg bone couldn’t move on the y axis, so that’s kind of fixed already.

I know most models legs twist, but if you were to take a look at some models, the twisting isn’t this low:
https://gyazo.com/61e6cd918d48edae718a5d8bd61b33b8, and it’s causing it to look that way. This is the Z axis.

And then the other problem, I can’t move the y axis on the green bone, which I usually am able to do with other models:
https://gyazo.com/7ef715cd06875d1c9ffc37a38fda7170. This happened after adding the constraint.

And I followed your exact settings:

this is the original scene you uploaded, i weightpainted the leg to the bone 足.R

is this what You need?!
weights

Yes, cause it’s not like scrunching up, I guess. Could you try the Z axis and show me please?

weights

Thank you! Do you mind resharing the blend file with me? Thank you for your help.

send you a PM