Exporting a 3DSSPP Batch File

From Software Product Documentation
Jump to navigation Jump to search

Creating a batch file for 3DSSPP does not require the user to build a Visual3D model because 3DSSPP is not looking for a model, but for a set of projected angles between sets of 3 markers. Because no model is used, Visual3D is unable to render a body in the 3D animation window.

In order to visualize a simple skeleton in Visual3D, you might consider recording a standing trial. To create the Visual3D model see:


!*************************************************************************
! TEXT_DESCRIPTION= Process the Lift Test
!
! Create a set of 3DSSPP batch files
! The batch files are annotated with the NIOSH lift test results
!*************************************************************************
!

File_New
;

! -----------------------------------------------------------------------------------------------------
! The user must input the mass and height of the subject and the load lifted. This pipeline
! assumes the user is working in Imperial units
! -----------------------------------------------------------------------------------------------------

Prompt_For_Multiple_Pipeline_Parameter_Values
/GLOBAL_PARAMETER_NAME=Mass_In_Pounds+Height_In_Inches+Load_In_Pounds+Gender
/DATATYPE=float+float+float+string
/DEFAULT_VALUE=135+70+30+FEMALE
! /Mass_In_Pounds=135
! /Height_In_Inches=70
! /Load_In_Pounds=30
;

! ----------------------------------------------------------------
! The user must select the folder containing the data files
! ----------------------------------------------------------------

Set_Pipeline_Parameter_To_Folder_Path
/PARAMETER_NAME=FOLDER
/PARAMETER_VALUE=
! /PARAMETER_VALUE_SEARCH_FOR=
! /PARAMETER_VALUE_REPLACE_WITH=
! /PARAMETER_VALUE_APPEND=
;

! -------------------------------------------------------------
! The pipeline assumes that there are 3 sets of trials
! It loads and TAGS the files according to the filenames
! -------------------------------------------------------------

For_Each
/ITERATION_PARAMETER_NAME=FILE
/ITEMS=floor-to-waist+knee-to-waist+waist-to-overhead
;

Open_File
/FILE_NAME=::FOLDER&*&::FILE&*.c3d
;
Assign_Tags_To_Files
/MOTION_FILE_NAMES=*&::FILE&*.c3d
! /QUERY=
/TAGS=::FILE
;

End_For_Each
/ITERATION_PARAMETER_NAME=FILE
;

Select_Active_File
/FILE_NAME=ALL_FILES
! /QUERY= ;

Evaluate_Expression
/EXPRESSION=::Mass_In_Pounds&/2.2
/RESULT_NAME=Mass
/RESULT_TYPE=METRIC
! /RESULT_FOLDER=PROCESSED
;

Evaluate_Expression
/EXPRESSION=::Height_In_Inches&/39.4
/RESULT_NAME=Height
/RESULT_TYPE=METRIC
! /RESULT_FOLDER=PROCESSED
;

Lowpass_Filter
/SIGNAL_TYPES=TARGET
! /SIGNAL_NAMES=
! /SIGNAL_FOLDER=ORIGINAL
! /RESULT_SUFFIX=
! /RESULT_FOLDER=PROCESSED
! /FILTER_CLASS=BUTTERWORTH
/FREQUENCY_CUTOFF=6
/NUM_REFLECTED=20
/TOTAL_BUFFER_SIZE=30
! /NUM_BIDIRECTIONAL_PASSES=1
;

Evaluate_Expression
/EXPRESSION=TARGET::PROCESSED::RHAN-TARGET::PROCESSED::RSHO
/RESULT_NAME=RHAN_OUT
! /RESULT_TYPE=DERIVED
! /RESULT_FOLDER=PROCESSED
;

! ---------------------------------------------
! create offsets in lieu of real landmarks when
! no link model is available
! ---------------------------------------------

Create_3DSSPP_Target_Offsets
/RESULT_FOLDER=PROCESSED
;

! -----------------------------
! Create Projected Angles using
! Compute_Planar_Angle
! -----------------------------

Create_3DSSPP_Projected_Angles
/RESULT_FOLDER=PROCESSED
;

! --------------------------------------------
! Create Events for the Origin and Destination
! --------------------------------------------

Create_3DSSPP_Origin_Destination_Events
/RESULT_FOLDER=PROCESSED
;

! ----------------------------------------------------------------------
! For convenience in checking the events created, Visual3D
! can be switched to Event Processing mode, graph the vertical
! hand position and highlight the events
! ----------------------------------------------------------------------

Switch_to_Event_Processing_Mode
;

Highlight_Event_Label
/EVENT_LABEL=ORIGIN+DEST+MAX
;

Interactive_Graph_Signals
/SIGNAL_TYPES=TARGET
/SIGNAL_NAMES=RHAN
/SIGNAL_FOLDER=PROCESSED
/SIGNAL_COMPONENTS=Z
/GRAPH_INDEX=1
/GRAPH_SUBINDEX=1
/REPLACE_CURRENT=TRUE
;

Interactive_Graph_Signals
/SIGNAL_TYPES=TARGET
/SIGNAL_NAMES=LHAN
/SIGNAL_FOLDER=PROCESSED
/SIGNAL_COMPONENTS=Z
/GRAPH_INDEX=2
/GRAPH_SUBINDEX=1
/REPLACE_CURRENT=TRUE
;

Select_Active_File
/FILE_NAME=ALL_FILES
! /QUERY=
;

! ------------------------------------------------------------------
! The final step is to export the collection of 3DSSPP batch files
! ------------------------------------------------------------------

Export_3DSSPP_Batch_File
/FILE_NAME=*.c3d
! /ANALYST_NAME=Analyst
! /ANALYST_COMMENTS=Comments
/LOAD=::Load_In_Pounds
/UNITS=Imperial
/SEX=::GENDER
/EVENTS=ORIGIN+DEST
;

Retrieved from ""