Print view · Variables · 5 pagesChoose "Save as PDF" as the destination in the print dialog.
Back to the docs

Mesh Morpher documentation

Variables

5 pages · exported 2026-09-06 · https://meshmorpher.com/docs/studio-and-graph/voxel/variables

Studio and Graph › Voxel

Variables

Named values you set once and reuse across the voxel graph.

Studio and Graph › Voxel › Variables

Declare Value

Saves an intermediate value under a name so you can read it back elsewhere without dragging a wire across the graph.

Declare Value node

The Declare Value node

When to use it

Saves an intermediate value under a name so you can read it back elsewhere without dragging a wire across the graph.

Wire it in line the way you normally would; the input passes straight through. Then read it anywhere with a Use Value node carrying the same name.

Worth it for a value that genuinely feeds several branches. For anything local, a wire is easier to follow. Leave the Name empty and it warns you, because nothing can read it.

Pins

Pin Type Description
Value Number The value to put the name on.
Pin Type Description
Value Number The same value, untouched. Keep wiring from here as normal.

Settings

Setting Type Description
Name Text What to call it. A Use Value node with the same name reads it back. Leave it blank and nothing can find it.

Studio and Graph › Voxel › Variables

Get Variable (disabled)

This node cannot work. Graph variables have no authoring surface yet, so there is no value anywhere for it to read, and placing one fails the compile with a message saying so.

Get Variable (disabled) node

The Get Variable (disabled) node

When to use it

This node cannot work. Graph variables have no authoring surface yet, so there is no value anywhere for it to read, and placing one fails the compile with a message saying so.

The hard failure is deliberate. Quietly returning 0 would leave you a graph that looks fine and generates the wrong shape.

Declare Value paired with Use Value covers what this node was meant for: name an intermediate value, read it back somewhere else.

Pins

Pin Type Description
Value Number Nothing comes out of here. There is still no way to create a graph variable, so use Declare Value and Use Value instead.

Settings

Setting Type Description
Variable Name Text Which variable to read. It does nothing while there is still no way to create one.

Studio and Graph › Voxel › Variables

Use Value

Reads a value that a Declare Value node saved earlier.

Use Value node

The Use Value node

When to use it

Reads a value that a Declare Value node saved earlier.

The catch is reachability. The Declare node has to be part of the graph that actually gets compiled, which means it sits somewhere on the path back from Density to Mesh. Declare it on a branch that goes nowhere and the name is never defined, so this node falls back to 0 and posts a warning.

When a Use Value reads zero and you cannot see why, that is the first thing to check.

Pins

Pin Type Description
Value Number Whatever the matching Declare Value node was holding.

Settings

Setting Type Description
Name Text Which name to read. It has to match a Declare Value node upstream, spelling and all.

Studio and Graph › Voxel › Variables

Visualize (compile to sample)

A probe. Drop it in line on any wire and it reads the value passing through at one world position, then prints the number in the node title and the details panel.

Visualize (compile to sample) node

The Visualize (compile to sample) node

When to use it

A probe. Drop it in line on any wire and it reads the value passing through at one world position, then prints the number in the node title and the details panel.

Pins

Pin Type Description
Value Number The wire you want to read.
Pin Type Description
Value Number The same value, untouched.

Settings

Setting Type Description
Sample Point Vector Which spot in the world to read the value at. Starts at the origin.