Skip to page content and links

Tools

Poser: cursor-driven pose blending for Rive

A Rive scripting library that turns cursor motion into blend weights for up to six authored pose timelines, with an optional path-shaped hitbox.

Client: IVG Design

Poser: move the cursor, the pose follows.

What it is

A Rive scripting library: a Node script, `Poser`, that converts cursor motion into ViewModel blend weights, and an optional Path Effect script, `PoserHitboxHelper`, that gives it a hitbox in the shape of a path. It is shipped as a library file (`poser-lib.rev`) and is part of the Rive Open Source Script Library.

What it does

You author up to six pose timelines (center, left, right, top, bottom and an optional click pose), bind each timeline's weight to a ViewModel number, and attach `Poser` to a node. As the cursor moves over the hitbox, `Poser` writes the blend weights, so the character or object leans toward the cursor; on exit it eases back.

Features

  • Six channels `p1` to `p6` (names configurable), with hover blending on five and a click pose on the sixth
  • Weight range to match your timelines: 0 to 100 or 0 to 1
  • Fixed hitbox, or a dynamic hitbox from any path through `PoserHitboxHelper`, which follows the real contour (rounded corners and curves included), not just the bounding box
  • Configurable exit behaviour, enter and return durations, and easing (cubic by default, elastic and more)
  • Click pose that can subtract from the base pose
  • Outputs for other logic: normalized cursor position, click weight and each channel weight
  • Runs with fewer channels: any subset works, with less directional fidelity

Capabilities

Cursor-following characters, buttons and objects that lean, look or deform toward the pointer, driven by poses you key by hand rather than by code.

Compatibility

  • Rive editor with scripting (Luau scripts: a Node script and a Path Effect script)
  • Poses are ordinary timelines and ViewModel numbers, so the file plays on any Rive runtime that runs scripts

Availability

Open source, in the Open-Source Rive Script Library on Rive Community since 7 March 2026: `poser-lib.rev` and its user guide download from the library page, and a showcase post has the demo and a description.

Under the hood

The consumer-facing scripts are `Poser` and `PoserHitboxHelper`; internal modules under `lib/` do the hitbox sampling (adaptive `cubicTo`/`quadTo` sampling of path contours) and the weight math.

Project media

Poser: setting up a pose rig (sped up), then live at normal speed

The full demo, building poses and wiring Poser in the Rive editor, sped up 9x (about one minute).

Poser banner

Poser banner

Have a project in mind?

Explore motion design and interactive animation services, or get in touch about your project.