Node graphs
Wire a clip’s effects as a node graph in the node editor, so they can branch and come together, with merges to lay one picture over another.
A clip’s effects are normally drawn one after another, from the top of the list down. As a node graph, each effect is a node that takes its picture from whatever is wired into it. A node’s picture can go to any number of other nodes, so the graph can branch, and a merge lays one picture over another, so the branches can come together again. The picture wired into the output is the clip’s.
A node is just its effect. Its settings, keyframes, masks, mix and blend mode are the same as in the list, and you still change them in the Inspector’s Effects section. A clip can be made into a node graph and back into a list without changing any of its effects.
Open the node editor
Click Node editor in the timeline toolbar, or press ShiftAltN, to show or hide it. It opens below the tracks, with the keyframe editor if that’s open too. Drag its top edge to resize it, and double-click the edge to reset its height.
The node editor shows the selected clip. With nothing selected, click Select the clip at the playhead.
Make a node graph
With a clip selected, click Make a node graph. The clip’s effects become nodes wired in the order the list drew them, from the Source on the left to the Output on the right, so the picture doesn’t change.
In the Inspector, the Effects section then says the effects are drawn as the node graph wires them, and Open the node editor goes to it. Effects you add in the Inspector go in just before the output.
Some effects work on the whole clip rather than its picture: how it’s timed or placed, such as Motion blur, Echo, a held frame, a light wrap, a fill behind it or an upscale. These aren’t nodes. They stay in the Effects section and work as they do without a graph.
A graph can have at most 24 nodes.
Add nodes
- Add a node in the editor’s header adds one after the node you’ve picked, or just before the output when none is picked.
- Add a merge in the header does the same with a merge.
- Double-click empty board to add a node there, or a wire to add one into it.
- Drag from a node’s output port (the dot on its right) to empty board and let go: the node you choose there takes that picture.
- Drag an effect from the Effects tab onto the board. Dropped on a wire, it goes into it; on a node, after it; on empty board, where you dropped it, wired to nothing.
- Right-click a node and choose Add a node after it…, or right-click empty board or a wire and choose Add a node here… or Add a merge here.
A node that nothing reaches the output through is dimmed and does nothing. Its card says Not drawn.
Wire nodes
Each node has an input port on its left, for the picture it’s drawn on, and an output port on its right, for the picture it gives.
- Wire one picture into another: drag from a node’s output port to another node’s input port, or the other way. While you drag, a port that can take the picture grows; one that can’t is red, because the wire would make a loop.
- Move a wire: drag the wire’s end at an input port to another port.
- Unwire: drag a wire’s end off its port onto empty board, or right-click the wire and choose Disconnect. A node with nothing wired in is drawn on a clear picture.
- Make a node the output: drag its output port to the Output card’s input, or right-click it and choose Make it the output.
A node’s right-click menu also has Take its picture from… and Give its picture to…, so you can wire without dragging.
The Source card is the clip’s own picture, cut by its masks. Wire it into as many nodes as you like.
Merge two pictures
A merge lays its foreground over its background. Its background is its input, like any node’s. Its foreground is the second port, under its name: drag a picture into it, or right-click the merge and choose Lay over it….
The merge’s settings in the Inspector set where the foreground goes: Position X, Position Y, Scale and Rotation. Its Mix and Blend mode set how it’s laid over, as they do for any effect (see Mix and blend an effect). A merge with nothing wired into its foreground passes its background on.
For example, to put a glow only behind the picture: wire the Source into a glow, the glow into a merge’s background, and the Source into the same merge’s foreground.
View a node
Click the eye on a node’s card, or pick it and press V, to show that node’s picture on the program monitor. The monitor says which node it’s showing. Press V again, or click Show the output in the editor’s header or on the monitor, to see the clip’s picture again. Double-click the Source card to view it.
Viewing is only for looking: exports and snapshots always draw what the output gives.
Pick, move and tidy
- Pick: click a card. Shift-click, or Ctrl-click, to pick more or fewer. Drag across empty board to pick the cards inside the box. CtrlA picks them all, and Esc picks none.
- Move: drag a card. Every picked card moves with it. They snap to a grid; hold Alt to move them freely. The arrow keys nudge the picked cards, by 50 with Shift.
- Change a node’s settings: double-click its card, or pick it and press Enter, to show it in the Inspector.
- Lay out: click Lay out in the header to set each node a step after what it takes.
- Pan and zoom: scroll to pan, and hold Ctrl while you scroll, or pinch, to zoom about the pointer. Drag with the middle button to pan, or with a finger on a touch screen. Press F or click Fit to the graph to see every node, 0 for its actual size, and = or - to zoom in or out. The buttons at the bottom right do the same.
Copy and remove nodes
- Copy: CtrlC, or Copy the picked nodes in the header’s More menu. Paste with CtrlV, here or onto another clip’s graph. Pasted nodes keep their settings and keyframes.
- Duplicate: CtrlD. Each copy takes its picture from what the original takes it from.
- Remove: Delete or Backspace. What took a removed node’s picture takes what that node took instead. CtrlX copies and removes.
Each of these is one step you can undo.
Make the effects a list again
In the header’s More menu, choose Make the effects a list again. The effects are drawn in order again. A list can’t lay one picture over another, so merges are removed, and effects the output didn’t draw are turned off. A message says how many.
Locked tracks
On a locked track, the node editor shows the clip’s graph but doesn’t change it. Unlock the track to edit it.
Keys
These work when the board has focus. Click it, or press Tab to get to it.
| Key | What it does |
|---|---|
| ShiftAltN | Show or hide the node editor |
| V | View the picked node on the monitor, or show the output again |
| Enter | Show the picked node in the Inspector |
| F | Fit to the graph |
| = / - / 0 | Zoom in, out, or to actual size |
| Arrow keys | Nudge the picked nodes, or pan with none picked |
| CtrlA | Pick every node |
| CtrlC / CtrlX / CtrlV | Copy, cut or paste nodes |
| CtrlD | Duplicate the picked nodes |
| Delete | Remove the picked nodes |
| Esc | Pick none |
| ShiftF10 | The menu of the focused node, or the board |
Scripts
The agent API builds node graphs too: makeNodeGraph and removeNodeGraph make and remove one, addNode and insertNode add nodes, connectNodes wires them, moveNodes and layOutNodes set them on the board, duplicateNodes and removeNodes copy and remove them, getNodeGraph reads one back, and viewNode views one. A node’s settings change with updateEffect, as any effect’s do.