Pawscript Download

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.

The Graph panel in the bottom dock with a preset's nodes wired together and the Probe row under the lanes.
  1. Canvas: where the nodes and wires live. Press Shift+A here to add a node wired to the focused one.
  2. Node: one step of the pipeline. Its parameters are in the inspector (Ctrl+I), and a failing node turns red with the reason.
  3. Wire: carries a script, a signal, spans or a number from an output to an input. Its color says which.
  4. 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.
  5. Presets: opens the gallery of ready-made graphs and your saved selections.
  6. Bake: writes every Axis output to its axis as one undoable edit. The button names the axes it writes, for example "Bake → stroke".
The Graph panel with a preset placed.

Concepts

Values on wires

Every socket has a type, and the wire takes the type's color.

WireColorCarries
Scriptskya funscript: {at, pos} points, where pos 0 is the deep end and 100 is out
Signalgreena curve sampled on the graph's grid (25, 50, 100 or 200 Hz, default 50). A gap is unknown (NaN), not zero
Spansyellowtime intervals with an optional kind, label and value. A zero-length span is a point, drawn with a hollow diamond socket
Numbergrayone 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 wiredInsert
Signal → ScriptSignal → Script (sig.toScript) or Sample at times (sig.sampleAt)
Script → SpansTurning points (script.turns) or Strokes (script.strokes)
Signal → SpansThreshold → spans (spans.threshold)
Spans → SignalSpans → Signal (spans.toSignal) or Value by kind (spans.kindValue)
Script/Signal → NumberStatistic (an.stat)
Spans → ScriptSwitch 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).

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:

NodeGives
Plan segments (src.plan)the plan lane as spans, with kind set to the segment kind. Only kinds filters them
Chapters, Loop regionsthe chapters and loop regions as spans
Bookmarkspoints
Time range (I/O) (src.range)one span, from your I and O marks
Selectionpoints; 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

FamilyWhat it holdsSockets
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 spansout: 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 recipesfollow 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, maxSpeedin: 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:

ParamDefaultMeaning
axisstrokethe axis written
modereplacereplace: 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
seamMs0inside only: 0 is a hard cut; any other value blends the joins over that many milliseconds
maxSpeed450the 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

Bake

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.

