Hey, I am trying to add external load to the ankle but it is not giving any change in the muscle forces using Inverse dynamics. I tried to run the following script by adding it to mannequin.any but Fm is coming out to be constant for all muscles with or without the load.
AnyFolder Load = {
AnyVec3 TopVertebra = {0.000, 0.000, 0.000};
what you have here is only a a vector containing you force values.
You need to specify a force object - a AnyForce3D for instance. and then apply that force to the ankle via a node or segment.
Have you included that force in the InverseDynamics study?
The study is the object that defines what is part of the simulations.
Often you will see something like this AnyFolder &Model = Main.Model; inside the study.
This includes the whole model folder and all subfolders in the study and thereby the inverse simulations.
If you have made you force object inside a folder that is not part of the study then it will not be part of the simulation.