Removing a muscle in MoCapModel

Hi everyone,

I would like to remove the left AdductorLongus from the MoCapModel to simulate a zero activation from this muscle (only 1 & 2 for the moment, to be sure my code is correct).
I tried to follow a thread that I found with a similar problematics(http://forum.anyscript.org/showthread.php?t=3611) but unfortunately, I do not manage to load the model.

Here are the changes I made in MoCap_FullBody.main.any :

AnyFolder Studies ={

MechObjectExclude = arrcat(
ObjSearch(“Main.Studies.HumanModel.BodyModel.Left.Leg.Mus.AdductorLongus1”, “AnyViaPointMuscle”),
ObjSearch(“Main.Studies.HumanModel.BodyModel.Left.Leg.Mus.AdductorLongus2”, “AnyViaPointMuscle”)
);

// Usually, there is no need to make changes in the following files. PLease be aware. that
// changes in the Kinematics and InverseDynamics may lead to model failure and/or unrealistic results:
#if MotionAndParameterOptimizationModel
#include “Model/Kinematics.any”
#endif

#if InverseDynamicModel
#include “Model/InverseDynamics.any”
#endif

};

What am I doing wrong ?

Thank you in advance for your help,

Hi,

You should add this folder into the Inverse Dynamics study folder. You are trying to put in the collective folder Studies, which contains 2 actual studies - kinematic and kinetic.

See here.

Alternative approach is shown here.

Kind regards,
Pavel

Great, that’s perfectly working now after changing the folder.

Thank you very much for your answer, as usefull as usual.