idNameWhat it does
tracker-cleanupTracker clean-upGhost → Remove micro-reversals (3) → Smooth (savgol, 160 ms) → Keep extremes (prominence 8) → Cap speed (450) → stroke
depth-by-kindDepth by plan kindthe clean-up, then Extremes (6 %, relative) and Remap depth driven by Depth by kind from Plan segments (fade 400 ms)
mix-trackersMix two trackers by confidencetwo 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-phaseRoll from the stroke's phaseAxis stroke → Phase → Phase wave (sine, offset 0.25, center 50, depth 18) → Sample at (the stroke's times + mids) → Cap speed → roll
twist-from-phaseTwist from the stroke's phasethe 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-smoothingA/B two smoothing settingsone ghost through moving 120 ms and savgol 240 ms, each to a Ghost preview, scored by Compare, picked by Select input
polishPolish the strokeAxis stroke → Simplify (1) → Remove micro-reversals → Min spacing (50 ms) → Cap speed (450) → Quantize (media frame) → stroke
fill-dropoutsFill tracker dropoutsconfidence below 0.4 for 500 ms or more → Follow strokes from the run's turns → spliced into the run's points
scene-flip-fixFix flipped scenesInvert the run's points inside scenes whose sign is negative
plan-plus-trackerPlan inside, tracker elsewhereCompile plan inside plan spans, the cleaned tracker outside, through Switch by spans
tracked-effectsTracked motion + effectsa 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-tilingTile a loop cyclea hand-drawn cycle (const.script) tiled across the I/O range with variation, spliced into the stroke
humanizeHumanizeHumanize (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

  1. Shift+A, type ghost, Enter. Pick the tracker ghost in the inspector.
  2. With it focused, Shift+A → Remove micro-reversals. Repeat for Smooth (method savgol, window 160), Keep extremes only (minProminence 8), Cap speed (maxSpeed 450) and Expand / soften extremes (amount 6, relative on).
  3. 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.
  4. Append Remap depth after Expand / soften extremes. Drag lo onto its Deep end socket and hi onto Out end.
  5. Append Axis output with axis stroke. The ghost "Graph → stroke" appears on the lane.
  6. 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

  1. Axis (src.axis, axis stroke) → Stroke phase (script.phase). Its phase output is 0 at each out turn and 0.5 at each deep turn; amp is each stroke's size, 0..1.
  2. Phase → wave (sig.phaseWave): wire phase → phase and amp → amp. Set offset 0.25, depth 18, center 50, followAmp 1.
  3. Sample at times (sig.sampleAt): wire the wave into signal and the Axis script into times, and set also to mids.
  4. Cap speed → Axis output with axis roll, then bake. Two outputs on different axes bake in one undo step.

Something only inside some spans

  1. Make the spans: Plan segments → Filter spans (kinds), Threshold → spans on a signal, a Select node, or Problems.
  2. 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.
  3. To put the result back into the existing script, either set the Axis output's mode to inside with a seamMs, or use Splice (script.splice: base, insert, where; seam cut or blend, seamMs) or Switch by spans (flow.switch: a outside, b inside, fadeMs).

Tidy and reuse

Keys

Every key here needs focus inside the graph panel, except the first. The full key list is on the Keys page.

KeyCommandAction
Ctrl+Alt+Shift+Ggraph.showshow the graph editor (global)
Shift+A, Shift+F10, ContextMenugraph.addadd a node, appended to the focused node
Ctrl+Shift+Agraph.insertBeforeinsert a node before the focused node
Entergraph.editParamedit the focused card's first parameter
Cgraph.connectconnect: pick a compatible socket
Alt+Right / Alt+Leftgraph.followDown / graph.followUpfollow the wire downstream / upstream
Alt+Down / Alt+Upgraph.siblingNext / graph.siblingPrevnext / previous sibling
Arrowsgraph.move*move the selection 20 units; Shift+Arrows moves 5 times as far
Ctrl+Arrowsgraph.walk*focus the node in that direction
Delete, Backspacegraph.deletedelete the selection (or the hovered wire)
Ctrl+Delete, Ctrl+Backspacegraph.dissolvedelete, keeping the wires through
Ctrl+Dgraph.duplicateduplicate
Ctrl+C / Ctrl+X / Ctrl+Vgraph.copy / graph.cut / graph.pasteclipboard
Ctrl+Agraph.selectAllselect all
Mgraph.mutebypass / mute
Hgraph.collapsecollapse / expand the card
Pgraph.probeprobe the node in the timeline
Shift+Pgraph.probeCycleprobe the next output
Alt+A / Alt+Bgraph.pinA / graph.pinBpin as A / B
Xgraph.swapABswap A and B
Sgraph.snapshotsnapshot the output to a ghost
Dgraph.diffshow what the node changed
Fgraph.frameSelectionframe the selection in view
Homegraph.fitfit all
F8 / Shift+F8graph.nextProblem / graph.prevProblemnext / previous problem
Ctrl+Entergraph.bakebake the selected outputs (all when none)
Ctrl+Shift+Entergraph.bakeAllbake all outputs
Ctrl+Z / Ctrl+Y, Ctrl+Shift+Zgraph.undo / graph.redoundo / redo (shares the app's undo stack)
Escapegraph.escapecancel the gesture, close the palette, restore from maximize, or deselect
Ctrl+Ggraph.groupgroup the selection in a frame
Ngraph.noteadd a sticky note
Shift+Lgraph.arrangeauto-arrange (the selection, or all)
Ctrl+Igraph.inspectorshow / hide the inspector
Ctrl+Shift+Mgraph.maximizemaximize / restore the panel
F2graph.renamerename 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