Slice a PNG into parts for rigging
riv_slice_imageCut polygon regions from a character PNG into separate part images and a base image, returning bounding boxes for parts-based cutout rigging and placement.
Instructions
Cut polygon regions out of a character PNG for parts-based rigging (cutout animation). Writes each part as .png plus base.png (source with parts erased) into outDir, and returns each part's bbox for placement. Use with riv_create: images per part + groups as pivots.
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>",
"outDir": "<outDir>",
"regions": "<regions>"
},
"name": "riv_slice_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outDir | Yes | Directory to write part PNGs into | |
| pngPath | Yes | Source PNG path | |
| regions | Yes | Polygon regions to cut out, one per part |