Pawscript Download

Guide · Review

Review

The Review tab checks a script, finished or half done, against the device it will play on, fixes what the device cannot follow, gives you the numbers and compares the script with a reference.

Open it with Ctrl+4, or with the command review.open in the View menu. Four panels dock on the right: Problems, Statistics, Compare and Device and heatmap. Positions follow the app's convention throughout, where 0 is the deepest position (fully in) and 100 is out.

Problems

The problem finder checks the active axis, or every axis (see scope), against the active device profile. It reruns about 140 ms after any edit, and on a long script it only re-checks the neighborhood of the change, so it keeps up while you work.

The Review tab with the Problems panel on the right listing problems in the script.
  1. Problems: the list of everything the finder found on the active axis, with the search, severity toggles and Kind select at its head and the counts and profile name in its footer.
  2. A problem row: click it to seek to the problem, select its points and scroll the view to it, the same as F8 for that row.
  3. Fix: shows on a hovered or selected row and applies that problem's fix as one undo step; Ignore sits beside it.
  4. The heatmap: the overview strip colored by speed, with a tick under the bars wherever there is a problem, so you can see where the script is fast and where the trouble is.

Walk the list

KeyCommandWhat it does
F8review.nextProblemJumps to the next problem after the playhead: seeks there, selects its points and scrolls the view.
Shift+F8review.prevProblemJumps to the previous problem.
Ctrl+F8review.fixProblemApplies the problem's fix as one undo step, then selects the next problem without moving the playhead.
Ctrl+Shift+F8review.fixAllOfKindRuns the kind's fix over the whole of every in-scope axis that has a non-ignored problem of that kind, as one undo step.
Alt+F8review.ignoreProblemIgnores this problem and moves to the next.
nonereview.ignoreKindIgnores every problem of this kind.
nonereview.recheckRuns the finder again now.

"This problem" is the selected one; with nothing selected it is the first problem at or after the playhead, and failing that the first in the list. The list wraps at both ends. Clicking a row does the same as F8 for that row, and hovering or selecting a row shows its Fix and Ignore buttons.

Fix all reaches ignored problemsFix all runs the fix over the whole axis, so ignored problems of that kind on those axes get fixed too. Only the count in the toast leaves them out.

Hear it

KeyCommandWhat it does
F9review.playFromPreviousSeeks to 1.5 s before the previous problem and plays.
Shift+F9review.loopProblemLoops from 1.5 s before to 1 s after the current problem (or the nearest next one). Press it again to release the loop.
Ctrl+F9review.stepWhilePlayingWhile playing, once the playhead is 1 s past the selected problem, jumps to 1.5 s before the next one and keeps playing. If paused, it starts from the next problem. Press it again to stop.

Filter, sort, scope

The head of the panel has a search field that matches the message, the kind and the axis, three severity toggles with their counts (Errors, Warnings, Notes), a Kind select and a menu button. The menu holds the sort (By time, By severity, By kind, By length, plus Reverse order) and the scope, Active axis or All axes. The scope is also the command review.allAxes and the setting review.scope, and with All axes each row shows its axis.

The footer has the total count, the ignored count and the profile name, which opens Device and heatmap when you click it. Fix all (n) and Ignore kind act on the selected kind, which is the selected problem's kind, or else the one kind picked in the Kind select; with neither, they are hidden. Once anything is ignored, an Ignored toggle appears that lists the ignored problems as well.

Ignore rules

Ignored problems and kinds are saved in the project (the review block of the .pawproj), so they survive reopening. An ignored problem that no longer matches anything is dropped on the next recheck while the scope is All axes; with Active axis it stays in the block. With Ignored on, an ignored row shows struck through, and its eye button un-ignores it.

What it finds

Every problem is an error, a warning or a note (info). The Fix column is what Ctrl+F8 does; a kind without one has to be fixed by hand. Of the 16 kinds, 13 have a fix.

KindSeverityWhen it showsFix
invalid-action
out-of-order
duplicate-time
negative-time
invalid-position
errorAn imported file that is not normalized.Clean up: normalizes the file.
speed-limiterror above 1.5x the limit, else warningA segment faster than the profile's max speed.Slow to limit: shortens the stroke to the profile's max speed and keeps the times.
too-closewarningTwo moving points closer together than the profile's min interval.Merge close points: thins the cluster to the profile's min interval, keeping whichever point reaches furthest from the point kept before it.
kinematic-limiterror if the device falls more than 20 % short, else warningOnly on profiles with kinematics: a stroke the device cannot finish in time under its velocity, acceleration and jerk limits.Slow to limit: delays the points and slides the rest of the script along. It is an approximation.
long-gapwarning5 s or more without points, with at least 2 reversals in the 10 s on both sides.none
redundantnotePoints in the middle of a flat hold.Remove redundant points: simplifies at tolerance 0.
out-of-rangewarningPositions outside the profile's range, checked only when that range is narrower than 0 to 100.Clamp to range: cuts the positions that fall outside.
jitternote3 or more alternating reversals of at most 2 units.Remove jitter: removes wobbles smaller than 3 units.
micronoteA micro glitch left by a join: a blip, back-step or stall under 6 units in under 60 ms (the Clean joins thresholds).Clean micro glitch
past-mediaerrorPoints after the end of the video.Trim to media: deletes the points after the end.
chapter-jumpwarningThe position moves 50 units or more across a chapter start (150 ms either side).none; check the sync
empty-chapterwarningA chapter of 3 s or more with fewer than 2 reversals.none

