User Tools

Site Tools


visual3d:documentation:pipeline:pipeline_commands:pipeline_parameters_example

Pipeline Parameters Example

This example will add a TAG to an individual file based on a C3D parameter. In this case, the file will be tagged from the motion system manufacturer. The pipeline pulls this information from the C3D parameter.

!===========================================================
! Add a TAG to an individual file based on a C3D parameter. 
!===========================================================

! Get a list of all of the files in the workspace 
Set_Pipeline_Parameter_To_List_Of_Tagged_Files 
/PARAMETER_NAME=FILES 
/TAG_NAME=ALL_FILES 
! /GET_CURRENT_SELECTED_FILES=false 
! /USE_SHORT_FILENAMES=false 
;

! Set up a loop, so that we can treat each file individually
! and assign the the C3D parameter name as a TAG
For_Each 
/ITERATION_PARAMETER_NAME=INDEX 
/ITEMS=::FILES 
;

   ! Select the active file from the looping index 
   Select_Active_File 
   /FILE_NAME=::INDEX 
   ! /QUERY= 
   ;

   ! Set a pipeline parameter from the C3D parameter
   ! In this case, the parameter pulled from the C3D file is the manufacturer name
   Set_Pipeline_Parameter_To_Data_Value 
   /PARAMETER_NAME=TEST 
   /SIGNAL_TYPES=PARAMETERS 
   /SIGNAL_NAMES=COMPANY 
   /SIGNAL_FOLDER=MANUFACTURER 
   /SIGNAL_COMPONENTS=ALL_COMPONENTS 
   ;

   ! Assign the C3D parameter name as a TAG 
   Assign_Tags_To_File 
   /MOTION_FILE_NAMES=::INDEX 
   ! /QUERY= 
   /TAGS=::TEST 
   ;

! End the loop 
End_For_Each 
/ITERATION_PARAMETER_NAME=INDEX 
;
visual3d/documentation/pipeline/pipeline_commands/pipeline_parameters_example.txt · Last modified: 2024/07/17 11:46 by sgranger