var TestPath = "C:/JWK/"; var TestMeshPath = "C:/Disk_E_Backup/BrainVoyagerQX_CD/Samples/VolumesAndMeshes_Check/"; function MotionCorrectionISA() { var SpangPath = "C:/CustomerData/Spang_IntraSessionMotionCorrection/05131740/"; var bvqx = Application.BrainVoyagerQX; var docFMR = bvqx.OpenDocument(SpangPath + "MF_Run3.fmr"); // docFMR.CorrectMotionTargetVolumeInOtherRun( SpangPath + "MF_Run1.fmr", 1 ); docFMR.CorrectMotionTargetVolumeInOtherRunEx(SpangPath + "MF_Run1.fmr", 1, 1, 1, 100, 0, 1 ); } function OpenVMRAndLinkVTC() { var bvqx = Application.BrainVoyagerQX; var docVMR = bvqx.OpenDocument(TestPath + "3d_B01.inh_ACPC.vmr"); docVMR.LinkVTC(TestPath + "BRAM01A_3DMC_SCSAI_LTR_THP10c_ACPC.vtc"); } function LoadVMRAndSRF() { var bvqx = Application.BrainVoyagerQX; docVMR1 = bvqx.OpenDocument(TestMeshPath + "CG2_TAL.vmr"); docVMR1.LoadMesh(TestMeshPath + "CG2_HEAD_TAL.srf"); docVMR1.AddMesh(TestMeshPath + "CG2_TAL_LH_RECOSM.srf"); } function ChangeViewpoint() { var bvqx = Application.BrainVoyagerQX; docVMR = bvqx.ActiveDocument(); var RotY = docVMR.ViewpointRotationY; for(i=1; i<61; i++) { docVMR.ViewpointRotationY = RotY + 6*i; docVMR.UpdateSurfaceWindow(); // var fn = new String("snap-%1").argInt(i); // docVMR.SaveSnapshotOfSurfaceWindow(fn) } }