paint_model
Applies rule-based colors to a single 3D mesh—by height, face direction, image, body, or fill—then slices and returns a preview for verification.
Instructions
Colour a single mesh by rules -- the Bambu Studio brush, automated -- then slice and verify.
Rules apply in order (later wins); each needs 'type' and usually 'filament': {"type":"height","from":3.3,"to":99,"filament":2} {"type":"facing","direction":"up","angle":20,"filament":2} {"type":"image","file":"logo.png","view":"top","colors":{"#FF0000":3},"tolerance":80} {"type":"body","index":1,"filament":3} {"type":"fill","point":[x,y,z],"angle":30,"filament":4} Any rule accepts "within":[x0,y0,z0,x1,y1,z1] and "only_from":slot. z is measured from the part's base. Returns the result and a preview image -- check it before trusting the paint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | ||
| name | No | ||
| path | Yes | ||
| rules | Yes | ||
| slice | No | ||
| nozzle | No | ||
| printer | Yes | ||
| process | No | ||
| settings | No | ||
| filaments | No | ||
| output_dir | Yes | ||
| resolution | No | ||
| object_type | No |