anybodysupport/ drive angles by file,

Hi support, I downloaded and used mikes shoulder model from the files
in this group, I have been able to drive the model by inserting
values into its mannequin file fine and would now like to drive the
model using a txt file, I’ve placed the file in folder ArmModel242.
I have been able to drive with txt files using markers, but I want to
drive the model exactly as is, with the given parameters using
angles. Go to the joints/drivers and for the glenohumeral joint you
can see my attempt at driving by file. I’ll copy and paste below as
well.
Thanks for any suggestions,

//Glenohumeral joint
AnyKinEqInterPolDriver GHDriverRight={
AnyKinMeasureOrg &ref1
=…HumanModel.Interface.Right.GlenohumeralAbduction;
AnyKinMeasureOrg &ref2
=…HumanModel.Interface.Right.GlenohumeralFlexion;
AnyKinMeasureOrg &ref3
=…HumanModel.Interface.Right.GlenohumeralExternalRotation;
Type = PiecewiseLinear;
// Data=pi/180*{
// .JntPos.Right.GlenohumeralAbduction, //GH joint
// .JntPos.Right.GlenohumeralFlexion, //GH joint
// .JntPos.Right.GlenohumeralExternalRotation //GH joint
// };
Filename = “bla.txt”;
//T=.JntPos.Right.GlenohumeralTime;
Reaction.Type={Off,Off,Off};
};

Hi ?

I have taken a look at your model and found two small errors.

1 : In the JointAndDrivers.any file in the GHDriverRight
object “Filename” should be “FileName” instead, this is why the
complier says ‘Filename’ : Unresolved object’

2 : Also in the GHDriverRight object your are including the file
named Bla.txt and you get the error saying
“GHDriverRight : The data file does not exist.”
This is correct because the name of your file is Bla.txt.txt so
after correcting this it will load.

Please do not hesitate to write again if this do not answer your
questions

Best regards
Søren, AnyBody Support

— In anyscript@yahoogroups.com, “smitswil” <smitswil@…> wrote:
>
> Hi support, I downloaded and used mikes shoulder model from the
files
> in this group, I have been able to drive the model by inserting
> values into its mannequin file fine and would now like to drive
the
> model using a txt file, I’ve placed the file in folder
ArmModel242.
> I have been able to drive with txt files using markers, but I want
to
> drive the model exactly as is, with the given parameters using
> angles. Go to the joints/drivers and for the glenohumeral joint
you
> can see my attempt at driving by file. I’ll copy and paste below
as
> well.
> Thanks for any suggestions,
>
> //Glenohumeral joint
> AnyKinEqInterPolDriver GHDriverRight={
> AnyKinMeasureOrg &ref1
> =…HumanModel.Interface.Right.GlenohumeralAbduction;
> AnyKinMeasureOrg &ref2
> =…HumanModel.Interface.Right.GlenohumeralFlexion;
> AnyKinMeasureOrg &ref3
> =…HumanModel.Interface.Right.GlenohumeralExternalRotation;
> Type = PiecewiseLinear;
> // Data=pi/180*{
> // .JntPos.Right.GlenohumeralAbduction, //GH joint
> // .JntPos.Right.GlenohumeralFlexion, //GH joint
> // .JntPos.Right.GlenohumeralExternalRotation //GH joint
> // };
> Filename = “bla.txt”;
> //T=.JntPos.Right.GlenohumeralTime;
> Reaction.Type={Off,Off,Off};
> };
>

Hi ?

I have taken a look at your model and found two small errors.

1 : In the JointAndDrivers.any file in the GHDriverRight
object “Filename” should be “FileName” instead, this is why the
complier says ‘Filename’ : Unresolved object’

2 : Also in the GHDriverRight object your are including the file
named Bla.txt and you get the error saying
“GHDriverRight : The data file does not exist.”
This is correct because the name of your file is Bla.txt.txt so
after correcting this it will load.

Please do not hesitate to write again if this do not answer your
questions

Best regards
Søren, AnyBody Support

— In anyscript@yahoogroups.com, “smitswil” <smitswil@…> wrote:
>
> Hi support, I downloaded and used mikes shoulder model from the
files
> in this group, I have been able to drive the model by inserting
> values into its mannequin file fine and would now like to drive
the
> model using a txt file, I’ve placed the file in folder
ArmModel242.
> I have been able to drive with txt files using markers, but I want
to
> drive the model exactly as is, with the given parameters using
> angles. Go to the joints/drivers and for the glenohumeral joint
you
> can see my attempt at driving by file. I’ll copy and paste below
as
> well.
> Thanks for any suggestions,
>
> //Glenohumeral joint
> AnyKinEqInterPolDriver GHDriverRight={
> AnyKinMeasureOrg &ref1
> =…HumanModel.Interface.Right.GlenohumeralAbduction;
> AnyKinMeasureOrg &ref2
> =…HumanModel.Interface.Right.GlenohumeralFlexion;
> AnyKinMeasureOrg &ref3
> =…HumanModel.Interface.Right.GlenohumeralExternalRotation;
> Type = PiecewiseLinear;
> // Data=pi/180*{
> // .JntPos.Right.GlenohumeralAbduction, //GH joint
> // .JntPos.Right.GlenohumeralFlexion, //GH joint
> // .JntPos.Right.GlenohumeralExternalRotation //GH joint
> // };
> Filename = “bla.txt”;
> //T=.JntPos.Right.GlenohumeralTime;
> Reaction.Type={Off,Off,Off};
> };
>