User Tools

Site Tools


visual3d:documentation:pipeline:expressions:reserved_characters

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
visual3d:documentation:pipeline:expressions:reserved_characters [2024/07/16 16:58] – removed sgrangervisual3d:documentation:pipeline:expressions:reserved_characters [2024/07/17 15:45] (current) – created sgranger
Line 1: Line 1:
 +====== Reserved Characters ======
 +
 +Reserved Characters in Expressions
 +
 +==== Contents ====
 +
 +
 +
 +  * [[#AMP|1 AMP]]
 +  * [[#COLON|2 COLON]]
 +  * [[#SEMICOLON|3 SEMICOLON]]
 +  * [[#PLUS|4 PLUS]]
 +  * [[#FSLASH|5 FSLASH]]
 +  * [[#SPACE|6 SPACE]]
 +
 +
 +==== AMP ====
 +
 +AMP = &
 +
 +For example, if the desired pipeline command were as follows:
 +
 +**Select_Active_File**
 +/FILE_NAME=ALL_FILES
 +/QUERY= TAG1 & TAG2
 +**;**
 +If the tags TAG1 and TAG2 exist then all files that have been assigned both tags will be active.
 +
 +If, however, we want to use pipeline parameters in place of the text TAG1 and TAG2, we have a problem because there is no way to stop Visual3D from using the & character to concatenate the text. The solution was to introduce a reserved parameter ::AMP.
 +
 +The following pipeline would result
 +
 +Set_Pipeline_Parameter
 +
 +**Set_Pipeline_Parameter**
 +/PARAMETER_NAME=A
 +/PARAMETER_VALUE=TAG1
 +**;**
 +**Set_Pipeline_Parameter**
 +/PARAMETER_NAME=B
 +/PARAMETER_VALUE=TAG2
 +**;**
 +**Select_Active_File**
 +**/FILE_NAME=ALL_FILES**
 +**/QUERY= ::A&::AMP&::B**
 +**;**
 +This would result in Visual3D interpreting the query
 +
 +/QUERY=TAG1 & TAG2
 +For more: [[https://www.c-motion.com/v3dwiki/index.php?title=Expressions:_Examples_of_Using_the_AMP_Operator|Examples of Using the AMP Operator]]
 +
 +==== COLON ====
 +
 +COLON = :
 +
 +==== SEMICOLON ====
 +
 +SEMICOLON = ;
 +
 +==== PLUS ====
 +
 +PLUS = +
 +
 +==== FSLASH ====
 +
 +FSLASH = /
 +
 +==== SPACE ====
 +
 +SPACE=" "
 +
 +
  
visual3d/documentation/pipeline/expressions/reserved_characters.1721149094.txt.gz · Last modified: 2024/07/16 16:58 by sgranger