Skip to main content

vScriptValParallelOffset

Builds parallel copies of a path at fixed distances on both sides.

IntermediateMograph / ScriptValScriptValArrayJSON
vScriptValParallelOffset node

vScriptValParallelOffset takes an array of path points and outputs the path followed by Num Left and Num Right offset copies of it. A second output lists the number of points of each curve.

Parameters​

ParameterTypeDefaultDescription
OffsetDistanceFloat0.1Distance between neighboring curves. Range 0.001 to 10, default 0.1.
Num LeftInteger1Number of curves on one side. Slider 1 to 10, default 1.
Num RightInteger1Number of curves on the opposite side. Slider 1 to 10, default 1.
InputDATATYPE—Data to process.
Read the full description

Each offset copy moves every path point sideways by a multiple of Offset Distance. The i-th copy on a side is i * Offset Distance away. The sideways direction is perpendicular to the segment that starts at the point and lies in the XY plane, so a path in the XY plane stays in that plane. Num Left curves use one direction and Num Right curves the opposite one.

The Output holds the original path first, then the left copies, then the right copies, as one list. The ScriptVal_Groups output holds the point count of each curve in the same order, so the list can be split again. Offset Distance runs from 0.001 to 10 with a default of 0.1, and the counts default to 1.

Example Connections​

vScriptValPointsOnArc.Output -> vScriptValParallelOffset.ArrayA
vScriptValParallelOffset.Output -> vScriptValCameraProjection.ArrayA
vScriptValParallelOffset.ScriptVal_Groups -> vScriptValCameraProjection.ArrayGroups
vScriptValCameraProjection.Output -> vScriptValShapeRender.ArrayPoint
Background.Output -> vScriptValShapeRender.Input