Pawscript Download

Guide · Generators and the plan

Generators and the plan

Lay a scene out as a row of plan segments, give each one a kind and a recipe, and Generate writes whole stretches of the script for you. This page covers the plan lane, every kind, recipe and generator parameter, and how the plan compiles.

The plan is a row of segments on the plan lane, and each segment has a kind: fade-in, penetration, knotting, climax, orgasm and so on. When you press Generate, each segment is filled by a generator (the algorithm) through a recipe, which is a named preset of that generator's parameters. Where tracker runs exist, the follow-type recipes put the extremes on the tracked turning points; everywhere else they run at a rate.

Positions run from pos 0, the deep end, to pos 100, the out end. Every range on this page is written lo..hi, with lo at the deep end and hi at the out end.

The plan in one pass

  1. Open the Plan panel in the right dock (timeline.plan). Ctrl+Alt+I opens it and focuses the inspector.
  2. Drag on empty space in the plan lane to draw a segment. It gets the armed kind, which is Penetration until you arm another one: click a kind chip in the panel, or drag the chip onto the lane.
  3. Select the segment, then pick its recipe and tweak its parameters in the inspector. Double-click the block, or press Enter with the lane focused, to open it over the block.
  4. Press Generate (Ctrl+Shift+G). New and stale segments are written into the active axis, and everything outside the generated spans keeps its points.

Edit the plan and not the points, and regenerate after every change. A hand-edited span you want to keep is either locked (Alt+Shift+L), so Generate skips it, or detached, which keeps the points and removes the segment.

The plan lane with three segments, one of them selected and open in the Inspector.
  1. Plan lane: the row you draw segments on. Drag empty space for a new segment of the armed kind.
  2. Segment: one block in its kind's color, with the compiled motion drawn inside when Plan preview is on. Drag the body to move it, an edge to resize it.
  3. Kind: one radio per kind, with its digit. The kind picks the default recipe and the block color.
  4. Recipe: the generator and preset that fill the segment, the kind's default listed first.
  5. Inspector: the selected segment's name, state, kind, recipe and parameters. With several selected, an edit applies to all of them.
  6. Generate: writes the segment, or the selection, into the active axis.

Plan lane

The lane shows every segment as a block in its kind's color. With Plan preview on (Ctrl+Alt+P, or the eye button in the panel) the compiled motion is drawn inside each block, and the selected segments' motion is also drawn into the point lane as a ghost named "Plan preview".

Mouse

ActionResult
Drag empty spaceNew segment of the armed kind
Drag a block bodyMove it, and the rest of the selection with it
Drag a block edgeResize it; an edge shared with a touching neighbor moves both
Shift while draggingNo snapping
Ctrl while draggingPush the neighbors along, and they keep their length
Alt while dragging an edgeDetach it from the touching neighbor, so it stops at the neighbor
ClickSelect; Ctrl+click toggles, Shift+click extends in time order
Click empty spaceClear the selection and seek there
Double-click a blockInspector popover
Right-clickContext menu: split here, merge, duplicate, kind, generate, detach, lock, edit, delete
Drop a kind chip from the panelOnto empty space, a new segment that fills the gap, bounded by the scene cuts or 10 s with none. Onto a block, it sets the block's kind

While you drag, edges snap to scene cuts, other plan edges, loop edges, the range and the playhead, and otherwise to the frame grid.

Keys

Keys marked lane fire only while the plan lane has keyboard focus, which it shows with a focus ring and a "PLAN · KEYS" tag. The others work from anywhere and focus the lane.

KeyCommandScope
Shift+NAdd a segment at the playhead: the range if one is set, else the gap between the scene cuts around the playhead (10 s with no cuts)anywhere
PSelect the segment under the playheadanywhere
Alt+PageDown / Alt+PageUpNext / previous segment, seeking to its startanywhere
SSplit the segment at the playheadlane
Shift+MMerge the selected neighboring segmentslane
Ctrl+DDuplicate the selection after itself; the copies are new and unlockedlane
Delete / BackspaceDelete the selection; its points staylane
Ctrl+ASelect all segmentslane
EnterOpen the inspector for the selectionlane
EscapeClose the inspector, else clear the selectionlane
1..9, 0 (also with Shift)Set the selection's kind, by the digits in Kindslane, with a selection
Ctrl+Shift+GGenerate the new and stale segments, or the selection instead when the lane is focused and has oneanywhere
Ctrl+Alt+GGenerate the whole plan (every unlocked segment)anywhere
Alt+Shift+LLock / unlock the selectionanywhere
Ctrl+Alt+PPlan preview on / offanywhere
Ctrl+Alt+IOpen the Plan panel's inspectoranywhere

