Make a flat charm
make_charm
Makes a keychain to print from the trace, as a preview to add.
- Needs
- Nothing to pick: it works on the whole document.
- In the editor
- Review, after a picture is traced: every setting as a control, the ring dragged into place, then Add to document.
- Tools tab
- Picture to keychain… starts the editor's own control.
- Agent and MCP
- The chat's agent and MCP clients call
make_charm, each call one step to undo. Over MCP it also takesproject,editorandrequest_id.
What it does
A flat charm from the trace, as a preview, in one piece with a ring hole in a tab of its own. Keeping the colours, the ink is a black body through the whole thickness and each area it encloses a body in its own colour, with a frame in the paper's colour when the plate reaches past the drawing; monochrome, a plate with the drawing's lines raised on it or engraved into it.
It adds nothing to the document until Add to document; Update in document replaces what an earlier Add put there. Loose pieces are joined by bridges, or refused with bridges off, and what looks fragile is said with the change that would help.
Inputs
As the agent and MCP clients send them. One left out takes the default its description gives.
| Input | Type | What it is |
|---|---|---|
| colors | one of "keep", "mono" | The drawing's colours kept, a body per area, or the whole in paper and ink. |
| thickness | number | The charm's thickness, with engraved lines cut into it, in mm. |
| border | number | The plate around the drawing, with plate "outline", in mm. |
| plate | one of "outline", "rounded", "oval", "none" | The drawing's outline grown by the border, a rounded rectangle or an oval holding it, or the drawing alone. |
| lines | one of "raised", "engraved", "none" | The drawing's lines on the plate. |
| line_height | number | How high raised lines stand, or how deep engraved ones are cut, in mm. |
| smoothing | number | How far the outlines are smoothed, 0 to 0.5: corners sharper than this round off, in mm. |
| ring | see the description | Where the ring hole goes: one of "top", "top-left", "top-right", "left", "right", "bottom", "none", or {x, y} in mm from the drawing's middle.Not in the Tools tab's form. |
| ring_diameter | number | The ring hole's diameter, in mm. |
| ring_rim | number | The material around the ring hole, in mm. |
| bridges | boolean | Join loose pieces to the plate with bridges, rather than refusing them. |
| name | string | The bodies' name, such as "Dragon keychain". |
Limits
- It never says a part prints: check it in a slicer. Over 60 bodies is refused: the drawing wants cleaning, or monochrome.
- A charm is flat: no sculpted figure, and colours beyond its bodies' are the slicer's to assign.
Examples
After a trace, keep the colours, leave the ring on its side, and press Add to document.
Then: The ink in black and one body per coloured area beside what is there, one step to undo; File, Export writes them as a 3MF with their colours.