Skip to main content

vArrayClosePath

Closes or opens a path by adding or removing a repeated end point, with seam options.

BeginnerMograph / ArrayArrayScriptValJSON
vArrayClosePath node

vArrayClosePath takes an array of XYZ points that form a path. Operation closes it, opens it or toggles it, and Seam and Duplicate Endpoint control how the closing point is made.

Parameters​

ParameterTypeDefaultDescription
OperationDropdownClose PathClose Path (default), Open Path or Toggle.
SeamDropdownKeep StartKeep Start (default), Keep End or Average. Which first point is used when closing. Hidden for Open Path.
Duplicate EndpointInteger1Adds a copy of the first point at the end of a closed path when on (default). Hidden for Open Path.
PointsDATATYPE—Point positions.
Read the full description

A path counts as closed when its first and last points are equal. Open Path removes repeated last points until the path is no longer closed. Close Path removes an existing repeated end first, then applies Seam, then adds a copy of the first point at the end if Duplicate Endpoint is on (default). Toggle opens a closed path and closes an open one.

Seam Keep Start leaves the first point as it is. Keep End replaces the first point with a copy of the last. Average replaces it with the average of the first and the last. Seam and Duplicate Endpoint are hidden when Operation is Open Path.

Fewer than 2 points are returned unchanged. Each output point has X, Y and Z only.

Example Connections​

vArrayPointsOnArc.Output -> vArrayClosePath.Points
vArrayClosePath.Output -> vArrayCameraProjection.ArrayA
vArrayCameraProjection.Output -> vArrayShapeRender.ArrayPoint
Background.Output -> vArrayShapeRender.Input