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/19 12:49] – sgranger | visual3d:documentation:pipeline:expressions:brackets [2024/11/15 20:15] (current) – [Brackets] wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | brackets | + | ====== Brackets ====== |
- | ===== contents ===== | ||
+ | ===== Parentheses ===== | ||
- | | + | Parentheses |
- | | + | |
- | | + | |
- | | + | |
+ | For Example\\ | ||
+ | Vector(0, | ||
- | ====== parentheses ====== | + | ===== Square_Brackets |
- | parenthesis | + | Square Brackets |
- | for example | + | |
- | [[index.php? | + | |
- | ====== square_brackets ====== | + | |
- | === square brackets === | + | Square Brackets **[** and **]** are used at the end of a function call or parenthesis ( ) to specify the frames numbers and components |
- | square brackets **[** and **]** specify frame numbers and components | + | Example, add two signals and retrieve the component 1 from frame 5 |
+ | < | ||
+ | Evaluate_Expression | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
- | 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 for all frames |
- | example, add two signals and retrieve the component 1 from frame 5 | + | < |
- | evaluate_expression | + | Evaluate_Expression |
- | / | + | /Expression= (TARGET::ORIGINAL::RFT1 + TARGET::ORIGINAL::RFT2)[-1,1] |
- | / | + | /Result_Name=RFT_ADD_X |
- | / | + | /Result_Type=DERIVED |
- | / | + | /Result_Folder=PROCESSED |
- | **;** | + | ; |
- | for example, add two signals and retrieve the component 1 for all frames | + | </ |
- | evaluate_expression | + | |
- | /expression= (target::original::rft1 + target::original::rft2)[-1,1] | + | |
- | /result_name=rft_add_x | + | |
- | /result_type=derived | + | |
- | /result_folder=processed | + | |
- | **;** | + | |
- | **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. | + | **NOTE** a frame of -1 means all frames\\ |
- | **evaluate_expression** | + | Extracting one " |
- | / | + | |
- | / | + | |
- | / | + | |
- | ! / | + | |
- | **;** | + | |
- | === using square brackets and boolean operators === | + | |
- | in this example, project a collection of markers onto the floor | + | The following command will result |
+ | < | ||
+ | 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) | 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** | + | |
- | /expression=(((current_signal[-1, | + | < |
- | /signal_types=target | + | Evaluate_Expression |
- | /signal_folder=original | + | /EXPRESSION=(((CURRENT_SIGNAL[-1, |
- | /signal_names=lft1+lft2+lft3+rft1+rft2+rft3 | + | /SIGNAL_TYPES=TARGET |
- | /result_types=target | + | /SIGNAL_FOLDER=ORIGINAL |
- | /result_folders=ground | + | /SIGNAL_NAMES=LFT1+LFT2+LFT3+RFT1+RFT2+RFT3 |
- | ! /result_name= | + | /RESULT_TYPES=TARGET |
- | /apply_as_suffix_to_signal_name=true | + | /RESULT_FOLDERS=GROUND |
- | **;** | + | ! /RESULT_NAME= |
+ | /APPLY_AS_SUFFIX_TO_SIGNAL_NAME=TRUE | ||
+ | ; | ||
+ | </ | ||
visual3d/documentation/pipeline/expressions/brackets.1718801393.txt.gz · Last modified: 2024/06/19 12:49 by sgranger