Subgraphs

Fold a cluster of nodes into one tidy, reusable node.

Fold a cluster of nodes into one Subgraph node. From outside it is a clean node with a few ports. Double-click and you are inside, editing everything it holds.

Make one#

Select the nodes, press Cmd/Ctrl + G. Wires that crossed the boundary become ports. The result does not change, it just folds up.

Go inside#

Double-click to dive in. The breadcrumb at the top climbs back out. Nest as deep as you like.

Choose its ports#

Inside, click the export badge on an Image, Color, Number, Boolean, or Text node's title to expose it as a port on the outside. Magerie works out input or output from how it is wired. Double-click a port's name on the outside to rename it, or drag its grip to reorder.

Use one as a layer filter#

A subgraph with one image output (and at most one image input) works as a layer Filter. Alt + drag it onto an Image node to filter the active layer. Non-destructive, touches only that layer.

Reuse it#

Alt + drag a subgraph onto empty board for a linked copy: edit the inside once and every copy follows.

Drop a saved .mage onto the board and it lands as one node with that project inside. To offer a subgraph in every project, turn on its own export badge and save the document into your library folder (Files & Library).

Where to next#