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/26 20:06] – removed sgranger | visual3d:documentation:pipeline:pipeline_commands:set_pipeline_parameter_from_expression [2024/07/17 15:46] (current) – created sgranger | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Set Pipeline Parameter From Expression ====== | ||
+ | |||
+ | **Set_Pipeline_Parameter_From_Expression** | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | **;** | ||
+ | The pipeline parameter contains the value of the expression. | ||
+ | |||
+ | Getting the syntax correct can be challenging because there can be a conflict between the & as a concatenation parameter in a pipeline parameter and the & as a boolean " | ||
+ | |||
+ | For many pipeline commands Visual3D recognizes the conflict and handles the situations in a context specific way. | ||
+ | |||
+ | Visual3D cannot make that distinction and " | ||
+ | |||
+ | Consider the following which uses string comparisons and a pipeline parameter in the expression: | ||
+ | |||
+ | **Set_Pipeline_Parameter_From_Expression** | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | **;** | ||
+ | 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** | ||
+ | / | ||
+ | / | ||
+ | **;** | ||
+ | \\ | ||
+ | |||
+ | |||
+ | **Set_Pipeline_Parameter_From_Expression** | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | **;** | ||
+ | \\ | ||
+ | Another solution, which is even trickier in terms of syntax is: | ||
+ | |||
+ | **Set_Pipeline_Parameter_From_Expression** | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | **;** | ||
+ | This forces Visual3D to recognize the strings as strings and the & is treated correctly. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | |||
+ | === Get global metrics === | ||
+ | |||
+ | 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.1719432415.txt.gz · Last modified: 2024/06/26 20:06 by sgranger