Change Muscle Model Through AnyBodyConsole

General Question, anyone know if there is a way to change objects in
an anybodyfile through the anybody command prompt? After reading
the the tutorial it seems it’s only commands are related to
processing the operations. For instance using the demooutput
example file, I want to be able to set the muscle model’s F0 to a
different value.
Was thinking something along the line of
Main.ArmModel.Muscles.MusMdl.F0=290 in the anybody command prompt,

So basically can I alter the parameters of the muscle model through
the anybody command prompt?

If I can access these parameters through the command prompt then I
can then setup my iterative process.
Otherwise if the commands are not available through the command
prompt I will just have to write a script to be called to find the
parameter and change it each time

Thanks,
William Smits

Hi William

You can not directly write as you suggest, but there are other ways.

I suggest that you creat an new file containg the F0 values you
would like to make changes to from outside AnyBody. It could look
like this

AnyFolder F0={
AnyVar Soleus=1000;
AnyVar Tibialis=1000;
};

In the Muscle parameter file you will then refer to these values

#include “TheNewFileWithF0Values.any”
AnyMuscleModel Soleus ={
F0=.F0.Soleus ;
};
AnyMuscleModel Tibialis ={
F0=.F0.Tibialis ;
};

Alternatively if you need the values in the new file to be just text
values with no AnyScript Syntax you could write something like this:

In the new file

1000,
1000

AnyVector F0={#include “TheNewFileWithF0Values.any”};

AnyMuscleModel Soleus ={
F0=.F0[0] ;
};
AnyMuscleModel Tibialis ={
F0=.F0[1] ;
};

Hope it helps you move on

Best regards
Søren, AnyBody Support

— In anyscript@yahoogroups.com, “smitswil” <smitswil@…> wrote:
>
> General Question, anyone know if there is a way to change objects
in
> an anybodyfile through the anybody command prompt? After reading
> the the tutorial it seems it’s only commands are related to
> processing the operations. For instance using the demooutput
> example file, I want to be able to set the muscle model’s F0 to a
> different value.
> Was thinking something along the line of
> Main.ArmModel.Muscles.MusMdl.F0=290 in the anybody command prompt,
>
> So basically can I alter the parameters of the muscle model
through
> the anybody command prompt?
>
> If I can access these parameters through the command prompt then I
> can then setup my iterative process.
> Otherwise if the commands are not available through the command
> prompt I will just have to write a script to be called to find the
> parameter and change it each time
>
> Thanks,
> William Smits
>