A reversal counts when it has 10 units of prominence, or 3 for the kinematic check. The thresholds are the finder's defaults, and there is no setting to change them. The finder also knows two scene-cut kinds, cut-jump and cut-sync, but the Problems panel never gives it the scene cuts, so they do not appear in the app.

Planner devices

A profile whose limits are set to planner (the built-in one is Nucleus Capstan) is a device that runs its own motion planner and reshapes anything it cannot follow. Overspeed on it is something to know about and not something to fix, so speed-limit, too-close and kinematic-limit are reported as notes with the prefix "The planner will reshape this", and kinematic-limit is renamed planner-reshaped. They have no fix, so Ctrl+F8 and Fix all skip them, and the panel counts them under Notes with everything else of info severity. A planner-reshaped stroke that falls short by less than 1 unit of position is not reported at all, whereas speed-limit and too-close are reported as usual.

The planner never gives up time. A point it cannot reach is moved toward the previous position it achieved, by the least amount needed, so input over the limit comes out shallower (the peaks and valleys cut) and not late. The Machine preview shows exactly what it will do.

Device profiles

The profile lives in the Device and heatmap panel, and it drives the problem checks, the heatmap's top of scale (by default), the simulator's over-limit readout and the Limit speed action. Its setting is review.profile, and review.nextProfile cycles through them.

FieldUnitMeaning
Max speedu/s, position units per second, where 1 unit is 1 % of the strokeThe fastest segment the device follows.
Min intervalmsThe shortest gap between two moving points.
Range low / high0 to 100The usable position window.
Latency offsetmsInformational only; the player's sync offset is a separate setting.

Every figure in the built-in profiles except Nucleus Capstan's is an unverified guess, so edit them to match your device.

ProfileidMax speedMin intervalRangeNotes
Generic stroker (conservative)generic250800..100The default.
Generic stroker (fast)generic-fast400500..100Optimistic.
The Handyhandy360600..100
Kiiroo Keonkeon300800..100
Fleshlight Launchlaunch2001000..100
OSR2 / SR6 (DIY)osr2330600..100Depends on the servos.
Nucleus Capstannucleus-capstanderived (600 at 200 mm)200..100Planner; velocity, acceleration and jerk limits from its maker.

Edit a profile

The built-in profiles are read-only, so you edit a copy:

  1. Click Duplicate to copy the current profile (it is named <name> copy), or New for a copy of the generic profile named Custom.
  2. Type into the fields. The Name saves as you type, and the numeric fields save on commit, when you press Enter or leave the field. Nothing saves while any field shows an error. Custom profiles are kept in the setting review.profiles.
  3. To remove a custom profile, click Delete; the active profile falls back to generic.

Limit speed to N u/s (review.limitSpeed) lowers the amplitudes on the active axis so that no segment is faster than the profile's max speed, as one undo step. It is the speed-limit fix applied to the whole axis.

Nucleus Capstan and the stroke window

This profile carries its kinematic limits in millimeters: vMax 1200 mm/s, aMax 100 000 mm/s² and jMax 20 000 000 mm/s³. Position units map to millimeters through the length of rail you actually run, so the panel shows a Stroke window slider from 100 to 300 mm in 5 mm steps (default 200 mm, kept per profile in the setting review.strokeMm).

Heatmap

The overview strip on the timeline colors the active axis by speed. The lanes color the line the same way when you turn it on with H (lanes.toggleSpeedColors), and so does the piston of the simulator on the video. All three use one pair of settings:

ControlSettingDefault
Color scale: Heat, Viridis, Cividis or Grayreview.heatmapScaleheat
Follow the device speed limit (a switch)review.heatmapMax = 0on
Top of scale, 50 to 2000 u/sreview.heatmapMaxthe profile's max speed

The legend bar under the scale runs from 0 to the top of scale, with a tick at the device limit, and a color at or beyond the top means "at least this fast". The overview bars draw the mean speed per column by default; timeline.overview.metric in the View menu switches them to the peak. The bars are scaled so the top of scale sits at mid height, and a hairline across them marks it: that is the device limit while Follow the device speed limit is on, and your custom top otherwise.

Hovering the overview reads the speed, the chapter and any problem under the pointer. The problem ticks sit under the bars and show the worst severity in each column, and the selected problem gets a full-height line.

