New markers postion in MoCap Model

I am using anyBody version 6 and I am trying to update marker positions in the MoCap model AMMR according to the my markers postions. But I am getting errors.
It will be nice if I am be given a hint or short code to start with.
I am attaching my new marker positions. So that its easy to give an idea.
Thanks alot for your time.
Best Regards

Hi Malik,

I would use the normal model as a start

Then identify in our model which markers it has in common with your setup.

Then i would rename our makers to have the names you have.

Once that is done i would start adding extra markers by making copies of markers attached to the same limb.

Best regards
Søren

Hi Sören,
Thanks for your reply.
I did what you have said about copying markers and make changings accordingly.
I have a marker on ulna which is not present in the code of MoCAp AMMR model. I am trying to create marker at ulna but it shows an error. I am trying to smear back thorugh the code atHuman.BodyMode. but there is no markerplacement there. It shows an error in CreateMarkerDriverClass.any
error is attached.
Thwe error pointing code is here:

AnyFolder &InsertionNode2 =Main.Studies.HumanModel.BodyModel.MarkerPlacement;
InsertionNode2 ={
AnyRefNode MarkerName={
// sRel=.ScalingNode.sRel+.Scale(DesignVar(…sRelOptEdit).ScalingNode.ARel’);
//sRel=.ScalingNode.sRel+.GeomScale((…sRelOptEdit)
.ScalingNode.ARel’);
#if sRelOptScalingOnOff == “On”
sRel= .AnatomicalFrame.sRel+ (.GeomScale(…sRelOpt) + …sRelOptEdit ).AnatomicalFrame.ARel’ ;
#else
sRel= .AnatomicalFrame.sRel+ (…sRelOpt + …sRelOptEdit )
.AnatomicalFrame.ARel’ ;
#endif

  AnyDrawNode DrawMarker = 
  {
    Visible = On;
    Opacity = 0.5;
    RGB = {1, 0, 0};
    ScaleXYZ = {0.01, 0.01, 0.01};
  };
  
};//create the marker 

};

Looking forward for your kind response.
Regards

Hi

I think this is an issue in the defition of the Ulna segment, which has been fixed in the most recent AMMR version which was released last Thursday in AMR 7.1.

The fix is easy please add the two lines inside the ulna segment so in the
Body\AAUHuman\Arm\Seg.any file


AnyRefNode AnatomicalFrame = {};
  AnyRefNode& ScalingNode = AnatomicalFrame;

The problem also exist in radius as i remember

Best regards
Søren

Hi sören,
thanks for you reply. I entered the given code but it is still showing an error. And I am trying to create marker at patella but it is showing the same error as before.
Looking forward for your kind response.
Regards

Hi,

Please add these lines as well:


Main.HumanModel.BodyModel.Right.ShoulderArm.Seg.Ulna = {
AnyFunTransform3D& GeomScale=Scale;
};

Main.HumanModel.BodyModel.Left.ShoulderArm.Seg.Ulna = {
AnyFunTransform3D& GeomScale=Scale;
};


Kind regards,
Pavel