visual3d:documentation:pipeline:expressions:expression_items
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:expressions:expression_items [2024/08/27 13:39] – [Model_Builder] wikisysop | visual3d:documentation:pipeline:expressions:expression_items [2024/10/09 18:38] (current) – Left page as a "redirect", all backlinks have been removed. wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Expression Items ====== | + | This page has been move to [[visual3d:documentation: |
- | + | ||
- | ==== Contents ==== | + | |
- | + | ||
- | + | ||
- | + | ||
- | * [[# | + | |
- | * [[# | + | |
- | * [[# | + | |
- | * [[# | + | |
- | * [[# | + | |
- | * [[# | + | |
- | * [[#Tags|4 Tags]] | + | |
- | * [[# | + | |
- | * [[# | + | |
- | * [[# | + | |
- | + | ||
- | + | ||
- | ==== Data_Tree ==== | + | |
- | + | ||
- | Signals should be placed into the expression in the form: | + | |
- | + | ||
- | SIGNAL_TYPE:: | + | |
- | To define a specific element of a signal (e.g. the X Component) | + | |
- | + | ||
- | SIGNAL_TYPE:: | + | |
- | To define a specific frame of a data of signal (e.g. Frame 2) | + | |
- | + | ||
- | SIGNAL_TYPE:: | + | |
- | Data stored in the GLOBAL Workspace should be expressed as follows: | + | |
- | + | ||
- | GLOBAL:: | + | |
- | NOTE: Global signals can be accessed regardless of the ACTIVE FILES. | + | |
- | + | ||
- | === Examples for Specifying a Data Tree Signal === | + | |
- | + | ||
- | TARGET:: | + | |
- | ANALOG:: | + | |
- | PARAMETER:: | + | |
- | ==== Model_Builder ==== | + | |
- | + | ||
- | Model metrics have a simpler syntax. The Signal Type and Signal Folder need not be specified because there is only one version of a signal. | + | |
- | + | ||
- | == Creating a Landmark at the center of a ball == | + | |
- | + | ||
- | < | + | |
- | Given 6 markers placed on the surface of a round ball | + | |
- | + | ||
- | BALL1, BALL2, BALL3, BALL4, BALL5, BALL6 | + | |
- | + | ||
- | Create a model metric at the center of a best fit sphere to the ball. | + | |
- | Metric Name= BALL | + | |
- | Metric Expression = Best_Fit_Sphere(List(BALL1, | + | |
- | + | ||
- | The resulting metric will have 3 values separated by a comma (e.g. the 3 components of the center) | + | |
- | As an example a center value of (0.5, 0.6, 0.7) would appear as | + | |
- | 0.5, | + | |
- | </ | + | |
- | + | ||
- | Create a landmark using this metric data | + | |
- | + | ||
- | {{: | + | |
- | + | ||
- | Note the syntax for the offsets\\ | + | |
- | BALL[1, | + | |
- | The syntax may seem a little strange, but [1,1] refers to the first element of the first frame | + | |
- | ==== Pipeline_Parameters ==== | + | |
- | + | ||
- | The syntax for using a pipeline parameter as part of an expression is a bit unusual and takes an understanding of how Visual3D parses parameters and pre-processes commands. | + | |
- | + | ||
- | The ampersand & is used in pipeline commands to concatenate strings together, and thus is a separator for the parser to find the pieces that need to be parsed separately. | + | |
- | + | ||
- | For example, to use a pipeline | + | |
- | + | ||
- | / | + | |
- | The ampersand tells the parser to take the 2*pi()* and the :: | + | |
- | + | ||
- | If you have more complex | + | |
- | + | ||
- | &:: | + | |
- | The general rule is to surround the pipeline parameter with ampersands. | + | |
- | + | ||
- | === Using a pipeline parameter as part of a signal definition === | + | |
- | + | ||
- | The syntax is a little funky when it comes to using pipeline parameters in the middle of a signal definition because of the order in which equations are parsed. | + | |
- | + | ||
- | The following subtracts two signals. | + | |
- | + | ||
- | **Evaluate_Expression** | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | **;** | + | |
- | ==== Tags ==== | + | |
- | + | ||
- | TAGS can be expressed as follows: | + | |
- | + | ||
- | TAG:: | + | |
- | ==== C3D_Parameters ==== | + | |
- | + | ||
- | C3D Parameters can be expressed as follows: | + | |
- | + | ||
- | PARAMETER:: | + | |
- | ==== Model_Metrics ==== | + | |
- | + | ||
- | === Specifying an item from a model === | + | |
- | + | ||
- | The following Model data is available. | + | |
- | + | ||
- | MODEL:: | + | |
- | MODEL:: | + | |
- | MODEL:: | + | |
- | MODEL:: | + | |
- | MODEL:: | + | |
- | MODEL:: | + | |
- | MODEL:: | + | |
- | MODEL:: | + | |
- | MODEL:: | + | |
- | MODEL:: | + | |
- | MODEL:: | + | |
- | To refer to a marker | + | |
- | + | ||
- | MODEL:: | + | |
- | If you want to refer to a specific component of a signal | + | |
- | + | ||
- | MODEL:: | + | |
- | To refer to a landmark | + | |
- | + | ||
- | MODEL:: | + | |
- | To refer to a force. **NOTE** This will be available in version 5.0 | + | |
- | + | ||
- | MODEL:: | + | |
- | The following command will create a global signal containing the average value of the signal FORCE::FP1 over the range of frames specified for the model (e.g. if a range is not specified, all frames will be used). | + | |
- | + | ||
- | The command is executed once for each active file, so the resulting signal will continually be overwritten and the last file processed will correspond to the resulting signal. | + | |
- | + | ||
- | **Evaluate_Expression** | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | ! / | + | |
- | **;** | + | |
- | If you edit commands in the text editor, which is the only way to use evaluate_expression at the moment, you need to use the 3 letter acronyms for the names. | + | |
- | + | ||
- | [[[https:// | + | |
- | + | ||
- | + |
visual3d/documentation/pipeline/expressions/expression_items.1724765961.txt.gz · Last modified: 2024/08/27 13:39 by wikisysop