Spline 2D Transform

Node icon

In: Spline & Path Tools > Spline Tools

Description

Applies a global transformation to all input splines, including inverting their direction.

Input connectors

Preview GrayscaleThe preview of the input splines as a grayscale image.

Spline Coords ColorThe 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 ColorAdditional 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 IntegerThe number of input splines.

Output connectors

Preview GrayscaleThe preview of the output splines as a grayscale image.

Spline Coords ColorThe coordinates of the output 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 ColorAdditional data of the output splines encoded in the RGBA channels of a color image.
    R - Tangents X
     G  - Tangents Y
     B  - Unused
     A  - Unused

Spline Amount IntegerThe number of output splines.

Parameters

Flip Direction BooleanInverts the direction of the spline.

Transform Matrix Float4The transformation matrix applied to the splines.
Three modes of editing the matrix parameters are available:
- Transformation gizmo: tweak the handles of the gizmo displayed in the 2D View when the Spline 2D Transform node is selected;
- Rotation/Stretch: Individually control the rotation and stretching of the splines. Note that values are always applied relatively to the current transformation. E.g., applying 50% width twice results in a 25% width;
- Matrix values: Click the Edit Matrix Values button to input the raw numerical values of the matrix directly.

Offset Float2Applies a position offset to the splines in X (horizontal) and Y (vertical).

Preview

Show Direction Helper BooleanDisplays a dot at the start of the spline and an arrowhead at its end in the Preview output.

Show Thickness Envelope Boolean
Displays additional lines at the edges of the spline’s thickness.

Segments Amount IntegerAdjusts the number of segments used to draw the spline visualization in the Preview output.
A higher value results in a smoother line.

Thickness (px) FloatAdjusts the thickness of the spline visualization in pixels in the Preview output.

Examples

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