visual3d:documentation:pipeline:expressions:expression_numbers
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_numbers [2024/06/19 12:49] – sgranger | visual3d:documentation:pipeline:expressions:expression_numbers [2024/09/05 18:32] (current) – [Random] wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{{{{{{{===== random | + | ====== |
+ | |||
+ | ==== Random | ||
rand(lo_value, | rand(lo_value, | ||
- | example : rand() will generate a random number in the range 0 to 1 | + | < |
- | [[visual3d: | + | Example : rand() will generate a random number in the range 0 to 1 |
- | /parameter_name=test1 | + | |
- | /expression=rand() | + | Set_Pipeline_Parameter_From_Expression |
- | /as_integer=false | + | /PARAMETER_NAME=TEST1 |
- | **;** | + | /EXPRESSION=RAND() |
- | :: | + | /AS_INTEGER=FALSE |
- | example : rand(lo_value, | + | ; |
- | [[visual3d: | + | |
- | /parameter_name=test2 | + | |
- | /expression=rand(2,3) | + | |
- | /as_integer=false | + | Example : rand(lo_value, |
- | **;** | + | |
- | :: | + | Set_Pipeline_Parameter_From_Expression |
- | example : rand(lo_value, | + | /PARAMETER_NAME=TEST2 |
- | [[visual3d: | + | /EXPRESSION=RAND(2,3) |
- | /parameter_name=test3 | + | /AS_INTEGER=FALSE |
- | /expression=rand(2,3,frame_numbers::original::frames) | + | ; |
- | /as_integer=false | + | |
- | **;** | + | |
- | ::test3 = 2.808424+2.582592+2.346721+2.697052+2.662510+2.861250+2.843808+...(to number of frames) | + | |
- | example : rand(lo_value, | + | Example : rand(lo_value, |
- | [[visual3d: | + | |
- | /parameter_name=test4 | + | Set_Pipeline_Parameter_From_Expression |
- | /expression=rand(2,3,3) | + | /PARAMETER_NAME=TEST3 |
- | /as_integer=false | + | /EXPRESSION=RAND(2,3,FRAME_NUMBERS::ORIGINAL::FRAMES) |
- | **;** | + | /AS_INTEGER=FALSE |
- | ::test4 = 2.446495 + 2.718410 + 2.201863 | + | ; |
- | example : create | + | |
- | [[visual3d: | + | ::TEST3 = 2.808424+2.582592+2.346721+2.697052+2.662510+2.861250+2.843808+...(to number of frames) |
- | /signal_names=test5 | + | |
- | ! /signal_description= | + | Example : rand(lo_value, |
- | /expression=rand(0,1,target::original::lft1) | + | |
- | ! /include_calfile=false | + | Set_Pipeline_Parameter_From_Expression |
- | **;** | + | /PARAMETER_NAME=TEST4 |
- | view the resulting signal in the 3d viewer by turning on the target trail | + | /EXPRESSION=RAND(2,3,3) |
- | random_target.jpg | + | /AS_INTEGER=FALSE |
- | example: create a target | + | ; |
- | [[visual3d: | + | |
- | /signal_names=test6 | + | ::TEST4 = 2.446495 + 2.718410 + 2.201863 |
- | ! /signal_description= | + | |
- | /expression=vector(rand(0,1,frame_numbers::original::frames),rand(0,1,frame_numbers::original::frames),rand(0,1,frame_numbers::original::frames)) | + | Example : Create |
- | ! /include_calfile=false | + | |
- | **;** | + | Create_Target |
- | note that all components contain different values | + | /SIGNAL_NAMES=TEST5 |
+ | ! /SIGNAL_DESCRIPTION= | ||
+ | /EXPRESSION=RAND(0,1,TARGET::ORIGINAL::LFT1) | ||
+ | ! /INCLUDE_CALFILE=FALSE | ||
+ | ; | ||
+ | |||
+ | View the resulting signal in the 3D viewer by turning on the target trail | ||
+ | </ | ||
+ | |||
+ | {{:random_target.jpg}} | ||
+ | |||
+ | < | ||
+ | |||
+ | Create_Target | ||
+ | /SIGNAL_NAMES=TEST6 | ||
+ | ! /SIGNAL_DESCRIPTION= | ||
+ | /EXPRESSION=VECTOR(RAND(0,1,FRAME_NUMBERS::ORIGINAL::FRAMES),RAND(0,1,FRAME_NUMBERS::ORIGINAL::FRAMES),RAND(0,1,FRAME_NUMBERS::ORIGINAL::FRAMES)) | ||
+ | ! /INCLUDE_CALFILE=FALSE | ||
+ | ; | ||
+ | |||
+ | Note that all components contain different values\\ | ||
+ | </ | ||
+ | |||
+ | {{: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | < | ||
+ | Example : Create a TARGET where each frame is on a random location on the surface of a sphere of radius 1 | ||
+ | |||
+ | Evaluate_Expression | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | Evaluate_Expression | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | Create_Target | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | COS(DERIVED:: | ||
+ | -COS(DERIVED:: | ||
+ | SIN(DERIVED:: | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
- | random7.jpgrandom7view.jpg | + | {{: |
- | example : create a target where each frame is on a random location on the surface of a sphere of radius 1 | + | |
- | **evaluate_expression** | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | ! / | + | |
- | **;** | + | |
- | **evaluate_expression** | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | ! / | + | |
- | **;** | + | |
- | [[visual3d: | + | |
- | / | + | |
- | ! / | + | |
- | / | + | |
- | cos(derived:: | + | |
- | -cos(derived:: | + | |
- | sin(derived:: | + | |
- | ! / | + | |
- | **;** | + | |
- | random8view.jpg | + | |
- | }}}}}}}} |
visual3d/documentation/pipeline/expressions/expression_numbers.1718801395.txt.gz · Last modified: 2024/06/19 12:49 by sgranger