Reusable Poser Script for cursor tracked interactivity

poser-demo.mp4


Script is available for download from here: # Open-Source Rive Script Library


Poser is a cursor-to-pose weight driver for Rive Additive Blendmode.

How it works:

  • It reads pointer position in a hitbox.

  • Converts that to normalized x/y (-1..1).

  • Computes blend weights for 5 pose channels:

    • p1 center, p2 left, p3 right, p4 top, p5 bottom.

  • Adds optional click channel p6 while pressed.

  • Writes those weights into local ViewModel number properties (p1..p6 names configurable).

Hitbox options:

  • Fixed rectangle from hitboxMin/Max.

  • Or dynamic path hitbox via PoserHitboxHelper (actual path shape, including rounded/cubic curves).

Extra behavior:

  • On exit: hold_last or return_default with cubic/elastic easing.

  • On re-enter: optional eased transition to pointer position (enterDuration, enterEase).

In practice: you author up to 6 additive pose timelines and bind their weights to VM numbers; Poser drives those numbers at runtime.

(detailed user guide is available for download with the script)