These commands have no default key, so you reach them from the command palette or the context menu: timeline.plan.generateSelected, timeline.plan.detach, timeline.plan.import / importMerge, timeline.plan.exportDirector / exportSpans, and one timeline.plan.arm.<kind> per kind, which arms that kind for drawing.

Kinds

A kind is the story role of a segment. It chooses the default recipe and the block color, but it does not limit which recipe you can pick.

DigitKindDefault recipeGenerator
1Fade-infade-inramp
2Foreplaysmooth-smallsmooth
3Oraloralfollow
4Penetrationpenetrationfollow
5Knottingknot-pop-strokeknot-stroke
6Climax (fast run-in)climaxramp
7Orgasmorgasmtremor
8Afterglow / slow endingafterglowramp
9Off-screen (carry)carryfollow
0Title / idleholdhold
noneOutroholdhold
noneCustomstrokesstrokes

Climax, orgasm, afterglow

In the reference scripts the finale is three parts in a row, so plan it in that order. climax is a few seconds of full-range strokes, faster than before and usually speeding up; orgasm is a fast flutter and small pulses near the deep end; afterglow slows it all down. Their median lengths in the reference are about 6.5 s, 24 s and 30 s. Projects saved before climax and orgasm were split open with their old climax segments as orgasm on the recipe orgasm-pulses, so they generate the same motion as before.

Changing the kind

If a segment is on its old kind's default recipe, changing its kind moves it to the new kind's default; a segment on a recipe you picked by hand keeps it. Parameter overrides that still apply to the new recipe are kept.

When you export the plan as tracking spans, each kind maps to a span state: climax to climax, orgasm to orgasm, off-screen to carry, idle and outro to idle, and everything else to active.

Recipes

A recipe is one generator plus preset parameters. The inspector's Recipe dropdown lists the kind's default first, then every other recipe.

