Slice a PNG into parts for rigging
riv_slice_imageSlice a character PNG into part images by polygon regions for cutout animation, returning each part's bounding box and a base image with parts removed.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outDir | Yes | Directory to write part PNGs into | |
| pngPath | Yes | Source PNG path | |
| regions | Yes |