User Guide Cancel

Paths Vertex Processor | Substance 3D Designer

Node icon

In: Spline & Path Tools > Path Tools

Description

Applies a transformation on the vertices position of the input Paths.

The node should be used as follows:

  1. Edit the Per Vertex Function parameter function;
  2. Use Get Float2 nodes to acquire; the vertex.posprev.pos and/or next.pos variables
  3. Do some operations on those values (E.g., multiply them to scale the paths);
  4. Set the result of your computation as output.

Be sure to set the appropriate Previous vertices accessed and Next vertices accessed values before querying prev.pos or next.pos
You can also add input images and sample them from the function. You must first connect an input to able to sample it from the function. (Be careful, first input is Image 1!)
You can also access the prev[2].pos (Float2), next[2].pos (Float2), vertex.corner (bool) and path.id (float) variables.

Tip:

For advanced users, the Paths Format Specification explains how the data of paths is encoded into color images, and provides tips for manipulating this data directly.


Input connectors

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

Input # Color/Grayscale
Inputs for images that should be sampled in the Per Vertex Function parameter function.


Output connectors

Paths Color
The transformed Paths. You can either use Preview Paths to get an idea of what the result represents, use another Paths-processing node, or input it to a Paths to Spline to further process it as Splines.


Parameters

Previous Vertices Accessed Integer
Using this parameter will allow you to get the position of the previous vertex along the path (prev.pos) and the previous previous vertex (prev[2].pos) using Get nodes in the Per Vertex Function parameter function.

Next Vertices Accessed Integer
Using this parameter will allow you to get the position of the following vertex along the path (next.pos) and the following following vertex (next[2].pos) using Get nodes in the Per Vertex Function parameter function.

Image Input Count Integer
The number of visible Input # input connectors to connect images that should be sampled in the Per Vertex Function parameter function.
Once you are done setting up all the desired samples, you can hide unused pins by reducing this parameter's value back to 0.

Per Vertex Function Float2
Function applied for each vertex. Must return the new vertex position.
See the Description section in this page for guidance.


Examples

Node example 2

Get help faster and easier

New user?