Skip to main content

vScriptValInterpolate

Blends two arrays value by value with a Progress amount and an easing curve.

IntermediateMograph / ScriptValScriptValArrayJSON
vScriptValInterpolate node

vScriptValInterpolate takes Input A and Input B and outputs values between them. Progress 0 gives A, 1 gives B, and Select Easing shapes the curve in between.

Parameters​

ParameterTypeDefaultDescription
ProgressFloat0Blend position from 0 (Input A) to 1 (Input B). Range 0 to 1, default 0.
Select EasingDropdownlinearlinear (default), easeInQuad, easeOutQuad, easeInOutQuad, easeInExpo, easeOutExpo or easeInOutExpo.
Show InputInteger0.0Shows a Progress input port on the node when on. Default off.
Input ADATATYPE—First input.
Input BDATATYPE—Second input.
Read the full description

Each value is A + (B - A) * ease(Progress). Lists inside the arrays are blended value by value, so XYZ points work. If the arrays differ in length, both are cut to the shorter one. Progress is limited to 0 to 1 and defaults to 0, which outputs Input A.

Select Easing chooses linear, easeInQuad, easeOutQuad, easeInOutQuad, easeInExpo, easeOutExpo or easeInOutExpo. The easing function is applied to Progress before the blend.

Show Input makes a Progress input port available on the node, so the value can be connected.

Example Connections​

vScriptValPointsOnGrid.Output -> vScriptValInterpolate.ArrayA
vScriptValPointsOnSphere.Output -> vScriptValInterpolate.ArrayB
vScriptValInterpolate.Output -> vScriptValCameraProjection.ArrayA
vScriptValCameraProjection.Output -> vScriptValShapeRender.ArrayPoint
Background.Output -> vScriptValShapeRender.Input