Guide · Device playback
Device playback
The Device panel plays the stroke axis on a toy or a machine in sync with the video, through the built-in Buttplug server or a Valence hub. The panic stop is Shift+Esc, and it works from anywhere in the app.
Turning it on
The Device panel is the Device tab in the right dock. The playhead drives the device, so it follows seeks and rate changes, and pausing the video stops it.
There are two outputs. A toy plays through the built-in Buttplug server, in the Device section, and a Valence hub plays through the Valence hub section. When a Valence hub is live and you have control of it, Pawscript uses the hub ahead of a Buttplug device.
Nothing moves until you connect and turn on Play on device with the video (Ctrl+Alt+D). Pawscript remembers neither across launches, so every launch starts with nothing connected and playback off.

- Connect: starts the Buttplug server and scans for toys. Press it first when you play on a toy.
- Scan: looks for devices.
- Valence hub: the hub's address and port and its own Connect, for playing on a Valence hub instead of a toy.
- Playback: the Play on device with the video switch and the settings that apply to both outputs.
- Latency offset: moves the device later (
+) or earlier, to trim the sync by eye. - Profile: the device profile, which holds the speed and message gap that Buttplug moves are held to.
Playback settings
The Playback section applies to both outputs.
| Setting | What it does |
|---|---|
| Play on device with the video | Turns playback on and off (Ctrl+Alt+D). It is off at every launch. |
| Latency offset | Shifts the device in time against the video; + means the machine moves later. Use it to trim the sync by eye. |
| Range | The share of the device's stroke the script uses. |
| Invert | Flips the stroke, for a machine mounted the other way. |
| Follow scrubbing while paused | With the video paused, the device follows the playhead while you scrub. |
Buttplug
Connect starts the Buttplug server inside the app and scans Bluetooth LE, serial and HID. Pick a device that has a position axis; the device list marks it position.
Pawscript holds every move to the speed and message gap of the device profile you pick in the Profile section. The planner profile nucleus-capstan is not speed-limited, because the machine's own planner reshapes fast moves.
Valence hub
Valence is the OpenValence hub-and-spoke protocol for machines such as Nucleus and its simulator twin, neutrino-sim. Pawscript is a Valence client, so it connects to the hub over WebSocket, takes on the hub's catalog and safety state, and streams the script as timed segments that the hub plans itself.
Connecting
- Type the hub's address and port in the
Valence hubsection (Nucleus listens on port82) and press Connect. Connect Valence hub / disconnect in the Play menu does the same.LinkreadsConnecting…, thenSyncing…while it reads the hub's catalog, thenLive. Pawscript remembers the address and port. Accessstarts atwatch, which means you can see the machine but not drive it. Press Request control, then approve the request in the hub's own app; if the hub is in a push-to-pair window, pressing its pair control grants control at once. Pawscript remembers the token for that address and port, so the next connect goes straight tocontrol.- Turn on Play on device with the video and play the video.
Streamshows the granted rate and the lead, and the status bar chip readsValence · playing.
Safety
- Pause and Resume are one button. Pause latches the hub's PAUSE, so the machine stops and holds, and any session may pause it. Resume clears it. Pawscript never resumes on its own.
- The stop button reads E-Stop on a hub that cuts motor power and Halt on a hub that brakes. A press latches it and the button reads Halted. To release it, hold it for 3 s; the hub then lands in PAUSE, so press Resume to carry on.
- The panic stop (Shift+Esc) also pauses the hub.
- When you pause the video, Pawscript sends one short stop segment and then nothing, and the hub settles and releases the rail after half a second.
What is sent
Each span between two points goes to the hub as one segment of target, duration and end velocity, on the hub's motion segments stream, which Pawscript finds in the hub's catalog by its role.
The target is pos / 100 after the Range and Invert settings, so pos 0 plays at the window's 0 end (window.min, the home end) and pos 100 plays at the far end. That is the convention common funscript players use too. If your machine is mounted the other way, use Invert or the hub's own flip.
Where the script carries on in the same direction through a point, the end velocity is the script's smooth tangent through that point. At a reversal, a hold, a gap over 0.5 s or the end of the script, the end velocity is zero, so the machine comes to rest there.
The hub handles the kinematics and clamps the motion to its window and to its speed, acceleration and jerk limits, so Pawscript limits nothing itself on this path.
Timing
Pawscript stamps each segment 100 ms ahead of the hub's clock plus the hub's declared scheduling latency. That sum is the lead, and the script goes out that much early so the machine moves on the frame. Use Latency offset to trim it by eye.
What the panel shows
Everything the panel shows about the machine is what the hub reports. Position and the thin mark in the Live meter are the machine's reported position against its reported window, and they dim once the report is more than a second old. A – means the hub sent nothing. Refused shows the hub's last refusal, for example SOURCE_CONFLICT when something else owns the rail.
Not supported yet
- Hub discovery, so type the hub's address.
- PIN pairing.
- The samples stream.
- The oscillator axes,
V8andV9. - Multi-axis playback.