vArrayResamplePath
Resamples a path to an even number of points or an even spacing, with optional smoothing.

vArrayResamplePath takes an ordered path and outputs points spaced evenly along its length. Mode picks a fixed point count or a fixed spacing, and Interpolation can smooth the path first.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| Mode | Dropdown | Target Count | Target Count (default) or Target Spacing. |
| Target Count | Integer | 32 | Number of output points. Slider 2 to 2048, default 32. Shown in Target Count mode. |
| Target Spacing | Float | 0.05 | Distance between output points. Slider 0.001 to 2, default 0.05. Shown in Target Spacing mode. |
| Closed Path | Integer | 0.0 | Treats the path as a closed loop when on. Default off. |
| Interpolation | Dropdown | Linear | Linear (default), Catmull-Rom, B-Spline or Cardinal. |
+3 more parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| Interp Steps | Integer | 8 | Subdivisions per segment for the three spline types. Slider 1 to 32, default 8. |
| Tension | Float | 0.0 | Tension of the Cardinal spline. Slider -2 to 2, default 0. Shown for Cardinal only. |
| Points | DATATYPE | — | Ordered path points. |
Read the full description
The path is optionally closed (Closed Path adds a copy of the first point at the end) and smoothed with Linear, Catmull-Rom, B-Spline or Cardinal interpolation using Interp Steps subdivisions per segment. Then points are placed at equal distances along the result. Target Count (default 32) gives that many points, including both ends of an open path. Target Spacing (default 0.05) gives a point every that distance and ends on the last point.
A closed path does not repeat the first point at the end and has at least 3 points. Tension (default 0) is shown for Cardinal only. In Target Count mode, a path of zero length gives repeated copies of its first point. The output has 3 values per point.
Example Connections
- Resample an arc and draw
- Resample before framing
vArrayPointsOnArc.Output -> vArrayResamplePath.Points
vArrayResamplePath.Output -> vArrayCameraProjection.ArrayA
vArrayCameraProjection.Output -> vArrayShapeRender.ArrayPoint
Background.Output -> vArrayShapeRender.Input
vArrayCubicBezier.Output -> vArrayResamplePath.Points
vArrayResamplePath.Output -> vArrayPathFrame.PathPacket