Grid Snap - a custom Substance Designer tool
Grid Snap is a utility node designed to automate grid-based positioning of texture elements in Substance Designer. It provides deterministic snapping behavior by aligning the input element's user-defined anchor point with the nearest grid intersection.
The tool enables precise control over an element's position relative to the grid by separating anchor selection from grid resolution, making it easy to maintain consistent spacing and modular alignment across complex material graphs.
How it works:
- Computes the element’s bounding box from the alpha mask (or grayscale mask)
- Allows selecting a specific anchor point within that bounding box (center, corners, edges, etc.)
- Uses the selected anchor as the reference coordinate for snapping
- Aligns that anchor to the nearest grid intersection based on a configurable grid size
For faster interaction, the anchor point can also be intuitively dragged directly in the 2D view, automatically snapping to the closest grid point. This makes it easy to visually position elements without adjusting numeric parameters.
Key features:
- Configurable grid resolution for different modular scales
- Anchor-based snapping system for predictable alignment behavior
- Interactive anchor dragging in the 2D view with automatic grid snapping
- Works with alpha masks or grayscale inputs
- Deterministic positioning suitable for procedural workflows
Grid Snap is particularly useful when building modular materials, structured patterns, trim sheets, decals, tileable layouts, and grid-based procedural systems, where consistent spatial alignment is required. It eliminates manual offset adjustments and ensures elements snap cleanly to a predictable grid structure.