visual3d:documentation:pipeline:pipeline_commands:set_pipeline_parameter_from_expression
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_from_expression [2024/06/19 12:52] – sgranger | visual3d:documentation:pipeline:pipeline_commands:set_pipeline_parameter_from_expression [2026/02/06 21:01] (current) – wikisysop | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | **set_pipeline_parameter_from_expression** | + | ====== Set Pipeline Parameter From Expression ====== |
| - | / | + | This command can be used to set the value of a specified |
| - | /expression=metric:: | + | |
| - | /as_integer=true | + | |
| - | **;** | + | |
| - | the pipeline | + | |
| - | getting the syntax correct | + | ====Pipeline Command==== |
| + | The command | ||
| + | < | ||
| + | Set_Pipeline_Parameter_From_Expression | ||
| + | / | ||
| + | / | ||
| + | ! / | ||
| + | ; | ||
| + | </ | ||
| - | for many pipeline commands visual3d recognizes | + | ====Command Parameters==== |
| + | The following table shows the command parameters that can be used to define the command | ||
| + | |**Parameter** | ||
| + | |**Parameter Name**|The name of the Pipeline Parameter. The parameter is referred to by other commands using two colons (::) in front of the parameter name| | ||
| + | |**Expression**|The expression used to define the parameter value| | ||
| + | |**As Integer**|True or False: Express the resulting parameter value as an integer| | ||
| - | visual3d cannot make that distinction | + | For more information on how expressions can be used and defined see [[visual3d: |
| - | consider the following which uses string comparisons and a pipeline parameter in the expression: | + | ====Syntax Notes==== |
| - | **set_pipeline_parameter_from_expression** | + | < |
| - | /parameter_name= mval | + | Set_Pipeline_Parameter_From_Expression |
| - | /expression=(&::tag_names& | + | /PARAMETER_NAME=t_Mass |
| - | /as_integer=false | + | /EXPRESSION=METRIC::PROCESSED:: |
| - | **;** | + | /AS_INTEGER=TRUE |
| - | the goal was to set mval to 4.6 when the pipeline parameter | + | ; |
| + | </ | ||
| + | The pipeline parameter | ||
| - | one solution is to separate | + | Getting |
| - | **set_pipeline_parameter** | + | For many pipeline commands Visual3D recognizes the conflict and handles the situations in a context specific way. |
| - | / | + | |
| - | / | + | |
| - | **;** | + | |
| - | \\ | + | |
| + | Visual3D cannot make that distinction and " | ||
| - | **set_pipeline_parameter_from_expression** | + | Consider the following which uses string comparisons and a pipeline parameter in the expression: |
| - | /parameter_name=t_mass | + | |
| - | /expression=::temp | + | < |
| - | /as_integer=false | + | Set_Pipeline_Parameter_From_Expression |
| - | **;** | + | /PARAMETER_NAME= MVAL |
| + | /EXPRESSION=(&::TAG_NAMES& | ||
| + | /AS_INTEGER=FALSE | ||
| + | ; | ||
| + | </ | ||
| + | |||
| + | The goal was to set MVAL to 4.6 when the pipeline parameter TAG_NAMES was equal to the string " | ||
| + | |||
| + | One solution is to separate the pipeline parameter from the expression. | ||
| + | |||
| + | < | ||
| + | Set_Pipeline_Parameter | ||
| + | / | ||
| + | / | ||
| + | ; | ||
| + | </ | ||
| \\ | \\ | ||
| - | another solution, which is even trickier in terms of syntax is: | ||
| - | **set_pipeline_parameter_from_expression** | + | < |
| - | /parameter_name=scott | + | Set_Pipeline_Parameter_From_Expression |
| - | /expression=("& | + | /PARAMETER_NAME=t_Mass |
| - | ! /as_integer=true | + | /EXPRESSION=::TEMP |
| - | **;** | + | /AS_INTEGER=FALSE |
| - | this forces visual3d to recognize the strings as strings and the & is treated correctly. | + | ; |
| + | </ | ||
| \\ | \\ | ||
| + | Another solution, which is even trickier in terms of syntax is: | ||
| + | < | ||
| + | Set_Pipeline_Parameter_From_Expression | ||
| + | / | ||
| + | / | ||
| + | ! / | ||
| + | ; | ||
| + | </ | ||
| - | ==== get global metrics ==== | + | This forces Visual3D to recognize the strings as strings and the & is treated correctly. |
| - | global metrics can be set to a pipeline parameter by setting " | + | \\ |
| - | **set_pipeline_parameter_from_expression** | ||
| - | / | ||
| - | / | ||
| - | / | ||
| - | **;** | ||
| + | ====Example: | ||
| + | Global metrics can be set to a pipeline parameter by setting " | ||
| + | < | ||
| + | Set_Pipeline_Parameter_From_Expression | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | ; | ||
| + | </ | ||
visual3d/documentation/pipeline/pipeline_commands/set_pipeline_parameter_from_expression.1718801553.txt.gz · Last modified: by sgranger
