UV Generator

Read with AI
All docs in one file (llms-full.txt)
UVGenerator #ProFx #Node
UV Generator

Divides the output canvas into several rectangles (Regions) and distributes each one’s UV Rect as an individual output port. Their destination is the Rect inputs of UV Mapper. At the same time it also outputs a Composed Output that paints each Region as a colored rectangle, so you can check the layout or use it directly as an image.

Region

+ Add adds one, and the × on each card deletes it (at least one always remains). The maximum is 16. When added, the defaults are UV Rect (0, 0, 0.25, 0.25), Res 640×360, and a color cycling through 8 presets (red, green, blue, yellow, cyan, magenta, orange, purple).

Each Region grows a Rect output port named R0, R1, … (the PortIDs are region_0, region_1, …).

Display Mode (how they light up)

This changes the brightness of each Region in the Composed Output.

  • Chase (default) — only the Regions whose order is near Offset light up. The brightness is 1 - clamp01(position difference × Region count × 2)

  • Single — only the one specified by Index has brightness 1, the rest are 0.1

  • All — all of them have brightness 1

  • Offset — 0–1. Values coming through the input port are wrapped into 0–1 with Repeat(v, 1) (Offset input / offsetInput / offset)

  • Output — the resolution of the Composed Output. Default 1920×1080

Each Region’s “Res” value is used neither by the Composed Output nor by the Rect outputs. It is metadata that is only saved.

The Composed Output is regenerated only when a parameter or a Region changes, not every frame. Generation writes into a Texture2D one pixel at a time on the CPU and then Blits, so the higher you raise the output resolution, the heavier regeneration becomes.

Brightness in Chase mode is determined by the Region’s order (its position in the sequence). Deleting a Region renumbers order from 0.

Input ports

Port IDType
Offsetfloat

Output ports

Port IDType
Composed OutputRenderTexture

Scriptable members

PathType
offsetInputfloat
displayModeint
singleIndexint
offsetfloat
regionCountint

Synapse Apps (scripting)

await synapse.modules.create({ type: "UVGenerator" })

Pages linking here