User Tools

Site Tools


visual3d:documentation:pipeline:event_commands:event_explicit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
visual3d:documentation:pipeline:event_commands:event_explicit [2025/02/20 18:03] – [Examples] wikisysopvisual3d:documentation:pipeline:event_commands:event_explicit [2025/04/28 17:04] (current) wikisysop
Line 1: Line 1:
 ====== Event Explicit ====== ====== Event Explicit ======
  
-==== Overview ====+===== Overview =====
 The **Event_Explicit** command is used to manually define and place a custom event label in Visual3D by specifying the exact time at which the event occurs. Unlike automatically detected events (e.g., heel strike detected via force plata date), this command allows users to explicitly set an event based on external input or predefined criteria such as specifying a frame or time. The **Event_Explicit** command is used to manually define and place a custom event label in Visual3D by specifying the exact time at which the event occurs. Unlike automatically detected events (e.g., heel strike detected via force plata date), this command allows users to explicitly set an event based on external input or predefined criteria such as specifying a frame or time.
  
 This command is useful when importing event markers from external sources, synchronizing motion capture events with force data, or manually inserting key moments in the movement cycle. This command is useful when importing event markers from external sources, synchronizing motion capture events with force data, or manually inserting key moments in the movement cycle.
  
-==== Pipeline Command ====+===== Pipeline Command =====
 The command below is as seen in the Visual3D application, with the option to name and specify frame OR time. The command below is as seen in the Visual3D application, with the option to name and specify frame OR time.
  
Line 17: Line 17:
 </code> </code>
  
-==== Command Parameters ====+===== Command Parameters =====
 The following table shows the command parameters and descriptions: The following table shows the command parameters and descriptions:
  
Line 25: Line 25:
 |**! /TIME=**|Defines the exact time (in seconds) at which the event occurs.| |**! /TIME=**|Defines the exact time (in seconds) at which the event occurs.|
  
-==== Dialog ====+===== Dialog =====
  
 The command can be edited in a text editor or in a dialog form. To edit in the dialog pop up form either click on the **Edit** button in the pipeline workshop or double-click on the pipeline command. The dialog is shown below. The command can be edited in a text editor or in a dialog form. To edit in the dialog pop up form either click on the **Edit** button in the pipeline workshop or double-click on the pipeline command. The dialog is shown below.
Line 32: Line 32:
  
 In this dialog, the user is given the options to name the event, and specify either a frame or time to create the event label. In this dialog, the user is given the options to name the event, and specify either a frame or time to create the event label.
-==== Examples ====+===== Examples =====
 The following examples will go through the use of the **Event_Explicit** command in the Visual3D application.  The following examples will go through the use of the **Event_Explicit** command in the Visual3D application. 
  
-=== Example 1: Simple Use Case ===+==== Example 1: Simple Use Case ====
 In the first example, let's say the user knows the specific time when the subject's left foot comes in contact with the ground in a walking trial, at the time of 1.25 seconds. In the first example, let's say the user knows the specific time when the subject's left foot comes in contact with the ground in a walking trial, at the time of 1.25 seconds.
  
Line 51: Line 51:
 {{:visual3d:documentation:pipeline:event_commands:graph_example1.png?400|}} {{:visual3d:documentation:pipeline:event_commands:graph_example1.png?400|}}
  
-=== Example 1Specify an event based on a metric === +==== Example 2Create events using the START and END of trial ==== 
- +The following command will create an event label named 'START' at the first frame of the trial.
-Here are two examples of creating explicit events based on metrics for frames and time. +
- +
-This example will place an event at the frame metric TEST_FRAME +
- +
-<code> +
-Event_Explicit +
-/Event_NameTEST +
-/FrameMETRIC::PROCESSED::TEST_FRAME +
-! /Time+
-+
-</code> +
- +
-This example will place an event at the time metric TEST_TIME +
- +
-<code> +
-Event_Explicit +
-/Event_Name= TEST +
-/Frame=  +
-/Time=METRIC::PROCESSED::TEST_TIME +
-+
-</code> +
- +
-=== Example: Create events at the start and end of the trial: ===+
  
 <code> <code>
