Auto-rig a character PNG
riv_rig_characterCreate a rigged Rive character from a PNG: cutout ears/tail, head-tilt mesh, eyelid blink, idle and happy animations, and a state machine trigger.
Instructions
One call: character PNG -> fully rigged .riv with cutout parts (ears/tail via polygons), 2-bone head-tilt mesh (seamless), vector eyelid blink, idle + happy animations, and a state machine with a 'happy' trigger. Returns a preview. Fine-tune afterwards with riv_edit or riv_studio.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eyes | No | Eye rects in image px coords (generates blink overlays) | |
| parts | No | Named cutout parts, e.g. {earL, earR, tail}. Names containing 'ear' attach to the head | |
| outPath | Yes | Output .riv path | |
| pngPath | Yes | Character PNG (transparent background recommended) | |
| furColor | No | Eyelid/patch color matching the fur (default #f8eee2) | |
| headRatio | No | Top fraction of the image that is 'head' (default 0.45) | |
| artboardWidth | No | ||
| artboardHeight | No | ||
| backgroundColor | No |