visual3d:documentation:pipeline:file_commands:file_rename
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:file_commands:file_rename [2024/06/19 13:59] – created sgranger | visual3d:documentation:pipeline:file_commands:file_rename [2025/07/30 14:59] (current) – wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | \\ | + | ====== |
- | Renames the specified file(s). This can also be done manually by going to File->Rename. | + | |
- | |< | + | ===== Overview ===== |
- | \\ | + | The **File_Rename** command in Visual3D is used to rename one or more existing C3D files in the workspace. This command is especially helpful when automating naming conventions for large datasets or batch-processing files across multiple subjects or trials. |
+ | This is equivalent to selecting **File > Rename** from the Visual3D application menu. The command provides flexible renaming options, including the ability to use Search/ | ||
- | ==== Parameters | + | ===== Pipeline Command ===== |
- | * **EXISTING_FILE_NAME: | + | The command below is as seen on the Visual3D application, the parameters allow for manipulation of the command' |
- | * **NEW_FILE_NAME: | + | < |
- | * **USE_SEARCH_REPLACE:** Specify TRUE or FALSE to use the search/replace function. This must be used in conjunction with the SEARCH_FOR | + | File_Rename |
+ | ! / | ||
+ | ! / | ||
+ | ! /USE_SEARCH_REPLACE=FALSE | ||
+ | ! /SEARCH_FOR= | ||
+ | ! /REPLACE_WITH= | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
- | * **SEARCH_FOR: | + | ===== Command Parameters ===== |
- | * **REPLACE_WITH: | + | The following table shows the command |
- | | + | |**Parameter**|**Description**| |
+ | |**! / | ||
+ | |**! / | ||
+ | |**! / | ||
+ | |**! / | ||
+ | |**! / | ||
+ | |**! / | ||
+ | |**! / | ||
- | **NOTE:** Since users use similar naming conventions for C3D files, Visual3D stores the file path from where the C3D file was original loaded to differentiate between different files. Only remove the file path if you have a very good reason, and if you do, be careful when comparing between subjects, sessions, conditions, etc.\\ | + | ===== Dialog ===== |
- | * **RENAME_STATIC_CALIBRATION_FILES: | + | The command can be edited in the text editor, |
+ | {{: | ||
- | ==== Example1: Search/ | + | * **Existing File(s)**: Dropdown to select a specific file or ALL_FILES. |
+ | * **New File Name**: Used to rename one file to a new fixed name. | ||
+ | * **Remove File Paths**: Options to strip the full file path from the file reference in workspace. | ||
+ | * **Rename using Search/ | ||
+ | * **Search For/Replace With**: Provide the substring to search and the new text to replace it with. | ||
+ | * **Also Rename Static Calibration Files**: Ensures associated calibration files are renamed accordingly. | ||
- | The search/ | + | ===== Examples ===== |
- | In the following example, the C3D files have the name " | + | The following example |
+ | |||
+ | ==== Example 1: Search/ | ||
+ | |||
+ | This example demonstrates how to rename multiple | ||
+ | |||
+ | Assume you have accidentally named your RUNNING trial files with the prefix | ||
+ | |||
+ | You want to rename these **Sub01_Run001.c3d, Sub01_Run002.c3d, | ||
< | < | ||
File_Rename | File_Rename | ||
- | ! / | + | / |
! / | ! / | ||
/ | / | ||
- | / | + | / |
- | / | + | / |
- | ! / | + | / |
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | This command scans all loaded files and replaces the word " | ||
+ | |||
+ | |||
+ | === Example 2: Rename File After Gait Event Detection === | ||
+ | |||
+ | This example walks through a typical workflow where a CMZ workspace is loaded, gait events are applied, and the resulting workspace in Visual3D is renamed and saved. | ||
+ | |||
+ | Step 1: Clear workspace and load file which does not have Gait Events already loaded | ||
+ | |||
+ | < | ||
+ | File_New | ||
+ | |||
+ | ; | ||
+ | |||
+ | |||
+ | File_Open | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! /SUFFIX= | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Step 2: Apply automatic gait events and then rename the workspace file to reflect the change. | ||
+ | |||
+ | < | ||
+ | Automatic_Gait_Events | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | File_Rename | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
! / | ! / | ||
; | ; | ||
</ | </ | ||
- | \\ | + | Renames the updated file with a new name to reflect that gait events were added. |
+ | |||
+ | |||
+ | ===== Notes ===== | ||
+ | * This command only renames files inside the Visual3D workspace. If you want to rename physical files on disk, that must be handled externally. | ||
+ | |||
+ | |||
+ | ---- | ||
[[Visual3D: | [[Visual3D: | ||
visual3d/documentation/pipeline/file_commands/file_rename.1718805594.txt.gz · Last modified: 2024/06/19 13:59 by sgranger