Spline Render

table 0-row-2 0-border-0px 1-border-0px 1-width-33.33% 2-border-0px 2-width-100.00% html-authored no-header

Node icon

In: Spline & Path Tools > Spline Tools

Description

Draws strings of segments along the input Splines over the input Background.

Input connectors

BackgroundGrayscaleThe grayscale image over which splines should be drawn.

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

Output Grayscale
The result image of drawing the input Splines on top of the Background.

Parameters

Mode IntegerThe method of selecting which splines should be drawn:

  • Draw Spline List: Draw all splines in the input list;
  • Draw Single Spline: Draw only the specified spline from the input list;
  • Draw Spline Range: Draw only the splines in the specified range from the input list.

Draw Spline Index Integer (Available when ‘Mode’ is set to ‘Draw Single Spline’)The index of the spline that should be drawn.

Draw Spline Range Integer2 (Available when ‘Mode’ is set to ‘Draw Spline Range’)The range of indexes for the splines that should be drawn.

Show Direction Helper BooleanFor each spline, draws a dot at the start of the spline and an arrowhead at its end.

Segments Amount IntegerAdjusts the number of segments drawn along the splines.
A higher value results in smoother lines.

Envelope Spline Amount Integer
The number of duplicate segments that should be drawn along each spline’s thickness.

Start FloatOffsets the start of the portion of the spline which should be drawn.
The value represents the normalized length of the spline.

End FloatOffsets the end of the portion of the spline which should be drawn.
The value represents the normalized length of the spline.

Thickness Size Mode IntegerThe method of computing the thickness of the drawn segments:

  • Image: the value is normalized in texture space, where 1 is the full width of the image. Thickness is relative to the texture resolution;
  • Pixel: the value is an absolute number of pixels in the texture, where 1 is a full pixel. Thickness is separate from the texture resolution.

Thickness (image) Float (available when ‘Thickness Size Mode’ is set to Image)The thickness of the drawn segments normalized in texture space, where 1 is the full width of the image.

Thickness (px) Float (available when ‘Thickness Size Mode’ is set to Pixel)The thickness of the drawn segments as an absolute number of pixels in the texture, where 1 is a full pixel.

Enable Joints BooleanFills the gaps between the individual segments drawn along the splines, using discs.

Non-Square CorrectionBooleanAdjust the points’ positions and thickness to retain the spline shape in non-square resolutions.
This also impacts uniform distribution.

accordion
Color

Background Intensity FloatThe value multiplied against the Background input image.

Spline Style IntegerThe method used to color the splines:

  • Solid: The segments are drawn using a uniform grayscale value;
  • Gradient: A gradient from black to white is applied along each string of segments from start to end;
  • Height: The height of the splines is used as the grayscale value for drawing the segments.

Spline Color FloatThe uniform grayscale value used to draw the segments.
When a Spline Style other than ‘Solid’ is selected, this color is multiplied against the styled color.

Random Luminance FloatFor each string of uncut segments in a spline, applies a random offset in the specified range to the grayscale value used to draw that string.

Blend Mode IntegerThe method of blending the colors of the background and overlapping segments drawn along the splines:

  • Max: The brightest value is used;
  • Add: The values are added together.
accordion
Random Segments

Random Segments Start FloatAdjusts the probability that the string of segments closer to the start of the spline is cut.

Random Segments End FloatAdjusts the probability that the string of segments closer to the end of the spline is cut.

Random Offset FloatSets the maximum amount of displacement applied to each cut segment along its normal.
This parameter has no effect when Start and End are both set to 0.

Random Offset Center FloatOffsets the center of the random displacement applied to each cut segment along its normal.

Examples

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