// Example on creating an AnyScript variable for normalizing the // output data to the gait cycle events. This uses the `Normalized_Absicssa` // class template. // Include Lower Extremity PiG example #include "../Plug-in-gait_Simple/LowerExtremity.main.any" Main = { Main.Studies.MarkerTracking = { // Create a normalized abcissa variable which is 0 at first left heelstrike // and 100 at the second left heelstrike Normalized_Absicssa Left_GaitCycle (Study = Main.Studies.MarkerTracking) = { StartEvent = Main.ModelSetup.C3DFileData.Groups.EVENT.TIMES.Data[2][1]; EndEvent = Main.ModelSetup.C3DFileData.Groups.EVENT.TIMES.Data[6][1]; }; // Create a normalized abcissa variable which is 0 at first right heelstrike // 60 at the left (colateral) heelstrike and 100 at the second right heelstrike. Normalized_Absicssa Right_GaitCycle (Study = Main.Studies.MarkerTracking) = { StartEvent = Main.ModelSetup.C3DFileData.Groups.EVENT.TIMES.Data[0][1]; MiddleEvent = Main.ModelSetup.C3DFileData.Groups.EVENT.TIMES.Data[2][1]; MiddleEventPercent = 60; EndEvent = Main.ModelSetup.C3DFileData.Groups.EVENT.TIMES.Data[4][1]; }; }; };