Auto-rig a character PNG
riv_rig_characterConvert a character PNG into a fully rigged .riv file with cutout parts, head-tilt mesh, eyelid blink, idle/happy animations, and a happy-trigger state machine, returning a preview for fine-tuning.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pngPath": "<pngPath>",
"outPath": "<outPath>"
},
"name": "riv_rig_character"
}
}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 | Artboard width in px (default 600) | |
| artboardHeight | No | Artboard height in px (default 460) | |
| backgroundColor | No | CSS background color (default: transparent) |