Guide · Node graph
Node graph
The Graph panel is a node editor that reads your document and produces scripts from it. Nothing in your script changes until you bake, and a bake is one undo step.
Open the graph
The graph reads your axes, ghosts, tracker runs, the plan, chapters, scenes and the audio, and turns them into scripts. Open it with Ctrl+Alt+Shift+G (command graph.show, or the menu Track ▸ Advanced ▸ Graph). It lives in the bottom dock of the Refine and Track tabs.
That key is the only global one. Every other graph key on this page works only while the graph panel has focus.

- Canvas: where the nodes and wires live. Press Shift+A here to add a node wired to the focused one.
- Node: one step of the pipeline. Its parameters are in the inspector (Ctrl+I), and a failing node turns red with the reason.
- Wire: carries a script, a signal, spans or a number from an output to an input. Its color says which.
- Probe: the row under the lanes that draws the focused node's output on the timeline after you press P. It is 64 px tall and starts folded.
- Presets: opens the gallery of ready-made graphs and your saved selections.
- Bake: writes every Axis output to its axis as one undoable edit. The button names the axes it writes, for example "Bake → stroke".
Concepts
Values on wires
Every socket has a type, and the wire takes the type's color.
| Wire | Color | Carries |
|---|---|---|
| Script | sky | a funscript: {at, pos} points, where pos 0 is the deep end and 100 is out |
| Signal | green | a curve sampled on the graph's grid (25, 50, 100 or 200 Hz, default 50). A gap is unknown (NaN), not zero |
| Spans | yellow | time intervals with an optional kind, label and value. A zero-length span is a point, drawn with a hollow diamond socket |
| Number | gray | one number; on/off is 1/0 |
The flow nodes (Switch by spans, Gate by spans, Select input and Reroute) are typed "any" and take the type of whatever you wire in first.
Two conversions happen on their own and are drawn as a diamond on the wire: Script → Signal (sampled on the grid) and Number → Signal (a constant). The editor refuses every other conversion and suggests the node that does it:
| You wired | Insert |
|---|---|
| Signal → Script | Signal → Script (sig.toScript) or Sample at times (sig.sampleAt) |
| Script → Spans | Turning points (script.turns) or Strokes (script.strokes) |
| Signal → Spans | Threshold → spans (spans.threshold) |
| Spans → Signal | Spans → Signal (spans.toSignal) or Value by kind (spans.kindValue) |
| Script/Signal → Number | Statistic (an.stat) |
| Spans → Script | Switch by spans (flow.switch) or Splice (script.splice) |
An input takes one link, so wiring a second one replaces the first. Outputs fan out to as many inputs as you like. Loops are refused.
Parameter sockets
A parameter marked ~ in the inspector has its own socket, named p:<key> on the card. A wire into that socket drives the parameter, and the value you typed stays as the fallback wherever the wire has no value (NaN in a signal).
- The amplitude nodes (Remap depth, Gain, Offset, Limit range and Depth curve) accept a Signal, so the parameter varies along time. A Number or a Script also fits; a Script is sampled.
- Every numeric parameter of an Edit node accepts a Number only, such as a statistic, a constant or the media fps.
To go back to the stored value, use the unlink button beside the parameter in the inspector.
Spans and Only inside
Every Edit, Select and Generate node has an extra input, Only inside (port name where, type Spans), and so do Axis output, Switch by spans, Gate by spans, Statistic, Splice, Keep inside and Tile loop. Left unconnected, the node works on the whole script. Connected, it runs once per span with that span's own parameters (see per-kind overrides). Overlapping spans are flattened first, and the span that starts later owns the overlap.
These nodes feed Only inside:
| Node | Gives |
|---|---|
Plan segments (src.plan) | the plan lane as spans, with kind set to the segment kind. Only kinds filters them |
| Chapters, Loop regions | the chapters and loop regions as spans |
| Bookmarks | points |
Time range (I/O) (src.range) | one span, from your I and O marks |
| Selection | points; not saved |
Scenes / cuts (src.scenes), Span labels (src.trackSpans) | spans from the tracker. Tracker run also outputs events and scenes |
any Select node (select.*) | its points output, ready for an Only inside |
Problems (an.problems) | the problems the chosen Device profile (profile, default generic) finds at severity At least (minSeverity), as spans, so an edit fixes only there |
Threshold → spans (spans.threshold) | where a signal is above or below a level, with hysteresis and a minimum length |
Span algebra reshapes spans before they reach Only inside: Filter spans (spans.filter: kinds, label, length, value above or below), Invert spans, Intersect (and), Union (or), Subtract, Pad spans, Close gaps, Shift spans, Relabel spans, and Spans between points, which turns points into the spans between them.
Edit, Select and Generate nodes
| Family | What it holds | Sockets |
|---|---|---|
edit.<op> | every operation of the Edit menu, wrapped as a node, except set point, number key and set time. Grouped as Edit · amplitude, time, density, speed, rhythm, variation, and points (advanced) | in: script (required), where. out: script, and changed, the points at the actions it produced (press D to see them, or probe them) |
select.<op> | the selection helpers: select turns, grow, shrink, every Nth, by speed, similar, invert. With Only inside connected they start from the actions inside those spans | out: points |
gen.<generator> | every pattern generator, such as hold, strokes, ramp, smooth, pulses, tremor, follow and beats (full list). Recipes appear as palette variants under their generator's node, so Pulses (gen.pulses) lists its recipes | follow and one other generator take a turns input (points, usually from Turning points); beats takes beats (points, for example Bookmarks) |
Compile plan (gen.plan) | generates every plan span with its own recipe and parameters; gaps stay empty. Params seed, maxSpeed | in: segments (spans, required), turns |
A generator with Only inside connected generates each span over its own extent and joins the pieces under Speed cap (maxSpeed, default 450 pos/s, 0 turns it off). Unconnected, it generates over the whole video.
Per-kind overrides
When Only inside is connected to spans that have kinds, the inspector shows one chip per kind above the parameters, with All first. Click a kind and change a parameter, and that value applies only inside spans of that kind. Overridden rows and chips are highlighted. Reset kind drops all of the kind's overrides, and the reset on a row drops that one. The overrides are stored on the node (byKind), so they survive re-wiring.
Fold
An edit node with Only inside connected folds: it runs the operation once per span, in order, with that span's parameters, on a clip around the span, then splices the piece back.
Operations that move actions in time fold right to left, and the spans downstream of them are not moved along; the card says "time-shift". Those operations are shift, stretch, reverse, quantize, equalize spacing, jitter, humanize, double/half time, change stroke rate, repeat, ripple, fit, nudge, move and duplicate.
Depth per kindDo not fold a time-moving operation per segment to change depth per kind. Use Remap depth driven by Depth by kind instead, which crossfades at the boundaries.
Outputs
Axis output (out.axis) is what Bake writes. Its parameters:
| Param | Default | Meaning |
|---|---|---|
axis | stroke | the axis written |
mode | replace | replace: the axis becomes the input. inside: the input replaces the axis only inside Only inside, or inside the input's own extent when Only inside is unconnected. merge: the input's points are added, and the input wins on equal times |
seamMs | 0 | inside only: 0 is a hard cut; any other value blends the joins over that many milliseconds |
maxSpeed | 450 | the speed cap enforced at the seams |
The card shows a bake chip: never, baked, stale (the graph changed since), axis differs (the axis was edited since) or error. Two unmuted Axis outputs on the same axis are an error, and neither bakes.
An Axis output fed from Axis (src.axis) of the same axis warns, because each bake would start from the last bake's result. The fix it offers is Freeze source to ghost: a pinned copy of the axis replaces the source, so repeated bakes start from the same place.
Ghost preview (out.ghost, params name and color, default pink) is for previewing only and never bakes.
Preview, probe, A/B
- Live in the toolbar (command
graph.doc.live) publishes every enabled output as a ghost "Graph → <axis>" on its lane, about 150 ms after you stop changing things. Preview ghosts are never saved. - P probes the focused node on the Probe row under the lanes, and Shift+P cycles through its outputs. Hover the row and every card shows its value at that time.
- Alt+A and Alt+B pin two nodes, and the toolbar strip scores them (F1 of matched turns, and lag). X swaps them. S snapshots a node's current output into a ghost, which stays until Graph: Clear snapshots.
- M mutes a node: its first input of the same type passes straight through, so you see what that one step contributes.
- A failing node turns red with the reason, and the nodes behind it dim and say "waiting on …". Outputs that do not depend on the failure still bake. F8 and Shift+F8 jump through the problems.
- If a full evaluation takes longer than 250 ms, the status line names the slowest node, and previews update when you release instead of during a drag.
Bake
- Ctrl+Enter bakes the selected Axis outputs, or all of them when none is selected. Ctrl+Shift+Enter bakes all. Every axis written goes into one undo step; a bake creates any axis that does not exist yet, and Undo removes it again.
- From the command palette, Graph: Bake outputs inside the range (I/O) (
graph.doc.bakeRange) writes only between your I and O marks, and Graph: Bake and disable (graph.doc.bakeDisable) bakes and then parks the graph. - Graph: Enable and Graph: Disable (
graph.doc.enable,graph.doc.disable): a disabled graph keeps its nodes, does not evaluate and publishes no previews. Graph: Evaluate now (graph.doc.evaluate) runs a full pass and reports the time or the first error.
Hand editsIf you edited an axis by hand since its last bake, the app asks before a bake overwrites it.
Graphs are saved in the .pawproj (block graphs). Only the open graph evaluates, and a funscript export never includes graphs.
Presets
Presets in the toolbar (or the graph menu ▸ Presets…) opens the gallery. Place adds a preset to the open graph, and New graph (built-in presets only) starts a new graph from it. The preset's source pickers are bound from the document: the first tracker ghost, the reference ghost, successive tracker runs, or a named axis. A slot it cannot bind is reported, so you can pick by hand.
| id | Name | What it does |
|---|---|---|
tracker-cleanup | Tracker clean-up | Ghost → Remove micro-reversals (3) → Smooth (savgol, 160 ms) → Keep extremes (prominence 8) → Cap speed (450) → stroke |
depth-by-kind | Depth by plan kind | the clean-up, then Extremes (6 %, relative) and Remap depth driven by Depth by kind from Plan segments (fade 400 ms) |
mix-trackers | Mix two trackers by confidence | two Tracker runs → Blend by confidence (γ 2) → Fill gaps (500 ms) → Smooth (gaussian 120 ms) → Signal → Script (extremes, prominence 4, gap 60 ms) → Cap speed → stroke |
roll-from-phase | Roll from the stroke's phase | Axis stroke → Phase → Phase wave (sine, offset 0.25, center 50, depth 18) → Sample at (the stroke's times + mids) → Cap speed → roll |
twist-from-phase | Twist from the stroke's phase | the same chain with cycles 0.5, offset 0.5, depth 25 → twist |
| one more preset (its id and name are in the full guide) | Plan segments → Filter (one plan kind) → Pulses (that kind's pulses recipe) → Splice into the stroke (blend, 150 ms) | |
ab-smoothing | A/B two smoothing settings | one ghost through moving 120 ms and savgol 240 ms, each to a Ghost preview, scored by Compare, picked by Select input |
polish | Polish the stroke | Axis stroke → Simplify (1) → Remove micro-reversals → Min spacing (50 ms) → Cap speed (450) → Quantize (media frame) → stroke |
fill-dropouts | Fill tracker dropouts | confidence below 0.4 for 500 ms or more → Follow strokes from the run's turns → spliced into the run's points |
scene-flip-fix | Fix flipped scenes | Invert the run's points inside scenes whose sign is negative |
plan-plus-tracker | Plan inside, tracker elsewhere | Compile plan inside plan spans, the cleaned tracker outside, through Switch by spans |
tracked-effects | Tracked motion + effects | a tracker ghost → Apply effects (fx.apply, its Only inside fed by Effects src.fx, the Effects row) → stroke, inside the tracker's extent. Per-kind overrides on Apply effects add to each effect's own params |
loop-tiling | Tile a loop cycle | a hand-drawn cycle (const.script) tiled across the I/O range with variation, spliced into the stroke |
humanize | Humanize | Humanize (natural) + Gain driven by slow Noise (0.85..1) → Cap speed → stroke |
Save selection as preset… (graph.savePreset, also in the right-click menu) stores the selected nodes, their wires and the frames around them under a name. Saved presets appear in the gallery under Saved, and you can delete them there.
Export .pawgraph… and Import .pawgraph… in the graph menu move whole graphs between projects. A node type the build does not know (from a newer build) is kept as "Missing" and survives a save.
Build a pipeline
The cleanest way to build is from the keyboard, because every Shift+A appends a node already wired to the focused one.
Tracker → clean → depth per plan segment → stroke
- Shift+A, type
ghost, Enter. Pick the tracker ghost in the inspector. - With it focused, Shift+A → Remove micro-reversals. Repeat for Smooth (
methodsavgol,window160), Keep extremes only (minProminence8), Cap speed (maxSpeed450) and Expand / soften extremes (amount6,relativeon). - Add Plan segments, then Depth by kind (
spans.kindRange), and wire Plan segments into Depth by kind. Edit its Range per kind table, which comes with a default range for each plan kind (listed in the full guide). Kinds not in the table use Default range 10–90, and Fade is 400 ms. - Append Remap depth after Expand / soften extremes. Drag
loonto its Deep end socket andhionto Out end. - Append Axis output with
axisstroke. The ghost "Graph → stroke" appears on the lane. - Press P on any node to check it on the Probe row, then Ctrl+Enter to bake. Ctrl+Z takes the bake back.
To vary the clean-up per kind instead, focus Smooth, wire Plan segments into its Only inside, click a kind chip in the inspector and change window.
Derive roll from the stroke
- Axis (
src.axis,axisstroke) → Stroke phase (script.phase). Itsphaseoutput is 0 at each out turn and 0.5 at each deep turn;ampis each stroke's size, 0..1. - Phase → wave (
sig.phaseWave): wirephase→phaseandamp→amp. Setoffset0.25,depth18,center50,followAmp1. - Sample at times (
sig.sampleAt): wire the wave intosignaland the Axis script intotimes, and setalsoto mids. - Cap speed → Axis output with
axisroll, then bake. Two outputs on different axes bake in one undo step.
Something only inside some spans
- Make the spans: Plan segments → Filter spans (
kinds), Threshold → spans on a signal, a Select node, or Problems. - Wire them into the node's Only inside. For a generator, that is where it generates; for an edit, it is where the edit acts.
- To put the result back into the existing script, either set the Axis output's
modetoinsidewith aseamMs, or use Splice (script.splice:base,insert,where;seamcut or blend,seamMs) or Switch by spans (flow.switch:aoutside,binside,fadeMs).
Tidy and reuse
- Ctrl+G frames the selection, N adds a sticky note, and Shift+L auto-arranges the selection, or everything when nothing is selected.
- A wire dropped on empty canvas opens the node search filtered to compatible nodes. Ctrl+Shift+A inserts a node before the focused one, and C picks a compatible socket to connect to.
- Ctrl+Delete dissolves a node and reconnects its input to its outputs.
- Random nodes store their seed, so the same graph always gives the same script. Reroll seed in the inspector gives a new variation.
Keys
Every key here needs focus inside the graph panel, except the first. The full key list is on the Keys page.
| Key | Command | Action |
|---|---|---|
| Ctrl+Alt+Shift+G | graph.show | show the graph editor (global) |
| Shift+A, Shift+F10, ContextMenu | graph.add | add a node, appended to the focused node |
| Ctrl+Shift+A | graph.insertBefore | insert a node before the focused node |
| Enter | graph.editParam | edit the focused card's first parameter |
| C | graph.connect | connect: pick a compatible socket |
| Alt+Right / Alt+Left | graph.followDown / graph.followUp | follow the wire downstream / upstream |
| Alt+Down / Alt+Up | graph.siblingNext / graph.siblingPrev | next / previous sibling |
| Arrows | graph.move* | move the selection 20 units; Shift+Arrows moves 5 times as far |
| Ctrl+Arrows | graph.walk* | focus the node in that direction |
| Delete, Backspace | graph.delete | delete the selection (or the hovered wire) |
| Ctrl+Delete, Ctrl+Backspace | graph.dissolve | delete, keeping the wires through |
| Ctrl+D | graph.duplicate | duplicate |
| Ctrl+C / Ctrl+X / Ctrl+V | graph.copy / graph.cut / graph.paste | clipboard |
| Ctrl+A | graph.selectAll | select all |
| M | graph.mute | bypass / mute |
| H | graph.collapse | collapse / expand the card |
| P | graph.probe | probe the node in the timeline |
| Shift+P | graph.probeCycle | probe the next output |
| Alt+A / Alt+B | graph.pinA / graph.pinB | pin as A / B |
| X | graph.swapAB | swap A and B |
| S | graph.snapshot | snapshot the output to a ghost |
| D | graph.diff | show what the node changed |
| F | graph.frameSelection | frame the selection in view |
| Home | graph.fit | fit all |
| F8 / Shift+F8 | graph.nextProblem / graph.prevProblem | next / previous problem |
| Ctrl+Enter | graph.bake | bake the selected outputs (all when none) |
| Ctrl+Shift+Enter | graph.bakeAll | bake all outputs |
| Ctrl+Z / Ctrl+Y, Ctrl+Shift+Z | graph.undo / graph.redo | undo / redo (shares the app's undo stack) |
| Escape | graph.escape | cancel the gesture, close the palette, restore from maximize, or deselect |
| Ctrl+G | graph.group | group the selection in a frame |
| N | graph.note | add a sticky note |
| Shift+L | graph.arrange | auto-arrange (the selection, or all) |
| Ctrl+I | graph.inspector | show / hide the inspector |
| Ctrl+Shift+M | graph.maximize | maximize / restore the panel |
| F2 | graph.rename | rename the node |
These commands have no key and run from the command palette: graph.new, graph.align{Left,Right,Top,Bottom,CenterH,CenterV}, graph.distributeH, graph.distributeV, graph.savePreset, graph.doc.bake, graph.doc.bakeRange, graph.doc.bakeDisable, graph.doc.enable, graph.doc.disable, graph.doc.evaluate, graph.doc.live and graph.doc.clearSnapshots.
In the node search, Up and Down walk the list, Right and Left open and close a group, Enter places the node, Shift+Enter stars it as a favorite, and Esc closes the search. Favorites and Recent are listed first.
Limits
- A graph has one signal grid, so timing finer than the grid is lost in Signal nodes. Stay in Script nodes where exact timing matters. Signal → Script refines extremes below the grid step.
- Tracker runs last only for the session. After a reload, Tracker run falls back to the run's ghost and warns: the signal is the same, confidence is 1 wherever the signal is known and unknown elsewhere, and there are no events or scenes.
- Audio fills once the waveform has loaded. Tags has no provider yet and stays empty.
- Evaluation runs on the main thread, so a heavy node on a long script can pause the interface briefly. Mute it while you tune what comes after it.
- There are no sub-graphs or macros.