Skip to main content

vArrayInterpolate

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

IntermediateMograph / ArrayArrayScriptValJSON
vArrayInterpolate node

vArrayInterpolate 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—Values at Progress 0.
Input BDATATYPE—Values at Progress 1.
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​

vArrayPointsOnGrid.Output -> vArrayInterpolate.ArrayA
vArrayPointsOnSphere.Output -> vArrayInterpolate.ArrayB
vArrayInterpolate.Output -> vArrayCameraProjection.ArrayA
vArrayCameraProjection.Output -> vArrayShapeRender.ArrayPoint
Background.Output -> vArrayShapeRender.Input