User Tools

Site Tools


visual3d:documentation:pipeline:pipeline_commands:set_pipeline_parameter_from_for_loop

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
visual3d:documentation:pipeline:pipeline_commands:set_pipeline_parameter_from_for_loop [2024/06/26 20:06] – removed sgrangervisual3d:documentation:pipeline:pipeline_commands:set_pipeline_parameter_from_for_loop [2024/07/17 15:46] (current) – created sgranger
Line 1: Line 1:
 +====== Set Pipeline Parameter From For Loop ======
 +
 +Create a pipeline parameter to mimic a traditional for loop.
 +
 +Traditional for loops are numerical representations, such as:
 +
 +For i=1 to 10 step1
 +Visual3D's For_Each loop are string entries that are specified explicitly by the user.
 +
 +This command creates a string expression.
 +
 +==== Integer loop ====
 +
 +**Set_Pipeline_Parameter_From_For_Loop**
 +/PARAMETER_NAME=INT_VALUES
 +/PARAMETER_INDEX_START=1
 +/PARAMETER_INDEX_END=10
 +/PARAMETER_INDEX_STEP=1
 +/PARAMETER_INDEX_TYPE=INTEGER
 +**;**
 +on execution the results are
 +
 +INT_VALUES = 1+2+3+4+5+6+7+8+9+10
 +\\
 +
 +
 +==== Float loop ====
 +
 +**Set_Pipeline_Parameter_From_For_Loop**
 +/PARAMETER_NAME=FLOAT_VALUES
 +/PARAMETER_INDEX_START=0
 +/PARAMETER_INDEX_END=5
 +/PARAMETER_INDEX_STEP=0.5
 +/PARAMETER_INDEX_TYPE=FLOAT
 +**;**
 +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 ====
 +
 +The start, end and step parameters will accept expressions.
 +
 +Create 3 global metric signals:
 +
 +Metric_Explicit
 +/RESULT_METRIC_NAME=GLOBAL::START
 +/RESULT_METRIC_FOLDER=COUNTER
 +/METRIC_VALUE=0
 +**;**
 +Metric_Explicit
 +/RESULT_METRIC_NAME=GLOBAL::END
 +RESULT_METRIC_FOLDER=COUNTER
 +/METRIC_VALUE=5
 +**;**
 +Metric_Explicit
 +/RESULT_METRIC_NAME=GLOBAL::STEP
 +/RESULT_METRIC_FOLDER=COUNTER
 +/METRIC_VALUE=1
 +**;**
 +**Set_Pipeline_Parameter_From_For_Loop**
 +/PARAMETER_NAME=FLOAT_VALS
 +/PARAMETER_INDEX_START=GLOBAL::METRIC::COUNTER::START
 +/PARAMETER_INDEX_END=GLOBAL::METRIC::COUNTER::END
 +/PARAMETER_INDEX_STEP=GLOBAL::METRIC::COUNTER::STEP
 +/PARAMETER_INDEX_TYPE=FLOAT
 +**;**
 +FLOAT_VALS = 0.000000+1.000000+2.000000+3.000000+4.000000+5.000000
 +
  
visual3d/documentation/pipeline/pipeline_commands/set_pipeline_parameter_from_for_loop.1719432415.txt.gz · Last modified: 2024/06/26 20:06 by sgranger