Convert to Expression

Replace a node, in place, with an editable Expression that reproduces what it was doing.

Convert to Expression swaps a node for an Expression node carrying the same computation as readable code, wires intact, so the maths becomes something you can edit by hand.

How to use it

Right-click any node in the node graph and choose Convert to Expression.

Incoming and outgoing connections are preserved, so nothing downstream notices the change. From there you can rename attributes, adjust formulas, and add steps.

Three uses:

The swap is undoable. Cmd+Z returns the original node.

A one-way conversion

Once a node becomes an Expression there is no button to turn it back. The original parameters and controls are gone, replaced by the code. That is the trade: the node's dials for hands-on control.

To read the logic without committing, convert a duplicate (Cmd+D first), or undo straight after reading the code.

Not every node can convert

Conversion handles per-element data work, the point, attribute, and geometry maths an Expression can express. A node doing something an Expression cannot represent is left unchanged, and a notice appears in the console explaining why.

Four things decide it:

Multi-output nodes can convert, as long as their extra outputs are unwired. An Expression has one output, so conversion reroutes everything onto it. That is safe when nothing was connected to the others, and refused when something was.

Selecting two or more nodes converts the run into a single Expression. That path skips the proven list and asks only whether the combined work can be written down, so it reaches further than converting the same nodes one at a time. When it cannot, the console says so and points you at Collapse to Subgraph instead.

See also