visual3d:documentation:pipeline:pipeline_commands:set_pipeline_parameter_from_for_loop
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_for_loop [2024/06/19 12:52] – sgranger | visual3d:documentation:pipeline:pipeline_commands:set_pipeline_parameter_from_for_loop [2026/02/19 20:36] (current) – wikisysop | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | create a pipeline parameter to mimic a traditional for loop. | + | ====== Set Pipeline Parameter From For Loop ====== |
| + | The **Set Pipeline Parameter From For Loop** command can be used to create a new pipeline parameter | ||
| - | traditional | + | Traditional |
| - | for i=1 to 10 step1 | + | For i=1 to 10 step1 |
| - | visual3d' | + | Visual3D' |
| - | this command creates a string expression. | + | This command creates a string expression. |
| - | ===== integer loop ===== | + | ====Pipeline Command==== |
| + | The command can be found in the Pipeline Workshop within the Pipeline Control folder as so: | ||
| + | < | ||
| + | Set_Pipeline_Parameter_From_For_Loop | ||
| + | / | ||
| + | ! / | ||
| + | ! / | ||
| + | ! / | ||
| + | ! / | ||
| + | ; | ||
| + | </ | ||
| + | |||
| + | ====Command Parameters==== | ||
| + | The following table shows the command parameters that can be used to define the command and their descriptions: | ||
| + | |||
| + | |**Parameter** | ||
| + | |**Parameter Name**|Name of the parameter to be set| | ||
| + | |**Parameter Index Start**|Starting value of the index| | ||
| + | |**Parameter Index End**|Ending value of the index| | ||
| + | |**Parameter Index Step**|Size of the step between index values| | ||
| + | |**Parameter Index Type**|Type of output value (I.e. float, integer)| | ||
| + | |||
| + | |||
| + | ====Example: | ||
| + | This example shows how the command can be used to generate an integer loop: | ||
| + | < | ||
| + | Set_Pipeline_Parameter_From_For_Loop | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | ; | ||
| + | </ | ||
| - | **set_pipeline_parameter_from_for_loop** | ||
| - | / | ||
| - | / | ||
| - | / | ||
| - | / | ||
| - | / | ||
| - | **;** | ||
| on execution the results are | on execution the results are | ||
| - | int_values | + | INT_VALUES |
| - | \\ | + | |
| + | |||
| + | |||
| + | ====Example: | ||
| + | The following code shows how the command can be used to create a float loop: | ||
| + | < | ||
| + | Set_Pipeline_Parameter_From_For_Loop | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | ; | ||
| + | </ | ||
| + | |||
| + | FLOAT_VALUES = 0.000000+0.500000+1.000000+1.500000+2.000000+2.500000+3.000000+3.500000+4.000000+4.500000+5.000000 | ||
| + | |||
| + | ====Example: | ||
| + | The start, end and step parameters will accept expressions. | ||
| - | ===== float loop ===== | + | Create 3 global metric signals: |
| - | **set_pipeline_parameter_from_for_loop** | + | < |
| - | / | + | Metric_Explicit |
| - | /parameter_index_start=0 | + | /RESULT_METRIC_NAME=GLOBAL:: |
| - | /parameter_index_end=5 | + | /RESULT_METRIC_FOLDER=COUNTER |
| - | /parameter_index_step=0.5 | + | /METRIC_VALUE=0 |
| - | / | + | ; |
| - | **;** | + | |
| - | float_values = 0.000000+0.500000+1.000000+1.500000+2.000000+2.500000+3.000000+3.500000+4.000000+4.500000+5.000000 | + | |
| - | ===== expressions ===== | + | Metric_Explicit |
| + | / | ||
| + | RESULT_METRIC_FOLDER=COUNTER | ||
| + | / | ||
| + | ; | ||
| - | the start, end and step parameters will accept expressions. | + | Metric_Explicit |
| + | / | ||
| + | / | ||
| + | / | ||
| + | ; | ||
| - | create 3 global metric signals: | + | Set_Pipeline_Parameter_From_For_Loop |
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | ; | ||
| + | </ | ||
| - | metric_explicit | + | FLOAT_VALS |
| - | / | + | |
| - | / | + | |
| - | / | + | |
| - | **;** | + | |
| - | metric_explicit | + | |
| - | / | + | |
| - | result_metric_folder=counter | + | |
| - | / | + | |
| - | **;** | + | |
| - | metric_explicit | + | |
| - | / | + | |
| - | / | + | |
| - | / | + | |
| - | **;** | + | |
| - | **set_pipeline_parameter_from_for_loop** | + | |
| - | / | + | |
| - | / | + | |
| - | / | + | |
| - | / | + | |
| - | / | + | |
| - | **;** | + | |
| - | float_vals | + | |
visual3d/documentation/pipeline/pipeline_commands/set_pipeline_parameter_from_for_loop.1718801554.txt.gz · Last modified: by sgranger