Line 85: Line 62:
 </code> </code>
  
-[[Visual3D:Documentation:Definitions:EOF_(End_of_File)|EOF]] is now recognized as the last frame in the file, and the minus sign can be used.+The next **Event_Explicit** command will create an event labelled 'END' placed on the last frame of data, in some cases, the user may not know how many frames there are, which is why [[Visual3D:Documentation:Definitions:EOF_(End_of_File)|EOF]] is used to recognize the last frame in the file.
  
 <code> <code>
Line 95: Line 72:
 </code> </code>
  
-=== Example: Create an event 10 frames before the end of the trial: === +When creating an event a certain number of frames offset from the [[Visual3D:Documentation:Definitions:EOF_(End_of_File)|EOF]], minus (-) sign can be used to specify how many frames before the End of File that the desired event takes place.
- +
-[[Visual3D:Documentation:Definitions:EOF_(End_of_File)|EOF]] is now recognized as the last frame in the fileand the minus sign can be used.+
  
 <code> <code>
 Event_Explicit Event_Explicit
-/Event_Name= TEST+/Event_Name= EOF_MINUS_10
 /Frame= EOF - 10 /Frame= EOF - 10
 /Time= /Time=
Line 107: Line 82:
 </code> </code>
  
-=== Example: Create an event at multiple frames ===+This graph shows that the event labels were placed in the desired locations.
  
-Introduced in Version 6 +{{:visual3d:documentation:pipeline:event_commands:graph_example2.png?500|}}
-\\+
  
 +==== Example 3: Create an event at multiple frames ====
 +
 +This functionality was introduced into the command in **Version 6**. It will create three instances of the event label 'TEST' at frames 1, 5 and 10:
  
 <code> <code>
Line 121: Line 98:
 </code> </code>
  
-This command will create three instances of the EVENT_LABEL TEST at frames 1, 5, and 10 
  
-=== Example: Create an event at one second intervals ===+==== Example 4: Create an event at one second intervals ===
 +This final example represents the **Event_Explicit** command used within a loop in order to create an event at one second intervals throughout the file.
  
-! Determine the number of ranges +<code> 
-! For some files this might be 1 too many but it won't matter. +Set_Pipeline_Parameter_From_For_Loop
-**Set_Pipeline_Parameter_From_For_Loop**+
 /PARAMETER_NAME=COUNT /PARAMETER_NAME=COUNT
 /PARAMETER_INDEX_START=1 /PARAMETER_INDEX_START=1
Line 133: Line 109:
 /PARAMETER_INDEX_STEP=1 /PARAMETER_INDEX_STEP=1
 ! /PARAMETER_INDEX_TYPE=INTEGER ! /PARAMETER_INDEX_TYPE=INTEGER
-**;** +
-! execute a For_Each loop + 
-**For_Each**+For_Each
 /ITERATION_PARAMETER_NAME=INDEX /ITERATION_PARAMETER_NAME=INDEX
 ! /ITERATION_PARAMETER_COUNT_NAME= ! /ITERATION_PARAMETER_COUNT_NAME=
 /ITEMS=::COUNT /ITEMS=::COUNT
-**;** +
-**Event_Explicit**+ 
 +Event_Explicit
 /EVENT_NAME=TEST /EVENT_NAME=TEST
 ! /FRAME= ! /FRAME=
 /TIME=::INDEX /TIME=::INDEX
-**;** +
-**End_For_Each**+ 
 +End_For_Each
 /ITERATION_PARAMETER_NAME=INDEX /ITERATION_PARAMETER_NAME=INDEX
-**;**+; 
 +</code>
  
  
visual3d/documentation/pipeline/event_commands/event_explicit.1740074616.txt.gz · Last modified: 2025/02/20 18:03 by wikisysop