User Tools

Site Tools


visual3d:documentation:pipeline:file_commands:export_3d_animation_to_image

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
visual3d:documentation:pipeline:file_commands:export_3d_animation_to_image [2024/07/17 15:45] – created sgrangervisual3d:documentation:pipeline:file_commands:export_3d_animation_to_image [2025/06/03 15:49] (current) wikisysop
Line 1: Line 1:
 ====== Export 3D Animation To Image ====== ====== Export 3D Animation To Image ======
  
-Export a snapshot of the 3D viewer and save the file to disk.+===== Overview ===== 
 +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 image formats for documentation and presentation. 
 +  * Multiple files in the workspace can be selected, and images can be exported for single or multiple frames within specific event sequences.
  
-  * multiple files in the workspace can be selected +===== Pipeline Command =====
-  * multiple frames of data can be exported to individual files+
  
-**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.** +The command below is as seen on the Visual3D application, it has many parameters as there are many options to manipulate this command.
-==== Contents ====+
  
 +<code>
 +Export_3D_Animation_To_Image
 +! /FILE_NAME=
 +! /IMAGE_FILE_NAME=
 +! /APPEND_FRAME_TO_FILENAME=FALSE
 +! /APPEND_C3DNAME_TO_FILENAME=FALSE
 +! /IMAGE_FORMAT=png
 +! /START_FRAME=1
 +! /END_FRAME=
 +! /EVENT_SEQUENCE=
 +! /EXCLUDE_EVENTS=
 +! /OUTPUT_WIDTH=640
 +! /OUTPUT_HEIGHT=480
 +;
 +</code>
  
 +===== Command Parameters =====
  
