visual3d:documentation:pipeline:expressions:brackets
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:expressions:brackets [2024/07/03 17:39] – created sgranger | visual3d:documentation:pipeline:expressions:brackets [2024/11/15 20:15] (current) – [Brackets] wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Brackets ====== | ====== Brackets ====== | ||
- | Brackets | ||
- | ==== Contents ==== | ||
+ | ===== Parentheses ===== | ||
+ | Parentheses **(** and **)** are used to contain the parameters in a function | ||
- | * [[# | + | For Example\\ |
- | * [[# | + | Vector(0,0,1) |
- | * [[# | + | |
- | * [[# | + | |
- | |||
- | ===== Parentheses ===== | ||
- | |||
- | Parenthesis **(** and **)** are used to contain the parameters in a function | ||
- | For Example | ||
- | [[index.php? | ||
===== Square_Brackets ===== | ===== Square_Brackets ===== | ||
- | |||
- | == Square Brackets == | ||
Square Brackets **[** and **]** specify frame numbers and components | Square Brackets **[** and **]** specify frame numbers and components | ||
Square Brackets **[** and **]** are used at the end of a function call or parenthesis ( ) to specify the frames numbers and components | Square Brackets **[** and **]** are used at the end of a function call or parenthesis ( ) to specify the frames numbers and components | ||
+ | |||
Example, add two signals and retrieve the component 1 from frame 5 | Example, add two signals and retrieve the component 1 from frame 5 | ||
+ | < | ||
Evaluate_Expression | Evaluate_Expression | ||
/ | / | ||
Line 31: | Line 23: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | for example, add two signals and retrieve the component 1 for all frames | + | </ |
+ | |||
+ | Example, add two signals and retrieve the component 1 for all frames | ||
+ | < | ||
Evaluate_Expression | Evaluate_Expression | ||
/ | / | ||
Line 38: | Line 33: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | **NOTE** a frame of -1 means all frames | + | </ |
+ | |||
+ | **NOTE** a frame of -1 means all frames\\ | ||
Extracting one " | Extracting one " | ||
The following command will result in the DERIVED signal TEST containing the X component values of the TARGET RFT1. | The following command will result in the DERIVED signal TEST containing the X component values of the TARGET RFT1. | ||
- | **Evaluate_Expression** | + | < |
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
/ | / | ||
! / | ! / | ||
- | **;** | + | ; |
+ | </ | ||
== Using Square Brackets and Boolean Operators == | == Using Square Brackets and Boolean Operators == | ||
Line 54: | Line 54: | ||
whenever the z-component of a marker is less than a threshold (e.g. 0.08 in this example) | whenever the z-component of a marker is less than a threshold (e.g. 0.08 in this example) | ||
otherwise set the resulting frame to NO_DATA | otherwise set the resulting frame to NO_DATA | ||
- | **Evaluate_Expression** | + | |
+ | < | ||
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
Line 63: | Line 65: | ||
! / | ! / | ||
/ | / | ||
- | **;** | + | ; |
+ | </ | ||
visual3d/documentation/pipeline/expressions/brackets.1720028392.txt.gz · Last modified: 2024/07/03 17:39 by sgranger