visual3d:documentation:pipeline:event_commands:event_rename
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:event_commands:event_rename [2024/07/17 15:10] – sgranger | visual3d:documentation:pipeline:event_commands:event_rename [2025/04/29 14:25] (current) – [Dialog] wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
+ | ===== Overview ===== | ||
+ | The **Event_Rename** command is used to rename an existing event while optionally defining event sequences, excluding specific events, or selecting particular event instances. The command is useful when standardizing event names for consistency across datasets or refining event definitions within specific motion analysis workflows. | ||
- | To **Rename** an event label, you can use a pipeline command or you can select | + | The functionality of this command can also be achieved by right-clicking on an event in the data tree, **Rename |
- | ==== Interactive selection from the data tree: ==== | + | {{:visual3d: |
- | {{: | + | ===== Pipeline Command |
- | {{: | + | The command below is as seen in the Visual3D application. |
- | ==== From the Edit Events Dialog | + | |
- | {{: | + | < |
- | ==== Pipeline command: ==== | + | Event_Rename |
+ | /EVENT_NAME= | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
- | **Event_Rename** | + | ===== Command Parameters |
- | /Event_Name= The name of the original event | + | The following table shows the command parameters and descriptions: |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | **;** | + | |
- | ==== Event_Rename Dialog | + | |
- | {{: | + | |**Parameters** |
- | ==== Event Instance ==== | + | |**/ |
+ | |**/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
- | Event_Instance=0 -> copy all instances of the Event | + | ==== 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. | ||
- | Event_Instance=n -> copy the nth instance of the Event | + | {{: |
- | if n<1 count instances from the last Event; e.g. -1 = last instance | + | * **Event to Rename**: Name of the existing event to be changed. |
+ | * **New Event Label Name**: New name to assign to the selected event. | ||
+ | * **Find Event Within Range**: Define start and end of event range. | ||
+ | * **Range Instance**: Determine number of ranges to evaluate. | ||
+ | * **Event Instance**: Which occurrence of the event to be renamed. If ' | ||
- | ==== Range Instance | + | ===== Examples |
+ | The following examples will go through the use of the Event_Rename command in the Visual3D application. | ||
- | Range_Instance=0 -> use all instances | + | ==== Example 1: Basic Gait Event Rename ==== |
+ | In this first example, the simple gait event of Right Heelstrike (RHS), found with the **Automatic_Gait_Events** command will be renamed to "Right Foot Contact" | ||
- | Range_Instance=n -> use the nth instance of the Range | + | The first step is to identify |
- | if n<1 count instances from the last Range; e.g. -1 = last range | + | <code> |
+ | Automatic_Gait_Events | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
- | ==== Example ==== | + | Next, we can apply the Event_Rename command in order to rename the RHS event: |
- | In this example, the last event instance in the first range of the event sequence START+START is renamed. | + | < |
+ | Event_Rename | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
- | {{:EventRenameExampleDlg.jpg}} | + | Now that this pipeline has been applied, the Event Label folder will reflect this change: |
- | **Event_Rename** | + | |
- | /EVENT_NAME=TEST | + | {{:visual3d: |
- | /NEW_EVENT_NAME=NEWTEST | + | |
- | /EVENT_INSTANCE=-1 | + | ==== Example 2: Renaming an Event Within a Sequence ==== |
- | /RANGE_INSTANCE=1 | + | In this example, the **Event_Rename** |
- | / | + | |
+ | < | ||
+ | Automatic_Gait_Events | ||
+ | ! /FRAME_WINDOW=8 | ||
+ | ! /USE_TPR=TRUE | ||
+ | ! /TPR_EVENT_INSTANCE=1 | ||
+ | ; | ||
+ | |||
+ | Event_Define_Event_Sequence | ||
+ | /EVENT_SEQUENCE_NAME=Gait Cycle | ||
+ | / | ||
! / | ! / | ||
- | **;** | + | ! / |
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | Event_Rename | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
visual3d/documentation/pipeline/event_commands/event_rename.1721229047.txt.gz · Last modified: 2024/07/17 15:10 by sgranger