RecipeGeneratorPreset
holdholdpos 100
fade-inramp0..90, rate 1.2 → 2.4, depth 0.15 → 1, ease-in-out, sine
smooth-smallsmooth55..95, amp 14, rate 1.4, driftMs 9000
teasetease0..95, rate 2, edge 0.3, every 3, dip 0.7, pauseMs 350, full 0.15
tease-toptease-top80..100, rate 0.67 (Autorange's fill for dead gaps)
oralfollow40..95, sine, fallbackRate 2.0
oral-strokesstrokes40..95, rate 2.0, sine
penetrationfollow0..85, two-speed on a seeded 25 % of half-strokes, fallbackRate 2.4
penetration-strokesstrokes0..85, rate 2.4, the same two-speed
knot-pop-strokeknot-stroke0..80, knotOut 17, popTo 64, knotIn 30, press 20, popSpeed 600
knot-pop-heldknot0..85, knotLevel 30, between 4
knot-tiedknot0..85, knotLevel 30, between 3, tied on, popsBeforeTie 1
climaxramp10..90, rate 4.0 → 5.5, depth 1 → 1, linear, anchor lo (the fast run-in before the orgasm)
orgasmtremor0..40, a flutter 20 deep every 333 ms, the last 6 s as pulse bursts 20 / 15 / 10 / 5
orgasm-pulsespulsesrate 6.8 → rateEnd 4.2 over decayMs 15000, 1..34, amp 23 → ampEnd 20 (the old climax recipe)
afterglowramp0..90, rate 2.0 → 0.6, depth 0.8 → 0, ease-out, sine (ends held at the top)
afterglow-followfollow0..90, sine, fadeFrom 1 → fadeTo 0, ease-out
carryfollow0..85, sine, the plain follow generator: the turns inside the span are used, and the neighboring rate is carried only where there are none
accelerandoramp0..85, rate 1.2 → 3.2, full depth, exp curve
ritardandoramp0..85, rate 3.2 → 1.2, full depth, exp curve
fade-outramp0..90, rate 2.4 → 1.2, depth 1 → 0, ease-in-out, sine
strokesstrokesthe generator's defaults
beatsbeatsthe generator's defaults

A parameter's value comes from three places, and each overrides the one before: the generator's default, then the recipe's preset, then the segment's own override. Setting a value back to the recipe's default removes it as an override, and the reset dot in the form does the same.

Generators

A few words mean the same thing in every generator:

Common parameters

Every generator except hold has these, and in the inspector they sit under More.

KeyDefaultRangeMeaning
intensity10..1Depth × intensity toward the anchor, and every rate × (0.5 + 0.5 × intensity); 0 is a flat line at the anchor. It has its own slider at the top of the inspector
invertoffpos → 100 − pos
anchorhihi mid loSee above
fadeFrom, fadeTo1, 10..1Depth envelope across the segment, a fade in or out on any generator
fadeCurvelinearlinear ease-in ease-out ease-in-out exp step
jitterTime00..0.4Turning points move by up to this × the shorter neighboring half-stroke (seeded)
jitterAmp00..0.5Depth shrinks by up to this × the travel, toward the anchor (seeded)
seed00..999999An extra seed for this segment's variation

hold

KeyDefaultMeaning
pos100Stays there
invertoff

strokes: constant strokes

KeyDefaultRange
rate2.40.05..12 turns/s
lo, hi0, 850..100
shapelinear
startinin out
phase00..1 of a cycle. One cycle is one stroke, or 2 turns, so 0.5 is half a stroke later and the pattern starts at the opposite extreme
inFrac0.50.1..0.9

ramp: rate and depth together

The ramp covers accelerando, ritardando, fade-in and fade-out. Depth is a fraction of lo..hi and shrinks toward the anchor.

KeyDefaultRange
rate0 → rate11.2 → 2.4turns/s
amp0 → amp10.2 → 10..1
curveease-in-outlinear ease-in ease-out ease-in-out exp step. Between two positive rates exp is geometric, with equal ratios per second
lo, hi0, 85
shapesine
start, phase, inFracin, 0, 0.5

smooth: small smooth motion

Small sine strokes whose center drifts slowly inside the band, driven by two seeded sines. Its anchor defaults to mid.

KeyDefaultRange
lo, hi55, 95
amp141..100 pos
rate1.4turns/s
driftMs90001000..120000
variation0.250..1. At 1, stroke length varies ±30 % and depth by up to −50 %; at the default 0.25, ±7.5 % and up to −12.5 % (seeded)
shapesine
startin

tremor: orgasm

The orgasm curve, fitted from the 25 s orgasm in a reference script. It is a flutter at the deep end, the pattern 0,10,5,15,10,20,10,15,5,10,0 scaled to amp, then a hold at the bottom, repeating every periodMs. For the last pulseMs of the segment it changes to bursts of pulseCount pulses whose depth falls from pulseAmp (20, 15, 10, 5), each followed by a rest at the bottom that goes from restMs to restEndMs. The anchor is lo, and it ends at the bottom.

KeyDefaultRange
lo, hi0, 40
amp201..100 pos (the flutter's peak)
periodMs333100..2000
holdMs670..1000
pulseMs60000..120000 (0 is flutter only)
pulseAmp201..100 pos
pulseCount41..12
pulseHalfMs5020..500
restMs → restEndMs183 → 1830..3000 (a longer end rest thins the pulses out)

pulses: classic orgasm pulses

Abrupt, fast, shallow pulses at the deep end with no holds, whose rate and depth ease from the onset values to the end values over decayMs. The anchor defaults to lo. Bottoms sit at lo plus up to deepJitter, and tops at the bottom + depth × (1 ± ampJitter), capped at hi. The segment switches in abruptly, with no fade.

KeyDefaultRange
rate → rateEnd6.8 → 4.2turns/s
decayMs150000..120000
decayCurveease-in-out
lo, hi1, 34
amp → ampEnd23 → 201..100 pos
ampJitter0.250..1
deepJitter20..20 pos
shapelinear
startin

follow: tracked strokes

The extremes land on the tracker's turning points, with this range and shape. Where the tracker is silent the local rate is carried through: a gap longer than max(gapFactor × the local half-stroke, gapMinMs), and both edges of the segment, are filled at the median half-stroke of the turns within contextMs. With no turns anywhere near, it uses fallbackRate. Pairs of turns closer together than minHalfMs are thinned.

KeyDefaultRange
lo, hi0, 85
shapelinear
startinOnly matters where turns are unlabeled or absent
carryonCarry the rate through gaps
gapFactor31.5..10
gapMinMs1500200..10000
fallbackRate2.4turns/s
minHalfMs600..500
contextMs100001000..60000

Where the turns come from is in Tracker runs and the Follows selector.

knot-stroke: knot on every stroke

Every stroke passes the knot. One cycle starts at full depth and is six linear moves:

#MoveLands atShare of cycle
1Slow pull out, held back by the knotknotOut 17fPull 0.270
2Pop out, near-instantpopTo 64fPopOut 0.077
3Rise to the tophi 80fTop 0.132
4Back down to the knotknotIn 30fDown 0.326
5Slow press against the knotpress 20fPress 0.157
6Pop in, near-instantlo 0fPopIn 0.038

At the default rate of 1.85 a cycle is about 1083 ms. When a cycle is longer or shorter than that, the pops keep their duration (popScale 0) and the slow moves absorb the difference; popScale 1 scales everything with the cycle. The pops can move at up to popSpeed (600 pos/s), which is above the global speed cap because the pop is the speed spike, and popSpeed 0 keeps them under the global cap. variation 1 gives the measured spread: the cycle length varies ±28 % (in rate mode) and the knot-in level ±2 pos, seeded, and the other levels never vary.

timing decides where the cycles come from. auto takes follow timing when the plan has any turns at all, because every segment's chosen run adds its turns to one shared list; a knot-stroke segment with no run of its own still follows when some other segment has one. Only with no turns anywhere in the plan does auto fall back to rate. Follow timing works like follow: it uses the turns within contextMs of the segment, and otherwise carries at fallbackRate (2.4), not at rate. With turns, each bottom → top → bottom pair is one cycle, so full depth lands on the bottom turn and the top on the top turn, with moves 1 to 3 fitted into the out half and 4 to 6 into the in half. follow forces follow timing, and rate ignores the turns.

KeyDefaultRange
rate1.85turns/s (2 turns = 1 cycle)
lo (full depth), hi (top)0, 80
knotOut, popTo, knotIn, press17, 64, 30, 200..100 pos, clamped into lo..hi
fPull fPopOut fTop fDown fPress fPopIn0.270 0.077 0.132 0.326 0.157 0.038shares, normalized
popScale00..1
popSpeed6000..2000 pos/s
variation10..3
timingautoauto rate follow
follow parametersas followused when the timing comes from turns

knot: knot pop, held back

One pop runs in this order:

  1. between shallow bumps from hi down to knotLevel, with a fast approach that slows as it presses.
  2. An approach that catches at the knot, then a press 3 pos below it for pressMs.
  3. A push through to lo over pushMs, which spends resist of the time on the first quarter of the travel and then slips.
  4. A dwell of dwellMs at depth with micro-strokes of grind pos.
  5. A resisted pull to halfway up the knot over pullMs, then a pop out to hi over popMs.

Every move is lengthened as needed so it never exceeds the speed cap. With tied on, the push after popsBeforeTie pops stays at depth, with small strokes of tiedAmp at tiedRate until the segment ends.

KeyDefaultRange
lo, hi0, 85
knotLevel300..100 pos
rate2.4bump rate, turns/s
between40..32 bumps between pops
pressMs1600..2000
pushMs65050..5000
resist0.60.25..0.9
dwellMs4500..10000
grind30..20 pos
pullMs2600..3000
popMs14030..2000
tiedoff
popsBeforeTie20..50
tiedAmp100..50 pos
tiedRate2turns/s
timingautoauto takes follow timing when the plan has any turns at all (as in knot-stroke), else rate; rate; follow. The bump times come from the turns, carried at fallbackRate where there are none nearby
follow parametersas follow

tease-top

Slow, shallow, eased strokes at the out end of lo..hi. It is what Autorange fills dead gaps with: a scene with no act, a run with almost no motion, or a long span with no points. Each half-stroke's length varies by periodJitter and each stroke's depth by ampJitter (the deepest reaches lo), and with chance pause a stroke holds at the top instead.

KeyDefaultRange
lo, hi80, 100
rate0.67turns/s (a stroke is about 3 s)
periodJitter0.20..0.5
ampJitter0.30..0.5
pause0.120..0.5
shapesine

tease

Shallow strokes at the out edge, and every every strokes a dip that stops short at dip of the range, pauses for pauseMs and retreats. With chance full a dip goes all the way to lo instead.

KeyDefaultRange
lo, hi0, 95
rate2turns/s
edge0.30.05..1 of the range
every30..20
dip0.70..1 of the range
pauseMs3500..3000
full0.150..1
variation0.20..1
shapesine

beats: taps / beats

Extremes on a list of times in the parameter times (ms, or {at} objects). It covers the beats plus one interval on each side, not necessarily the whole segment.

CatchThe app passes no beats or taps of its own, and times is not in the recipe's schema, so import, new segments and inspector edits drop it. In the app this recipe produces nothing unless times is written straight into the .pawproj.
KeyDefaultRange
lo, hi0, 85
shapelinear
startinthe parity of alternate mode
modealternatealternate: the beats alternate deep and out. hit: every beat is a deep hit, with an out point between
every11..16: use every nth beat
offsetMs0−1000..1000
outFrac0.50.1..0.9: in hit mode, where the out point sits between beats

Stroke shapes

A shape is the profile of one half-stroke, made of extra points inside it, and since devices interpolate linearly between points, the points are the motion. The inspector offers the shape names; the finer knobs and the modifiers are only reachable by editing a segment's parameters in exported JSON.

NameKnobsProfile
linearnoneNo extra points
sinesamples 3Ease in and out
ease-inpower 2, samples 2Slow start, fast arrival
ease-outpower 2, samples 2Fast start, slow arrival
two-speedratio 2 (speed before / after), at 0.5One mid-stroke point
bounceamount 0.12Arrives early, rebounds, settles
hold-top / hold-bottom / hold-bothdwell 0.3 (0.25 for both)Dwells at that end for dwell of the half-stroke
customknots [[u, v], ...]u is the time fraction, v the travel fraction

A shape object also takes modifiers: dir: 'in' | 'out' applies it in that direction only, prob: 0..1 applies it to a seeded share of half-strokes and leaves the rest linear, and { in: spec, out: spec } gives each direction its own shape. The penetration recipe's shape, for example, is { name: 'two-speed', ratio: 2, at: 0.5, prob: 0.25 }.

Inspector

The inspector opens in the Inspector and Plan panels for the selection, or as a popover over the block when you double-click it or press Enter. With several segments selected, every edit applies to all of them. From the top:

Generate, states and locks

Every segment has one of four states:

StateMeaning
NewNever generated
FreshThe script holds what this segment generates
StaleThe span, kind, recipe or parameters changed since it was generated. For follow and knot recipes it also goes stale when the turns of the run it follows change within 10 s around the segment
LockedGenerate skips it, whatever else is true

The control beside the Generate button, and the keys, set the scope: Needed is new and stale segments (Ctrl+Shift+G), Selected is the selection, and All is every unlocked segment (Ctrl+Alt+G). The whole plan is compiled each time so the joins between neighbors stay right, but only the targets' spans are written into the active axis. Points outside the targets are never removed, and the joins to them are blended by trimming the generated side only.

A segment that leaves the plan through Delete or Detach leaves its points in the script, and Detach generates the segment first if it is new or stale. Duplicates made with Ctrl+D come back as New and unlocked.

Counts and issues

The panel's counts line shows how many segments are new, stale, locked and fresh, and the last compile time. Issues from the compile appear in the segment list (an icon per segment, with plan-wide ones above the list), in the inspector and in the Generate toast. There are two levels:

How compilation works

The plan generates each segment over its own span, [t0, t1], independently of the others, then joins them in time order. Gaps between segments stay empty.

Tracker runs and the Follows selector

Recipes on the follow and knot generators, and knot-stroke in auto or follow timing, take their turning points from tracker runs, which are the ghosts on the active axis whose source is the tracker (see Tracking). Each segment chooses a run, and the chosen run's turns inside that segment's span go into one plan-wide turn list that every generator sees.

The Follows selector and the run chip exist only for follow and knot recipes. A knot-pop-stroke segment (on knot-stroke) has no selector and no chip, so it cannot pin a run from the interface and is always Auto, although a source written into the .pawproj is still honored. The block shows the run chip, ⌖ when pinned, when several runs overlap the segment or one is pinned. The turn kinds (top or bottom) come from the run's script, and a plateau turns at its first point.

Import / export

Both are in the Plan panel's Import / export section, or timeline.plan.import* / export* from the palette.

The plan itself is saved in the .pawproj, because it does not fit in a bare .funscript.

Recipes for common jobs

JobHow
Steady strokes at a tempo, no trackingKind Custom, recipe strokes or penetration-strokes, and set rate: 2.4 is 72 strokes/min, or strokes/min ÷ 30
Fast in, slow outstrokes or ramp with inFrac 0.35
Build-up over a minuteaccelerando (rate 1.2 → 3.2) or fade-in (depth 0.15 → 1)
Wind-down to a stopafterglow (rate 2.0 → 0.6, depth 0.8 → 0, ends at the top), or afterglow-follow to keep the tracked timing while it fades out
Cutaway while the action continuesKind Off-screen (carry), the plain follow: where the run has no turns there, the neighboring rate is carried straight through, and where it does, they are used. Without a plan segment, mark the scenes as one action (right-click on the scenes row) and the bridge plays live there; see Workflows
A knot that goes in and staysknot-tied (popsBeforeTie 1). For repeated pops with between bumps before each, looping until the segment ends, use knot-pop-held; for a pop on every stroke, knot-pop-stroke
A quieter version of any segmentThe Intensity slider: depth × I toward the anchor, rate × (0.5 + 0.5 I)
A hand-made span inside a generated sceneLock the segment, or Detach it, and leave it out of Generate