visual3d:documentation:pipeline:pipeline_commands:set_pipeline_parameter
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:pipeline_commands:set_pipeline_parameter [2024/07/03 17:29] – removed sgranger | visual3d:documentation:pipeline:pipeline_commands:set_pipeline_parameter [2024/07/17 15:46] (current) – created sgranger | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Set Pipeline Parameter ====== | ||
+ | |||
+ | Pipeline parameters can be created in the pipeline and used as variables in other commands in the same pipeline. | ||
+ | |||
+ | |**Set_Pipeline_Parameter** | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |||
+ | ==== Example: Set Pipeline Values via Search and Replace ==== | ||
+ | |||
+ | This example sets pipeline parameters and new values via search and replace. The pipeline parameter **original** and the string value **replacethexxxx**, | ||
+ | |||
+ | < | ||
+ | !Set the Pipeline parameter original to the value replacethexxxx | ||
+ | Set_Pipeline_Parameter | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | ! Set the Pipeline parameter newparameter to a new value replacethezzzz by replacing | ||
+ | ! part of the string zzzz for xxxx | ||
+ | Set_Pipeline_Parameter | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | ==== Example: Set Pipeline Parameter Value to a String ==== | ||
+ | |||
+ | For example, the following command creates a global parameter **SIGNALS** which contains the string **RightFoot1+RightFoot2+RightFoot3**. A low pass filter is run on the pipeline parameter **SIGNALS**. | ||
+ | |||
+ | < | ||
+ | Set_Pipeline_Parameter | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | ! All three signals will be processed with low pass filter | ||
+ | Lowpass_Filter | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | ==== Example: Search and Replace + Sign ==== | ||
+ | |||
+ | The plus sign typically indicates different a list of values, but sometimes a user may want to search and replace a plus sign. This is allowed if the user types \+. An example is below: | ||
+ | |||
+ | < | ||
+ | Set_Pipeline_Parameter | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | **Result: | ||
+ | |||
+ | < | ||
+ | Set_Pipeline_Parameter | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | **Result: | ||
+ | |||
+ | ==== Example: Set Pipeline Parameter Multi-Pass ==== | ||
+ | |||
+ | MultiPass was introduced january 21, 2014 | ||
+ | |||
+ | The resulting parameter could be a new pipeline parameter | ||
+ | |||
+ | for example, the resulting string could be ::VALUE | ||
+ | If MultiPass were true, this should return the value of the parameter VALUE not the string :: | ||
+ | example: | ||
+ | |||
+ | < | ||
+ | Set_Pipeline_Parameter | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Pipeline Parameter : | ||
+ | |||
+ | < | ||
+ | --------------------------------------------------------------------------- | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Set_Pipeline_Parameter | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Pipeline Parameter : | ||
+ | |||
+ | < | ||
+ | --------------------------------------------------------------------------- | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Set_Pipeline_Parameter | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Pipeline Parameter : | ||
+ | |||
+ | < | ||
+ | --------------------------------------------------------------------------- | ||
+ | </ | ||
+ | |||
+ | if we set MULTI_PASS= FALSE | ||
+ | |||
+ | < | ||
+ | Set_Pipeline_Parameter | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Pipeline Parameter : | ||
+ | |||
+ | if we set MULTI_PASS= TRUE | ||
+ | |||
+ | < | ||
+ | Set_Pipeline_Parameter | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Pipeline Parameter : | ||
+ | |||
+ | **NOTE:** If the above does not work (if FINAL is not set to 7, and MULTI_PASS is set to TRUE), instead of writing ":: | ||
+ | |||
+ | |||
visual3d/documentation/pipeline/pipeline_commands/set_pipeline_parameter.1720027784.txt.gz · Last modified: 2024/07/03 17:29 by sgranger