Paths to Spline

Node icon

In: Spline & Path Tools > Path Tools

Description

Converts a paths into splines which can be visualized using a Spline Render node and processed using Spline nodes.

NOTE
Splines are curves thus cannot retain the sharpness of paths. Expect some smoothing of shapes when converting paths into splines.
TIP
This node can be used after the Mask to Paths node to form a chain that converts a mask into splines.

Input connectors

Paths Color
A list of encoded segments paths. Connect this input to the result of a Mask to Paths or to another Path-processing node.

Output connectors

Spline CoordsColorThe coordinates of the input splines’ points encoded in the RGBA channels of a color image:
    R - X position
     G  - Y position
     B  - Height
     A  - Packed data:
        * Sign: Spline is closed (negative) or open (positive);
        * Absolute value: Thickness + 1.

Spline Data Color
Additional data of the input splines encoded in the RGBA channels of a  color  image:
R - Tangents X
G - Tangents Y
B - Unused
A - Unused

Spline Amount Integer
The number of input splines.

Parameters

Splines Precision Integer
The base-2 logarithm (log2) of the number of vertices sampled in each path of the Paths input to build the corresponding spline.

Examples

table 0-row-2 html-authored no-header
PathsToSpline-Variant1-Before
Before
PathsToSpline-Variant1-After
After
table 0-row-2 html-authored no-header
PathsToSpline-Variant2-Before
Before
PathsToSpline-Variant2-After
After
recommendation-more-help
dd48abc6-e399-43d2-9777-578ec70c5a23