-  * [[#Pipeline_Command|1 Pipeline Command]] +The following table shows the command parameters and descriptions:
-    * [[#Exporting_one_image|1.1 Exporting one image]] +
-    * [[#Exporting_multiple_images|1.2 Exporting multiple images]] +
-  * [[#Version_4_Implementation|2 Version 4 Implementation]]+
  
 +|**Parameter**|**Description**|
 +|**! /FILE_NAME=**|Motion file(s) to export frames from. Can use wildcards (e.g., '*.c3d) or specify a specific file.|
 +|**! /IMAGE_FILE_NAME=**|Path and name (or folder) where image will be saved.|
 +|**! /APPEND_FRAME_TO_FILENAME=**|If 'TRUE', appends source file name (C3D) to the image file name when batch exporting.|
 +|**! /APPEND_C3DNAME_TO_FILENAME=**|If 'TRUE', appends source file name (C3D) to the image file name when batch exporting.|
 +|**! /IMAGE_FORMAT=**|Output format (e.g., .png, .bmp, .jpg). Defaults to .png.|
 +|**! /START_FRAME=**|First frame to export. Use a specific number (e.g.m 10) or combine with event sequences.|
 +|**! /END_FRAME=**|Final frame to export. Leave blank to export only the start frame.|
 +|**! /EVENT_SEQUENCE=**|Optional event sequence (e.g., 'LHS+LTO) to restrict frame export to specific gait phases.|
 +|**! /EXCLUDE_EVENTS=**|Events that, if present, will exclude the sequence from being exported.|
 +|**! /OUTPUT_WIDTH=**|Width of the output image in pixels. Default is '640'.|
 +|**! /OUTPUT_HEIGHT=**|Height of the output image in pixels. Default is '480'.|
  
-==== Pipeline Command ==== 
  
-**Export_3D_Animation_To_Image** +===== Dialog =====
-/FILE_NAME= +
-/IMAGE_FILE_NAME= +
-/APPEND_FRAME_TO_FILENAME= +
-/START_FRAME=+
-/END_FRAME= +
-/EVENT_SEQUENCE= +
-/EXCLUDE_EVENTS= +
-/OUTPUT_WIDTH=640 +
-/OUTPUT_HEIGHT=480 +
-**;** +
-=== Exporting one image ===+
  
-In the following example:+The command can be edited in a text editor or opened as a dialog. The dialog allows user to select export parameters using visual options.
  
-  * One Image is exported from the first file that matches the wildcard specificat +{{:visual3d:documentation:pipeline:file_commands:exportc3danim_image_dlog.png?400|}}
-  * Frame 10 is exported +
-  * The output file is specified using the IMAGE_FILE_NAME parameter+
  
-\\+  * **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., 'Frame_001.png'
 +  * **Exported Image File**: Specify the base name or folder where the image(s) will be saved. 
 +  * **Output Width/Height**: Dimensions of the exported image in pixels. 
 +  * **Start Frame/End Frame**: Set the frame range to export. Leave 'End Frame' blank to export just one. 
 +  * **Event Sequence & Exclusion**: Limit frame export to within specified gait phases and exclude sequences with specific events.
  
 +===== Examples =====
  
-**Export_3D_Animation_To_Image**+The following examples will go through the use of the Export_3D_Animation_To_Image command in the Visual3D. 
 + 
 +==== Example 1: Exporting a single image ==== 
 + 
 +This example exports one snapshot from a trial matching '*2.c3d', at frame 10. The file is saved for a specific location using a fixed filename. 
 + 
 +<code> 
 +Export_3D_Animation_To_Image
 /FILE_NAME=*2.c3d /FILE_NAME=*2.c3d
 /IMAGE_FILE_NAME=Z:\temp\outImage.png /IMAGE_FILE_NAME=Z:\temp\outImage.png
 /APPEND_FRAME_TO_FILENAME=FALSE /APPEND_FRAME_TO_FILENAME=FALSE
-/IMAGE_FORMAT=png+/APPEND_C3DNAME_TO_FILENAME=FALSE 
 +/IMAGE_FORMAT=.png
 /START_FRAME=10 /START_FRAME=10
 /END_FRAME= /END_FRAME=
-/EVENT_SEQUENCE= +/EVENT_SEQUENCE= 
-/EXCLUDE_EVENTS+/EVENT_EVENTS
-/OUTPUT_WIDTH=640 +/OUTPUT_WIDTH=640 
-/OUTPUT_HEIGHT=480 +/OUTPUT_HEIGHT=480 
-**;** +
-{{:ExportImageDlg2.jpg}} +</code>
-{{:mvc002_61.png}} +
-=== Exporting multiple images ===+
  
-In the following example:+==== Example 2Exporting multiple images from gait phase ====
  
-  * Images are exported from all files in the workspace. +This example exports frame 1 and 2 from all trials (*.c3d) in the workspace. The frame range is restricted to 'LHS' and 'LTO" sequences. 
-  * Frames 1 and 2 are exported +
-  * 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+
  
-\\+Each output file will include both the C3D name and the frame number.
  
- +<code> 
-**Export_3D_Animation_To_Image**+Export_3D_Animation_To_Image
 /FILE_NAME=*.c3d /FILE_NAME=*.c3d
 /IMAGE_FILE_NAME=Z:\temp\ /IMAGE_FILE_NAME=Z:\temp\
 /APPEND_FRAME_TO_FILENAME=TRUE /APPEND_FRAME_TO_FILENAME=TRUE
 +/APPEND_C3DNAME_TO_FILENAME=TRUE
 +/IMAGE_FORMAT=.png
 /START_FRAME=1 /START_FRAME=1
 /END_FRAME=2 /END_FRAME=2
 /EVENT_SEQUENCE=LHS+LTO /EVENT_SEQUENCE=LHS+LTO
-/EXCLUDE_EVENTS=+/EXCLUDE_EVENTS=
 /OUTPUT_WIDTH=640 /OUTPUT_WIDTH=640
 /OUTPUT_HEIGHT=480 /OUTPUT_HEIGHT=480
-**;** +
-{{:ExportImageDlg.jpg}}+</code> 
 + 
 +This example helps automate capturing consistent gait-phase images across multiple subjects. 
 + 
 + 
 +---- 
 + 
 +===== Notes ===== 
 ==== Version 4 Implementation ==== ==== Version 4 Implementation ====
  
 Export a snapshot of the 3D viewer and save the file to disk. Export a snapshot of the 3D viewer and save the file to disk.
  
-in Version 4: +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**+<code> 
 +Export_3D_Animation_To_Image
 ! /FILE_NAME= ! /FILE_NAME=
 ! /IMAGE_FILE_NAME= ! /IMAGE_FILE_NAME=
Line 96: Line 126:
 ! /OUTPUT_WIDTH=640 ! /OUTPUT_WIDTH=640
 ! /OUTPUT_HEIGHT=480 ! /OUTPUT_HEIGHT=480
-**;** +; 
-This is consistent with the export option under the [[[https://www.c-motion.com/v3dwiki/index.php?title=Menus#File_Menu|File Menu Item]]]+</code> 
 + 
 +This is consistent with the export option under the [[[https://www.c-motion.com/v3dwiki/index.php?title=Menus#File_Menu|File Menu Item]] 
 + 
 + 
 +---- 
  
-\\ 
 [[Visual3D:Documentation:Pipeline:General_Information:Pipeline_Commands_Reference|Back to Pipeline Commands Reference]] [[Visual3D:Documentation:Pipeline:General_Information:Pipeline_Commands_Reference|Back to Pipeline Commands Reference]]
  
  
  
visual3d/documentation/pipeline/file_commands/export_3d_animation_to_image.txt · Last modified: 2025/06/03 15:49 by wikisysop