Skip to main content

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

Mograph / ScriptValScriptValArrayJSON
vScriptValMath node

Parameters​

ParameterTypeDefaultDescription
WhichInteger——
OperationInteger0.0—
Input NumberIntegerUse Number—
NumberFloat1—
line4SeparatorFloat——
+4 more parameters
ParameterTypeDefaultDescription
Show InputInteger0.0—
ConnectedInteger0.0—
ScriptVal ADATATYPE——
ScriptVal BDATATYPE——

Example Connections​

vScriptValGenerateSpirals.Output -> vScriptValUnPacker.ScriptVal
vScriptValUnPacker.ScriptVal1 -> vScriptValMath.ScriptValA
vScriptValMath.ScriptVal -> vScriptValPacker.ScriptVal
vScriptValPacker.ScriptVal -> vScriptValViewer.ScriptVal