visual3d:documentation:pipeline:pipeline_commands:pipeline_parameters_example
This is an old revision of the document!
this example will add a tag to an individual file based on a c3d parameter. in this case, the file will be tagged from the motion system manufacturer. the pipeline pulls this information from the c3d parameter.
!=========================================================== ! add a tag to an individual file based on a c3d parameter. !=========================================================== ! get a list of all of the files in the workspace set_pipeline_parameter_to_list_of_tagged_files /parameter_name=files /tag_name=all_files ! /get_current_selected_files=false ! /use_short_filenames=false ; ! set up a loop, so that we can treat each file individually ! and assign the the c3d parameter name as a tag for_each /iteration_parameter_name=index /items=::files ; ! select the active file from the looping index select_active_file /file_name=::index ! /query= ; ! set a pipeline parameter from the c3d parameter ! in this case, the parameter pulled from the c3d file is the manufacturer name set_pipeline_parameter_to_data_value /parameter_name=test /signal_types=parameters /signal_names=company /signal_folder=manufacturer /signal_components=all_components ; ! assign the c3d parameter name as a tag assign_tags_to_file /motion_file_names=::index ! /query= /tags=::test ; ! end the loop end_for_each /iteration_parameter_name=index ;
visual3d/documentation/pipeline/pipeline_commands/pipeline_parameters_example.1718801551.txt.gz · Last modified: 2024/06/19 12:52 by sgranger