This is an old revision of the document!
Table of Contents
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