visual3d:documentation:pipeline:pipeline_commands:get_pipeline_parameter_count
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:get_pipeline_parameter_count [2024/06/19 12:52] – sgranger | visual3d:documentation:pipeline:pipeline_commands:get_pipeline_parameter_count [2026/04/28 20:56] (current) – [Command Syntax] wikisysop | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | get a count of the number of parameter | + | ====== Get Pipeline Parameter Count ====== |
| + | This command allows users to easily access how many values | ||
| - | **get_pipeline_parameter_count** | + | ===== Command Syntax ===== |
| - | /parameter_name= | + | The command can be found in the Pipeline Workshop within the Pipeline Control folder as so: |
| - | /parameter_value= | + | < |
| - | **;** | + | Get_Pipeline_Parameter_Count |
| - | \\ | + | /PARAMETER_NAME= |
| + | ! /PARAMETER_VALUE= | ||
| + | ; | ||
| + | </ | ||
| + | ====Command Parameters==== | ||
| + | The following table shows the command parameters that can be used to define the command and their descriptions: | ||
| - | ===== example1 ===== | + | ^ **Parameter** |
| + | |**Parameter Name**|Name of the parameter generated, which contains the count.| | ||
| + | |**Parameter Value**|List whose items we want to count.| | ||
| - | create a parameter with three values, then retrieve the count | + | ===== Examples ===== |
| + | ==== Example: Create List Parameter and Count Values ==== | ||
| - | **set_pipeline_parameter** | + | Create a parameter with three values, then retrieve the count: |
| - | /parameter_name=test_parameter | + | < |
| - | /parameter_value=one+two+three | + | Set_Pipeline_Parameter |
| - | **;** | + | /PARAMETER_NAME=TEST_PARAMETER |
| - | **get_pipeline_parameter_count** | + | /PARAMETER_VALUE=ONE+TWO+THREE |
| - | /parameter_name=count | + | ! / |
| - | /parameter_value=:: | + | ! / |
| - | **;** | + | ! /PARAMETER_VALUE_PREFIX= |
| - | the results from executing these two command is: | + | ! /PARAMETER_VALUE_APPEND= |
| + | ; | ||
| + | </ | ||
| - | --------------------------------------------------------------------------- | + | ::TEST_PARAMETER |
| - | **set_pipeline_parameter** | + | |
| - | / | + | |
| - | / | + | |
| - | ! / | + | |
| - | ! / | + | |
| - | ! / | + | |
| - | ! / | + | |
| - | **;** | + | |
| - | pipeline parameter : | + | |
| - | :: | + | |
| - | --------------------------------------------------------------------------- | + | |
| - | **get_pipeline_parameter_count** | + | |
| - | / | + | |
| - | / | + | |
| - | **;** | + | |
| - | ::count = 3 | + | |
| - | ===== example2 ===== | + | |
| - | **set_pipeline_parameter_to_list_of_signal_names** | + | < |
| - | /parameter_name=targets | + | Get_Pipeline_Parameter_Count |
| - | /signal_type=target | + | /PARAMETER_NAME=COUNT |
| - | signal_folder=original | + | /PARAMETER_VALUE=ONE+TWO+THREE |
| - | **;** | + | ; |
| - | **get_pipeline_parameter_count** | + | </code> |
| - | /parameter_name=count | + | |
| - | / | + | |
| - | **;** | + | |
| - | for this specific test file the results are: | + | |
| - | \\ | + | ::COUNT = 3 |
| + | ==== Example: Count Number of Signals in a Folder ==== | ||
| - | --------------------------------------------------------------------------- | + | More usefully, we might want to count the number of a particular item contained within a file. For example, we may want to know how many [[visual3d: |
| - | **set_pipeline_parameter_to_list_of_signal_names** | + | |
| - | /parameter_name=targets | + | < |
| - | /signal_type=target | + | Set_Pipeline_Parameter_To_List_Of_Signal_Names |
| - | ! / | + | /PARAMETER_NAME=TARGETS |
| - | **;** | + | /SIGNAL_TYPE=TARGET |
| - | targets= | + | SIGNAL_FOLDER=ORIGINAL |
| - | las | + | ; |
| - | lpp | + | </ |
| - | lps | + | |
| - | lth1 | + | TARGETS |
| - | lth2 | + | |
| - | lth3 | + | < |
| - | lth4 | + | Get_Pipeline_Parameter_Count |
| - | ras | + | / |
| - | rpp | + | / |
| - | rps | + | ; |
| - | rth1 | + | </ |
| - | rth2 | + | |
| - | rth3 | + | ::COUNT = 14 |
| - | rth4 | + | |
| - | --------------------------------------------------------------------------- | + | |
| - | **get_pipeline_parameter_count** | + | |
| - | / | + | |
| - | / | + | |
| - | **;** | + | |
| - | ::count = 14 | + | |
visual3d/documentation/pipeline/pipeline_commands/get_pipeline_parameter_count.1718801548.txt.gz · Last modified: by sgranger
