Apply Model Template

From Software Product Documentation
Revision as of 21:27, 11 November 2022 by Scotts (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Apply a Model Template to a Model (Calibration File).

Wildcards (*) can be used for FILE_NAME and MODEL_NAME.

Apply_Model_Template
/CALIBRATION_FILE=
/SUBJECT_PREFIX=
/MODEL_TEMPLATE=
/SET_PROMPT=Apply Model Template
/MISSING_TARGET_MESSAGE=FALSE
;

NOTE: In early versions of Visual3D, this command was called OPEN_MODEL_FILE. Even though this name no longer appears in the pipeline dialog, if it appears in the Pipeline Script, it will still be recognized and processed correctly by Visual3D.

An example of a script is found below:

!**********************************************
! Apply Model Template
!********************************************** 

! New Workspace
File_New
;

! Set a path for the location of the data
Set_Pipeline_Parameter
/PARAMETER_NAME=FOLDER
/PARAMETER_VALUE=c:\demo files\
;

! Set the parameter for the static file
Set_Pipeline_Parameter
/PARAMETER_NAME=STATIC
/PARAMETER_VALUE=::FOLDER&static.c3d
;

! Apply the model template using the static trial. Leaving the MODEL_TEMPLATE parameter
! blank will bring up a dialog that allows the user to browse and select the model template
Apply_Model_Template
/MODEL_TEMPLATE=
/CALIBRATION_FILE=::STATIC
;

! Set Weight
Set_Subject_Weight
/CALIBRATION_FILE=::STATIC
/WEIGHT=1.0
;

! Set Height
Set_Subject_Height
/CALIBRATION_FILE=::STATIC
/HEIGHT=1
;

! Open the movement file
Open_File
/FILE_NAME=::FOLDER&movement.c3d
;

! Assign the model file to the movement file
Assign_Model_File
/CALIBRATION_FILE=::STATIC
/MOTION_FILE_NAMES=::FOLDER&movement.c3d
;
Retrieved from ""