Skip to main content

vJSONBuffer

Generate an array of evenly spaced values between a Low and a High limit.

BeginnerMograph / JSONJSONArrayScriptVal
vJSONBuffer node

vJSONBuffer has no input and outputs Array Length points whose X values run linearly from Low to High. Offset Range shifts both limits.

Parameters​

ParameterTypeDefaultDescription
Array Length (min 2)Integer2Number of points to generate. Minimum 2, default 2. Has a socket.
LowFloat-1Lower limit of the range. Default -1.
HighFloat1Upper limit of the range. Default 1.
Offset RangeFloat0.0Value added to both limits. Default 0. Has a socket.
Show InputInteger0.0Shows or hides the Array Length and Offset Range sockets on the node.
Read the full description

The node computes min = Low + Offset Range and max = High + Offset Range. It then outputs Array Length points, evenly spaced from min to max. Each point is (value, 0, 0), so the values are in X and Y and Z are 0.

The defaults (length 2, low -1, high 1, offset 0) output two points at X = -1 and X = 1. Raise Array Length for more points between the same limits. Array Length has a minimum of 2.

Array Length and Offset Range can also be driven through sockets. The Show Input checkbox toggles whether those two sockets are visible on the node.

The node keeps no state between frames. Its output depends only on the current control values, so animating Offset Range moves the whole range over time.

Example Connections​

vJSONBuffer.Output -> vJSONCameraProjection.ArrayA
vJSONCameraProjection.Output -> vJSONShapeRender.ArrayPoint
Background.Output -> vJSONShapeRender.Input