unresolved objects in the scaling

dear anybody:
I have a problem during the transform, as described below. I needed some help as a green.:o
*/

//////////////////////////////////////////////////////////
// Ligament slack length*****
//////////////////////////////////////////////////////////
Main.HumanModel = {
AnyFolder KneeLigamentLength = {
AnyVar LateralLigament1lr=0.06711117;
AnyVar LateralLigament2lr=0.06687234;
AnyVar LateralLigament3lr=0.06737885;

AnyVar MedialLigament1lr=0.09510858;
AnyVar MedialLigament2lr=0.09517107;
AnyVar MedialLigament3lr=0.09509206;

AnyVar PCLlr = 0.03188429;
AnyVar ACLlr = 0.04272554;


AnyVar ObliquePopliteallr = 0.08082673;

};
};

//////////////////////////////////////////////////////////
// Femoral implant*****
//////////////////////////////////////////////////////////

HumanModel.Right.Leg.Seg.Thigh = {

AnySurfSTL &KneeContactSurfaceLateral = STLpoint.FemoralHead;
AnySurfSTL &KneeContactSurfaceMedial = STLpoint.FemoralHead; //STLpoint.ImplantNode.FemoralImplant;
AnySurfSTL &KneeContactSurfacePatella = STLpoint.FemoralHead;
AnyRefNode BonePoints = {
AnyVec3 Position = {0.07122981, 0.01058682, -0.1099091};
ARel = {{0.4218687, -0.8998286, -0.1110613}, {-0.03414614, -0.138177, 0.9898182}, {-0.9060133, -0.4137814, -0.08901829}};

sRel = .Scale(Position);

};

// AnyFunTransform3DLin2 MyTransform2 = {
// Points0 = .MyTransform.Points1;
// Points1 = .MyTransform.Points0;
// Mode = VTK_LANDMARK_RIGIDBODY;
// };
// AnyFunTransform3DIdentity MyTransform3 =
// {
// PreTransforms = {&.MyTransform,&.MyTransform2};
// };

AnyRefNode STLpoint = {

  sRel = {0.06153456, -0.3816378, 0.01205337};
  ARel =  {{-0.8733692, -0.1585003, 0.4605473}, {-0.1797757, 0.9837048, -0.002373254}, {-0.4526664, -0.08486792, -0.887632}};

/**
The raw data of this implant geometry was kindly
provided by the committee of the “First Grand Challenge Competition
to Predict In Vivo Knee Loads” project (https://simtk.org/home/kneeloads).
This geometry was filtered and remeshed for the use in this model.

For publication using this models or the geometry data out of it, please reference also to 
Fregly, B. J.; Besier, T. F.; Lloyd, D. G.; Delp, S. L.; Banks, S. A.; Pandy, M. G. & D'Lima, D. D. 
Grand challenge competition to predict in vivo knee loads Journal of Orthopaedic Research, Wiley Subscription Services, Inc., A Wiley Company, 2012, 30, 503-513
doi: 10.1002/jor.22023

/
AnySurfSTL FemoralHead =
{
FileName = “stls/FemoralComponentVolume_0.025”;
ScaleXYZ = 0.001
{1.0, 1.0, …Sign*1.0};

// AnyFunTransform3D &ref =…MyTransform;
AnyDrawSurf DrwSurf3 = {
FileName = .FileName;
ScaleXYZ = .ScaleXYZ;
// AnyFunTransform3D &Scale =…MyTransform;
Opacity = Main.DrawSettings.ImplantsOpacity.Bone;

  };
   AnyMatrix Points= 
           {{0.0769633,0.654976,0.105852},
            {0.109431,0.661472,0.0219774},
            {0.12445,0.657318,0.108557  },
            {0.137875,0.652375,0.0712053}};
   AnyDrawPointCloud ptclTrg = {
      Points=.Points;

// Points3D=On;
// PointStyle.Size=0.0125;
// PointStyle.Style=PointStyleSphere;
RGB={1, 0, 0};
};
};
AnySeg Femur=
{
Mass=0;Jii={0,0,0};

 AnySurfSTL FemoralHead_SubjectSpecific = 
{

  FileName = "AN XIAO PING_Right_Leg-femur-end-1";
  
  ScaleXYZ = 0.001*{1, 1, 1};

//AnyFunTransform3D &ref =.MyTransform;
AnyDrawSurf DrwSurf3 = {
FileName = .FileName;
ScaleXYZ = .ScaleXYZ;
//AnyFunTransform3D &ref =…MyTransform;
Opacity = Main.DrawSettings.ImplantsOpacity.Bone;
};
// AnyDrawRefFrame drw={ScaleXYZ=0.1*{1,1,1};};
AnyMatrix Points1 =
{{-98.7454,20.9461,13.3262},
{-17.562,20.8676,18.2123},
{-82.2495,-21.7624,11.2585},
{-49.8675,-18.6531,0.552105}}*0.001;

  AnyDrawPointCloud ptclTrg = {
      Points=.Points1;

// Points3D=On;
// PointStyle.Size=0.0125;
// PointStyle.Style=PointStyleSphere;
RGB={1, 0, 0};
};
};
};
};
};

// AnyRefNode PL ={

// ARel = RotMat(-90*pi/180, x);

AnyFunTransform3DLin2 MyTransform =
{
// PreTransforms = ;
Points0 = …Main.HumanModel.BodyModel.Right.Leg.Seg.Thigh.Points;
Points1 = .Main.HumanModel.BodyModel.Right.Leg.Seg.Thigh.Femur.Points1;
Mode = VTK_LANDMARK_RIGIDBODY;[/b]
};

error
Closing model…
Deleting last loaded model…
…Model deleted.
Loading Main : “E:\AMMR\Application\Beta\TKA-KneeBendDemo\TKA-KneeBendDemo.Main.any”
Scanning…
Parsing…
Constructing model tree…
ERROR(SCR.PRS9) : E:/AMMR/A…n/Beta/TKA-Kn…ndDemo/Implants.any : ‘Points’ : Unresolved object
Model loading skipped

Hi,

It looks like you did not provide correct paths to the Points object.
It’s a really long code, but what i see is that the following code is not right:

AnyFunTransform3DLin2 MyTransform = 
{
// PreTransforms = ;
Points0 = ..Main.HumanModel.BodyModel.Right.Leg.Seg.Thigh.Po ints;
Points1 = .Main.HumanModel.BodyModel.Right.Leg.Seg.Thigh.Fem ur.Points1;
Mode = VTK_LANDMARK_RIGIDBODY;[/b]
};

But you could simply use absolute paths that start from Main:


AnyFunTransform3DLin2 MyTransform = 
{
// PreTransforms = ;
Points0 = Main.HumanModel.BodyModel.Right.Leg.Seg.Thigh.Po ints;
Points1 = Main.HumanModel.BodyModel.Right.Leg.Seg.Thigh.Fem ur.Points1;
Mode = VTK_LANDMARK_RIGIDBODY;[/b]
};

That might solve the problem.

Kind regards,
Pavel