visual3d:documentation:pipeline:file_commands:select_active_file
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:select_active_file [2024/07/17 15:42] – removed sgranger | visual3d:documentation:pipeline:file_commands:select_active_file [2025/07/10 20:04] (current) – wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Select Active File ====== | ||
+ | |||
+ | ===== Overview ===== | ||
+ | |||
+ | The **Select_Active_File** command in Visual3D can allow the user to select which file is active in the workspace. As many of the pipeline commands in Visual3D act on the active files only, using this command can allow you to determine which they are applied to. | ||
+ | |||
+ | |||
+ | {{: | ||
+ | |||
+ | ==== Pipeline Command ==== | ||
+ | |||
+ | The pipeline command below is used to select the [[Visual3D: | ||
+ | |||
+ | < | ||
+ | Select_Active_File | ||
+ | ! /FILE_NAME= | ||
+ | ! /QUERY= | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | === File_Name === | ||
+ | |||
+ | The parameter **/ | ||
+ | |||
+ | **Note:** Visual3D defines files by their full pathname. For example, the following command will not be recognized | ||
+ | |||
+ | < | ||
+ | Select_Active_File | ||
+ | /FILE_NAME= file1.c3d | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | To fix the example above, you define the full pathname: | ||
+ | |||
+ | < | ||
+ | Select_Active_File | ||
+ | /FILE_NAME= c: | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | or you can use a wildcard: | ||
+ | |||
+ | < | ||
+ | Select_Active_File | ||
+ | /FILE_NAME= *file1.c3d | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | or you can specify a TAG: | ||
+ | |||
+ | < | ||
+ | Select_Active_File | ||
+ | /FILE_NAME= TAG1 | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | === Query === | ||
+ | |||
+ | The Query option (**Visual3D Professional Only**) allows you to select a subset of the files referred by to FILE_NAME. You can query using [[Visual3D: | ||
+ | |||
+ | / | ||
+ | |||
+ | === Subject_Tags === | ||
+ | |||
+ | Set the active subject tag - FOR MULTISUBJECT ONLY! | ||
+ | |||
+ | ==== Example 1: Global_Workspace ==== | ||
+ | |||
+ | This example shows how to make the [[Visual3D: | ||
+ | |||
+ | < | ||
+ | Select_Active_File | ||
+ | / | ||
+ | ! /QUERY= | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | ==== Example 2 - ALL_FILES and OR Query ==== | ||
+ | |||
+ | From ALL_FILES select files that are tagged TAG1 or TAG2. Note there are multiple syntaxes for the " | ||
+ | |||
+ | Using the " | ||
+ | |||
+ | < | ||
+ | Select_Active_File | ||
+ | / | ||
+ | /QUERY=TAG1 + TAG2 | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Using " | ||
+ | |||
+ | < | ||
+ | Select_Active_File | ||
+ | / | ||
+ | /QUERY=TAG1 | TAG2 | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | ==== Example 3 - ALL_FILES AND and NOT Query ==== | ||
+ | |||
+ | From ALL_FILES select files that are TAG1 AND NOT TAG2 using the operators "&" | ||
+ | |||
+ | < | ||
+ | Select_Active_File | ||
+ | / | ||
+ | /QUERY=TAG1 & NOT(TAG2) | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | ==== Example 4 - ALL_FILES and a wildcard ==== | ||
+ | |||
+ | From ALL_FILES select files that do not contain the wildcard *run*.c3d | ||
+ | |||
+ | This cannot be done in one step. Command will be used to tag the files prior to using the Select_Active command. | ||
+ | |||
+ | < | ||
+ | ! Assign tag RUN to files with " | ||
+ | Assign_Tags_To_Files | ||
+ | / | ||
+ | ! /QUERY= | ||
+ | /TAGS=RUN | ||
+ | ; | ||
+ | |||
+ | ! Assign tag NOT_RUN to files that are not tagged RUN | ||
+ | Assign_Tags_To_Files | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | ! Select NOT_RUN as the active files | ||
+ | Select_Active_File | ||
+ | / | ||
+ | ! /QUERY= | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | [[Visual3D: | ||
+ | |||
+ | |||
visual3d/documentation/pipeline/file_commands/select_active_file.1721230944.txt.gz · Last modified: 2024/07/17 15:42 by sgranger