paint
Fills closed ink-layer areas with a chosen color at specified canvas points, reports points outside closed outlines so gaps can be fixed, and runs on an open live OpenToonz scene.
Instructions
Paint closed areas of a drawing on an ink layer, like clicking with the fill tool: every area that contains one of the points (canvas px) gets the colour. The outline around a point must be closed. Live only: it is done by OpenToonz itself, so the scene must be open there with the otbridge plugin (opentoonz_live shows the link). 'missed' lists points that were not inside a closed area: close the gap with stroke, or move the point. One undo step in OpenToonz.
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": {
"scene": "<scene>",
"layer": "<layer>",
"frame": "<frame>",
"points": "<points>"
},
"name": "paint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | #ffffff | |
| frame | Yes | ||
| layer | Yes | ||
| scene | Yes | ||
| points | Yes |