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/06/18 13:30] – sgranger | visual3d:documentation:pipeline:expressions:brackets [2024/11/15 20:15] (current) – [Brackets] wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Brackets | + | ====== |
- | ===== Contents ===== | ||
+ | ===== Parentheses ===== | ||
- | * [[#Parentheses|1 Parentheses]] | + | Parentheses **(** and **)** are used to contain the parameters in a function |
- | | + | |
- | | + | |
- | | + | |
+ | For Example\\ | ||
+ | Vector(0, | ||
- | ====== Parentheses ====== | + | ===== Square_Brackets ===== |
- | + | ||
- | Parenthesis **(** and **)** are used to contain the parameters in a function | + | |
- | For Example | + | |
- | [[index.php? | + | |
- | ====== 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 29: | 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 36: | 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 == | ||
In this example, project a collection of markers onto the floor | In this example, project a collection of markers onto the floor | ||
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 61: | Line 65: | ||
! / | ! / | ||
/ | / | ||
- | **;** | + | ; |
+ | </ | ||
visual3d/documentation/pipeline/expressions/brackets.1718717419.txt.gz · Last modified: 2024/06/18 13:30 by sgranger