Custom Scaling the femur

Hey everyone, I am currentl working on cutom scaling the femur of the Squat model from the AMMR. I already went through the AnyBody tutorial and so far everything worked out quite well. But no I want to include the Custom Scaling function and the mirrored one into the model and for some reason during the kinematic and inverse analysis the left knee bends in the wrong direction like this:

I found out i can fix this when I chang the ScaleMat of the Scaling function to ScaleMat = {{1,0,0},{0,1,0},{0,0,-1}}; but then the femur is in the wrong orientation like this:

I did everything as tld in the tutorial here: Tutorials/15.personalizing your model/ Lesson2

Maybe someone knows whats going on here and can help me.
Thanks in advance
Johann

Hi Johann,

Welcome to the AnyScript forum!

This can unfortunately happen since the knee angle is driven indirectly in the model. I can suggest you a couple of options to solve the problem:

  1. Try changing the load time posture of the mannequin and see if it helps. It may just put the solver on right track.
  2. If this doesn't work, you can use the range of motion class template to add joint limits on the knee joint. You may need to set the solver to overdeterminate type as well for the class template to work.

Best regards,
Dave

Hey Dave,
I fixed the Problem. Apparently, since I use the AnyBody version 7.3 there were older tutorials listed under the help button, in which in the initial Scaling Function the TSeg2ScaleFrame was not used but it was used in the mirrored function. In the newer tutorials (from 2025) they fixed that.

Hey Johann,

Thanks for the information. It could be useful for other users who might be on an older version of AMS.

Best regards,
Dave