visual3d:documentation:pipeline:file_commands:export_3d_animation_to_image
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:export_3d_animation_to_image [2024/06/19 12:50] – sgranger | visual3d:documentation:pipeline:file_commands:export_3d_animation_to_image [2025/06/09 21:11] (current) – wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{{{{{export a snapshot of the 3d viewer and save the file to disk. | + | ====== Export 3D Animation To Image ====== |
- | | + | ===== Overview ===== |
- | * multiple frames of data can be exported | + | The **Export_3D_Animation_To_Image** command is used to capture and export static images from the 3D viewer in Visual3D. |
+ | * Command supports exporting one or more frames to multiple | ||
+ | * Multiple | ||
- | **note: if there are multiple output files (either because of multiple files or multiple frames), the name of the file is used as a prefix on the output file and the frame number is appended.** | + | ===== Pipeline Command |
- | ===== contents | + | |
+ | The command below is as seen on the Visual3D application, | ||
+ | < | ||
+ | Export_3D_Animation_To_Image | ||
+ | ! /FILE_NAME= | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! /END_FRAME= | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
- | * [[# | + | ===== Command Parameters ===== |
- | * [[# | + | |
- | * [[# | + | |
- | * [[# | + | |
+ | The following table shows the command parameters and descriptions: | ||
- | ===== pipeline command | + | |**Parameter**|**Description**| |
+ | |**! /FILE_NAME=**|Motion file(s) to export frames from. Can use wildcards (e.g., ' | ||
+ | |**! / | ||
+ | |**! / | ||
+ | |**! / | ||
+ | |**! / | ||
+ | |**! / | ||
+ | |**! /END_FRAME=**|Final frame to export. Leave blank to export only the start frame.| | ||
+ | |**! / | ||
+ | |**! / | ||
+ | |**! / | ||
+ | |**! / | ||
- | **export_3d_animation_to_image** | ||
- | /file_name= | ||
- | / | ||
- | / | ||
- | / | ||
- | /end_frame= | ||
- | / | ||
- | / | ||
- | / | ||
- | / | ||
- | **;** | ||
- | ==== exporting one image ==== | ||
- | in the following example: | + | ===== Dialog ===== |
- | * one image is exported from the first file that matches the wildcard specificat | + | The command can be edited in a text editor or opened as a dialog. The dialog allows user to select export parameters |
- | * frame 10 is exported | + | |
- | * the output file is specified | + | |
- | \\ | + | {{: |
+ | * **Motion File**: Drop-down to select the motion file currently loaded in the workspace. | ||
+ | * **Export File as Filename plus Frame Number**: Appends frame number to image name (e.g., ' | ||
+ | * **Exported Image File**: Specify the base name or folder where the image(s) will be saved. | ||
+ | * **Output Width/ | ||
+ | * **Start Frame/End Frame**: Set the frame range to export. Leave 'End Frame' blank to export just one. | ||
+ | * **Event Sequence & Exclusion**: | ||
- | **export_3d_animation_to_image** | + | ===== Examples |
- | /file_name=*2.c3d | + | |
- | / | + | |
- | / | + | |
- | ! / | + | |
- | / | + | |
- | /end_frame= | + | |
- | / | + | |
- | / | + | |
- | ! / | + | |
- | ! / | + | |
- | **;** | + | |
- | exportimagedlg2.jpg | + | |
- | mvc002_61.png | + | |
- | ==== exporting multiple images | + | |
- | in the following example: | + | The following examples will go through the use of the Export_3D_Animation_To_Image command |
- | * images are exported from all files in the workspace. | + | ==== Example |
- | * frames | + | |
- | * all frames within the event_sequence (lhs-lto) are exported | + | |
- | * the target folder for the files is specified using the image_file_name parameter | + | |
- | * the exported file contains the name of the original file appended with the frame number | + | |
- | \\ | + | This example exports one snapshot from a trial matching ' |
+ | < | ||
+ | Export_3D_Animation_To_Image | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | /END_FRAME= | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
- | **export_3d_animation_to_image** | + | ==== Example |
- | /file_name=*.c3d | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | /end_frame=2 | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | **;** | + | |
- | exportimagedlg.jpg | + | |
- | ===== version 4 implementation ===== | + | |
- | export a snapshot of the 3d viewer | + | This example exports frame 1 and 2 from all trials (*.c3d) in the workspace. The frame range is restricted |
- | in version 4: | + | Each output file will include both the C3D name and the frame number. |
+ | < | ||
+ | Export_3D_Animation_To_Image | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | This example helps automate capturing consistent gait-phase images across multiple subjects. | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Notes ===== | ||
+ | |||
+ | ==== Version 4 Implementation ==== | ||
+ | |||
+ | Export a snapshot of the 3D viewer and save the file to disk. | ||
+ | |||
+ | In Version 4: | ||
* only one file in the workspace can be selected | * only one file in the workspace can be selected | ||
* only one frame of data can be exported | * only one frame of data can be exported | ||
* only one exported filename can be specified. | * only one exported filename can be specified. | ||
- | **export_3d_animation_to_image** | + | < |
- | ! /file_name= | + | Export_3D_Animation_To_Image |
- | ! /image_file_name= | + | ! /FILE_NAME= |
- | ! /frame=1 | + | ! /IMAGE_FILE_NAME= |
- | ! /output_width=640 | + | ! /FRAME=1 |
- | ! /output_height=480 | + | ! /OUTPUT_WIDTH=640 |
- | **;** | + | ! /OUTPUT_HEIGHT=480 |
- | this is consistent with the export option under the [[[https:// | + | ; |
+ | </ | ||
+ | |||
+ | This is consistent with the export option under the [[https:// | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | [[Visual3D: | ||
- | \\ | ||
- | [[visual3d: | ||
- | }}}}}} |
visual3d/documentation/pipeline/file_commands/export_3d_animation_to_image.1718801407.txt.gz · Last modified: 2024/06/19 12:50 by sgranger