vScriptValMath
Math Operations on a ScriptVal Tip: If you want to apply math operations to arrays of XY or XYZ value pairs, the vScriptValUnPacker node will extract all the values into a single linear sequence of numbers. You can then use the vScriptValMath node to modify the values. Then a vScriptValPacker node can remux the linear sequence of numbers back into XY or XYZ value pairs. The following math operations are supported: - Subtract A-B - Multiply - Divide A/B - Min - Max - Average - Difference - Modulo A/B - Power A^B - Arc Tangent A/B - Sine - Cosine - Tangent - Arc Sine - Arc Cosine - Arc Tangent - Log - Log 10 - Exponential - Degrees to Radians - Radians to Degrees - Absolute Value - Ceiling - Floor - Square Root - Reciprocal - Negate - Random - Randomseed

Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| Which | Integer | — | — |
| Operation | Integer | 0.0 | — |
| Input Number | Integer | Use Number | — |
| Number | Float | 1 | — |
| line4Separator | Float | — | — |
+4 more parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| Show Input | Integer | 0.0 | — |
| Connected | Integer | 0.0 | — |
| ScriptVal A | DATATYPE | — | — |
| ScriptVal B | DATATYPE | — | — |
Example Connections
- Example 1
vScriptValGenerateSpirals.Output -> vScriptValUnPacker.ScriptVal
vScriptValUnPacker.ScriptVal1 -> vScriptValMath.ScriptValA
vScriptValMath.ScriptVal -> vScriptValPacker.ScriptVal
vScriptValPacker.ScriptVal -> vScriptValViewer.ScriptVal