visual3d:documentation:pipeline:signal_commands:add_constant_to_signals
Table of Contents
Add Constant to Signals
Overview
The Add Constant to Signals command can be used to add a constant to a specified component of any signal(s). This can be used in cases where there is a constant error across all frames of a signal that must be corrected, i.e. a marker or target that is incorrect by a known amount.
Pipeline Command
The pipeline command can be found in the Pipeline Workshop under the Signal Math folder as so:
Add_Constant_To_Signals ! /SIGNAL_TYPES= ! /SIGNAL_FOLDER=ORIGINAL ! /SIGNAL_NAMES= ! /SIGNAL_COMPONENTS= ! /RESULT_TYPES= ! /RESULT_FOLDERS=PROCESSED ! /RESULT_NAME= ! /APPLY_AS_SUFFIX_TO_SIGNAL_NAME= ! /CONSTANT=0 ;
Command Parameters
The parameters that can be modified for this command are as follows:
| Signal Types | The type of signal to add a constant to |
| Signal Folder | The name of the signal folder |
| Signal Names | The name(s) of the signal(s) to add a constant to |
| Signal Components | The signal components to be included in the operation |
| Result Types | The type of the resulting signal |
| Result Folder | The name of the resulting folder |
| Result Name | The name of the resulting signal |
| Apply As Suffix To Signal Name | The result is given the same name as the original signal with the suffix added |
| Constant | The constant to be added to the signal(s) |
Dialog
Example: Adding Constant to Joint Angle and Landmark
This example shows how one could add the same constant to two signals at the same time (note that the constant and signal choices here are meaningless and just used as an example):
Add_Constant_To_Signals /SIGNAL_TYPES=LANDMARK+LINK_MODEL_BASED ! /SIGNAL_FOLDER=ORIGINAL /SIGNAL_NAMES=LKJC+LAnkleAngle /SIGNAL_COMPONENTS=ALL /RESULT_TYPES=DERIVED ! /RESULT_FOLDERS=PROCESSED /RESULT_NAME=LKJC_new+LAnk_new ! /APPLY_AS_SUFFIX_TO_SIGNAL_NAME= /CONSTANT=7000 ;
visual3d/documentation/pipeline/signal_commands/add_constant_to_signals.txt · Last modified: by wikisysop

