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#

With the Pointer (V), select the nodes and press Cmd/Ctrl + G. It does nothing while a paint tool is active. 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.

Copy an Image together with its filter and the copy gets its own filter. Copy the Image alone and it keeps using the original one.

Use one on a video#

Wire a video into a subgraph's image port and it filters the video, frame by frame, like any filter. Render records it (Video). Group a filter that a video feeds and you get the same: the port takes images, so the video flows through.

Double-click it and the nodes inside show the frame at the playhead. Move the playhead, then step out and back in to see another frame.

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#