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/17 15:42] – removed sgranger | visual3d:documentation:pipeline:expressions:brackets [2024/11/15 20:15] (current) – [Brackets] wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Brackets ====== | ||
+ | |||
+ | |||
+ | |||
+ | ===== Parentheses ===== | ||
+ | |||
+ | Parentheses **(** and **)** are used to contain the parameters in a function | ||
+ | |||
+ | For Example\\ | ||
+ | Vector(0, | ||
+ | |||
+ | ===== Square_Brackets ===== | ||
+ | |||
+ | 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 | ||
+ | |||
+ | Example, add two signals and retrieve the component 1 from frame 5 | ||
+ | < | ||
+ | Evaluate_Expression | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Example, add two signals and retrieve the component 1 for all frames | ||
+ | < | ||
+ | Evaluate_Expression | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | **NOTE** a frame of -1 means all frames\\ | ||
+ | Extracting one " | ||
+ | |||
+ | The following command will result in the DERIVED signal TEST containing the X component values of the TARGET RFT1. | ||
+ | < | ||
+ | Evaluate_Expression | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | == Using Square Brackets and Boolean Operators == | ||
+ | |||
+ | 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) | ||
+ | otherwise set the resulting frame to NO_DATA | ||
+ | |||
+ | < | ||
+ | Evaluate_Expression | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
visual3d/documentation/pipeline/expressions/brackets.1721230936.txt.gz · Last modified: 2024/07/17 15:42 by sgranger