Go Back   Forums > Professional Forum > AnyGait


Thread Tools Display Modes
Old 02-28-2018, 01:45 PM
So_Any So_Any is offline
Join Date: May 2015
Posts: 47
Question 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( 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"

#if InverseDynamicModel
#include "Model/InverseDynamics.any"


What am I doing wrong ?

Thank you in advance for your help,
Reply With Quote
Old 02-28-2018, 02:00 PM
pgalibarov's Avatar
pgalibarov pgalibarov is offline
Senior Member
Join Date: Oct 2010
Posts: 962


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,
Reply With Quote
Old 03-08-2018, 10:32 AM
So_Any So_Any is offline
Join Date: May 2015
Posts: 47

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

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 08:27 AM.