T. rex model troubleshooting

Hi everyone,
Hopefully a basic question for you:
I have all the data needed for a Tyrannosaurus jaw closing model. I’ve written the start of an AnyScript file, below. When I try to load the model, I get this error message:

ERROR(SCR.SCN6) : X:/Snively/AnyBody demo files/StanModel.any : ‘EOF’ : Unexpected character.
Model loading skipped

There’s no indication of what line the unexpected character is on. I at least expect it to draw axes and an ellipsoid. Is there a problem with the path to the filename?
Thanks.

// Stan jaw closure

Main = {

// The actual body model goes in this folder
AnyFolder StanModel = {

// Global Reference Frame
AnyFixedRefFrame GlobalRef = {

 AnyDrawRefFrame DrwGlobalRef = {
   ScaleXYZ = {0.1, 0.1, 0.1};
   RGB = {0,1,0};
 };
 AnyRefNode OccipitalCondyle = { 
   sRel = {0,0,0}; 
 };
 AnyRefNode RightQJCenter = { 
   sRel = {0, -0.36, -0.45}; 
 };
 AnyRefNode LeftQJCenter = { 
   sRel = {0, -0.36, 0.45}; 
 };

}; // Global reference frame

// Add the model elements such as
// segments, joints, and muscles below.

// Segments
AnyFolder Segs = {
AnySeg Cranium = {
//r0 = {0, 0, 0};
//rDot0 = {0, 0, 0};
//Axes0 = {{1, 0, 0}, {0, 1, 0}, {0, 0, 1}};
//omega0 = {0, 0, 0};
Mass = 500;
Jii = {63.229, 97.345, 125.651};
AnyDrawSeg drw = {};

     //Jij = {0, 0, 0};
     //sCoM = {0, 0, 0};
     //JaboutCoMOnOff = Off;
   };

}; // MyModel

// The study: Operations to be performed on the model
AnyBodyStudy StanStudy = {
AnyFolder &Model = .StanModel;
Gravity = {0.0, -9.81, 0.0};
};

}; // Main

Hi

You are missing an extra bracket… :wink:

Please try to highlight all text in the script then press ALT+F8 then AnyBody will auto indent for you and such errors are easy to see.

Søren


        //JaboutCoMOnOff = Off;
      };
    }; //Segs
  }; // MyModel
  
  // The study: Operations to be performed on the model
  AnyBodyStudy StanStudy = {
    AnyFolder &Model = .StanModel;
    Gravity = {0.0, -9.81, 0.0};
  };
  
}; // Main