Statistics

The Statistics panel recomputes live, about 160 ms after an edit. Its scope is Whole, Range (the I/O range), Selection (it needs 2 or more selected points on the active axis) or Chapter (you pick one). A scope that is not set falls back to the whole script, and the panel says so.

The Statistics panel with the script's numbers above its charts.
  1. Statistics: the numbers for the chosen scope, from duration and strokes per minute to the share of segments over the profile's speed limit.
  2. The charts: where the script spends its time and how fast it moves, with the profile's limit marked on the speed distribution.

The numbers are the duration, the number of actions, strokes per minute (and active strokes per minute, which leaves out rest), the stroke count in full cycles, the average, median, 90th percentile and peak speed, the share of segments over the profile's speed limit, the mean amplitude, the typical range (p5 to p95), the time at rest, the longest gap, the mean move duration, and the up versus down speed.

The charts are:

When the project has chapters, a chapters table gives each one's length, strokes per minute, average and p90 speed and share over the limit. Click a row to jump there and switch the scope to that chapter.

Copy as text copies the numbers and the chapter table, tab separated. From anywhere in the app, review.copyStats copies the active axis over the range, or over the whole script without one.

Compare

The Compare panel compares the active axis with a ghost, a reference script drawn on the lane. A ghost comes from one of three places:

Pick the ghost and the span to compare over: Whole script, Selected range or a chapter.

A script compared against a reference ghost, with the Compare panel showing the agreement score.
  1. The ghost: the reference script drawn over your own on the lane, so you can see where the two part ways.
  2. Compare: the ghost and span pickers, the agreement score and its numbers, and the list of differences.

Agreement

The headline number is the turning-point F1, the harmonic mean of precision and recall. Precision is the share of your extremes that have a matching reference extreme within 150 ms, of the same kind, matched one to one; recall is the share of the reference extremes you matched. It colors green at 80 % and above, amber from 55 %, and red below that.

The hint is looseThe panel's hint describes the headline as a share. The number is the F1.

The quick numbers are computed in the app and show at once: matched, extra and missing extremes, precision, recall, the timing error (median and 90th percentile), the timing bias (above 0 means your extremes are late), the best lag, and the position and velocity correlation at 100 Hz.

Run under Full score asks the tracker for the exact scorer. It gives sign detection (whether the script was flipped), the lag, and, when the span covers more than one chapter, a per-scene table with F1 and lag per chapter; click a row to view that chapter. It needs the tracker running, and without it the button is disabled.

Differences

Two tabs list the differences, and both are also drawn as markers on the overview:

Adopt

CommandWhat it does
review.compareAdoptRangeReplaces your script with the ghost over the I/O range, as one undo step. The Adopt in range button does the same.
review.compareClearRemoves the difference markers from the overview; it is the Clear markers button.
Adopting over a live shotAdopting is a hand edit like any other. While Edits as modifiers is on, which is the default, it lands on a live shot as a Patch and the shot stays live; with the setting off, it bakes the live shots it covers (see Editing a live shot).

Copy as text copies the score rows (the tracker's result if there is one, else the quick numbers) and the scene table.

Machine preview

The Machine preview shows what the device will actually do with the active axis. Turn it on with view.machinePreview, which is "Machine preview (device kinematics)" in the View menu and the setting of the same name. It needs a profile with kinematics, which is Nucleus Capstan or a copy of it.

The Machine panel

The Machine panel is a 3D simulation of a device playing the active axis, for planning scripts and scenes. A Machine | Stroker switch at the top picks the device: Machine is a thrust machine with the toy you pick on its carriage, and Stroker is a sleeve stroker, with sleeve presets or a sleeve imported from a picture. In Machine mode the toy is simulated as soft silicone, so it compresses and lags behind the carriage.

The simulation is a model with plausible dynamics for planning scripts and scenes. It is not a measurement of any body or of sensation, and it is not guidance on what is safe for a person.

The view and the stroke window

On the timeline and from the video

Knot events on the timeline, in the panel's ... menu and off by default, draws what the simulation predicts over the stroke lane while the panel is open. Dots, crosses and triangles mark the predicted events, each with a thin line back to the stroke that caused it, and a quiet bar marks where the machine sat at its force limit. It follows the final script and the panel's toy, settings and stroke window, it goes away when the panel closes, and the lane's ghost toggle hides it too.

When a tracker run has measured depth from the video (a group with its depth glyph on), the stroke window gets an S / V / S+V header. S plays the script. V plays the video's depth where the reading is confident, and the script elsewhere. S+V plays the script and shows the video's depth as an orange bar on the stroke window and a dashed outline in the view, and the readouts then say how far the script is from the video. Where the reading is not confident nothing is shown for the video, and the device always gets the script.

The characters, the body model and its layers, the tuning settings and the depth readouts are described in the full Machine panel guide on GitHub.