visual3d:documentation:pipeline:file_commands:update_workspaces_example
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:file_commands:update_workspaces_example [2024/06/26 20:05] – removed sgranger | visual3d:documentation:pipeline:file_commands:update_workspaces_example [2024/07/17 15:45] (current) – created sgranger | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Update Workspaces Example ====== | ||
+ | |||
+ | ===== Introduction ===== | ||
+ | |||
+ | You can use a pipeline to loop over a series of CMZ files to update them (i.e. calculate measures you decided to create after creating the CMZ files). | ||
+ | |||
+ | This can also be done by creating a series of smaller scripts (ex. GRF_Impulse.v3s, | ||
+ | |||
+ | You can copy/paste the example below into Visual3D/a text file or [[https:// | ||
+ | |||
+ | ==== Example ==== | ||
+ | |||
+ | < | ||
+ | ! ============================================================================================ | ||
+ | ! Update a group of CMZ files | ||
+ | ! ============================================================================================ | ||
+ | |||
+ | ! -------------------------------------------------------------------------------------------- | ||
+ | ! Pipeline Parameters | ||
+ | ! -------------------------------------------------------------------------------------------- | ||
+ | |||
+ | ! Folder path containing data to be updated | ||
+ | ! Note: This would be the top level folder: | ||
+ | ! | ||
+ | ! The data would then be in subfolders: | ||
+ | ! | ||
+ | ! | ||
+ | |||
+ | Set_Pipeline_Parameter | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | ! Specify where the scripts you want to run on each CMZ file are located | ||
+ | |||
+ | Set_Pipeline_Parameter | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | ! -------------------------------------------------------------------------------------------- | ||
+ | ! Get List of CMZ Files to Update | ||
+ | ! -------------------------------------------------------------------------------------------- | ||
+ | |||
+ | Set_Pipeline_Parameter_To_List_Of_Files | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | ! -------------------------------------------------------------------------------------------- | ||
+ | ! Get List of Scripts to run | ||
+ | ! -------------------------------------------------------------------------------------------- | ||
+ | |||
+ | Set_Pipeline_Parameter_To_List_Of_Files | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | ! -------------------------------------------------------------------------------------------- | ||
+ | ! Process Each CMZ | ||
+ | ! -------------------------------------------------------------------------------------------- | ||
+ | |||
+ | For_Each | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | ! Clear the Workspace | ||
+ | |||
+ | File_New | ||
+ | |||
+ | ; | ||
+ | |||
+ | ! Open one CMZ file | ||
+ | |||
+ | File_Open | ||
+ | / | ||
+ | ! /SUFFIX= | ||
+ | ! / | ||
+ | ! /FILTER= | ||
+ | ; | ||
+ | |||
+ | ! -------------------------------------------------------------------------------------------- | ||
+ | ! Run Scripts | ||
+ | ! -------------------------------------------------------------------------------------------- | ||
+ | |||
+ | ! Loop over each script in the Update Script folder | ||
+ | |||
+ | For_Each | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | ! Run the current script | ||
+ | |||
+ | Call_Script | ||
+ | / | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | End_For_Each | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | ! Save CMZ File | ||
+ | |||
+ | File_Save | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | ! Clear the workspace | ||
+ | |||
+ | File_New | ||
+ | |||
+ | ; | ||
+ | |||
+ | End_For_Each | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | |||
visual3d/documentation/pipeline/file_commands/update_workspaces_example.1719432338.txt.gz · Last modified: 2024/06/26 20:05 by sgranger