Skip to content
Back to skills

text2print

ASecurity

3D prints for a Bambu Lab P2S: textured pieces picked from a catalogue, and functional one-off parts (a bracket, sleeve, stand, clip, holder, a handed-over STL) delivered as a Bambu Studio project with the right PLA or PETG settings, a dimension drawing and a slice report. Use when someone wants a woven, basket, lattice, crosshatch, knit, fabric, zigzag, wave, drooping, fringe, loop, curl, fur, two-colour halftone-picture, vase-mode pleat/flute/twist, voronoi, lithophane, fuzzy-skin or CMYK-p...

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 14, 2026
ai-agentspythongoshellbashspringawsapi

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 16 files and shows the line behind each finding

Scanned November 23, 2026

npx -y skills add stilwellc/text2print --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of text2print?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for text2print
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/stilwellc-text2print/badge)](https://www.skillsdirectory.com/skills/stilwellc-text2print)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: text2print
description: '3D prints for a Bambu Lab P2S: textured pieces picked from a catalogue, and functional one-off parts (a bracket, sleeve, stand, clip, holder, a handed-over STL) delivered as a Bambu Studio project with the right PLA or PETG settings, a dimension drawing and a slice report. Use when someone wants a woven, basket, lattice, crosshatch, knit, fabric, zigzag, wave, drooping, fringe, loop, curl, fur, two-colour halftone-picture, vase-mode pleat/flute/twist, voronoi, lithophane, fuzzy-skin or CMYK-picture tray, platter, dish, coaster, cup, lamp shade, bowl, vase, cachepot, liner sleeve, tealight lantern, pendant shade, LED puck lamp, amphora, basket, catch-all or tile; asks to "pick a pattern / pick a shape"; or wants to open or extend the text2print studio. Produces a Bambu Studio project (one object, one part per AMS colour, P2S settings for the chosen nozzle).'
---

# text2print — pick a shape, pick a texture

Two kinds of job, two paths. "The repo" below is the text2print checkout this SKILL.md sits in (python package
`text2print`, studio in `studio/`); if the skill is a symlink, resolve it to find the repo.

- **A textured vessel or tile** (woven, knit, droop, halftone, vase-mode, litho...): a TEXTURE ON A SHAPE. Don't model
  it from scratch: pick from the catalogue, set sizes, build, hand over the project. -> "Use it from the command line".
- **Anything else** (a bracket, sleeve, stand, clip, holder, a handed-over STL, a weave on your own outline): model the
  mesh yourself and hand it to `part.deliver`. -> "Parts that are not in the catalogue". Most real requests are these.

## Use it from the command line

Everything the studio does is available without it. `t2p` (in the repo root) runs from any folder; it is
`.venv/bin/python -m text2print` with the path set (the system `python3` when the repo has no `.venv`). After
`pip install` the same command is on the PATH as plain `t2p`; the studio, `ask` and `taste` need the repo. Commands print JSON (`list`, `options` and `pictures` print text;
`options --json` for JSON); a bad request exits 2 with
`{"error": "..."}` that says what to fix; a failed slice exits 1.

```bash
T=<path to the repo>/t2p              # or T=t2p when it is pip-installed
$T list                               # shapes, their sizes, the textures that fit each
$T options jacquard                   # every option a texture takes, its choices and default (--json)
$T catalogue                          # everything a design can use, as JSON: mixes, charts, lids, pictures, palette
$T make cup twill --set diameter=90 --colours "#8B3A2F,#EDE3D1" --out ~/Downloads/cup --preview --slice
$T make vase jacquard --option loops=tiers --option band=2 --colours "#2E4E7E,#E8752F,#F3D34A" --out ~/Downloads/tiers
$T make --design piece.json --out ~/Downloads/piece --preview --slice --save "Piece" --open
```

**The loop:** find the names (`list`, `options TEXTURE`, `catalogue`) -> write a design -> `make ... --draft --preview`
and LOOK at the PNG -> adjust -> `make ... --preview --slice` for the real project and the slicer's time and grams ->
hand over the folder. `--draft` is a sketch for looking, never for printing.

**A design** is one JSON object, and `--design` takes it as a file, `-` (stdin), a studio link, or a saved design's name:

```json
{"shape": "cup", "texture": "jacquard", "nozzle": 0.4,
 "params": {"diameter": 90, "height": 110},
 "colours": ["#151515", "#F4F2EC"],
 "options": {"loops": "shag", "band": 2, "stitch_size": "fine", "material": "petg"}}
```

Sizes go in `params` (mm; `list` shows each shape's), everything else in `options`. `--set k=mm`, `--option k=value`,
`--colours`, `--nozzle` change a loaded design. An option value that is JSON is read as JSON, so mixes and charts fit
on the command line: `--option 'bands=[{"texture":"plain","share":1},{"texture":"twill","share":2}]'`,
`--option 'chart=[{"motif":"hearts","colours":[0,1]},{"plain":0,"mm":6}]'`.

**`make` flags:** `--out DIR` · `--name STEM` · `--draft` · `--preview` (`STEM_preview.png`: loops and strands hung as
they fall, lid on) · `--render` (`STEM.png`: as printed) · `--slice` (Bambu Studio CLI: real time, grams, layers) · `--no-stls` · `--material pla|petg` (or one per colour: `pla,petg`) · `--save NAME` (adds it to the
studio's Saved list) · `--open` (opens the project in Bambu Studio) · `--image PHOTO` (halftone, litho, flat).
**Output:** `project`, `design` (as built), `link` (opens the same design in the studio), `params`, `stats` (size,
swaps = AMS changes, grams_est, strands...), `warnings` (read them: they include options whose value is not a known
choice), `watertight`, and `render` / `slice` / `saved` when asked.

**Other commands**

| Command | What it does |
|---|---|
| `designs list` / `show NAME` / `save SPEC --name N` / `delete NAME` | the studio's Saved list |
| `link SPEC` | a studio link for a design; given a link, prints the design as JSON |
| `design check FILE.json [--draft] [--preview PNG]` · `design slice FILE.json` | build and report without writing a project; slice with real AMS changes |
| `picture prepare PHOTO --out NAME` · `picture text WORDS` · `pictures` · `palette match PHOTO` | photos and words as pictures; a photo's colours as filaments |
| `plugin list` / `new KIND NAME` / `check FILE` | user-written textures, pictures, charts and shapes |
| `sampler --nozzle 0.4 [--slice]` | test plates |
| `verify TEXTURE NOZZLE ok\|fail --note "..."` | record a real print; drives the Printed badges and warnings |
| `check SLICED.3mf` | what a sliced file will really do: first-layer and print speeds by feature, fastest move, accelerations, filament changes, grams per filament |
| `part FILE.stl [...] --material petg --slice` | a handed-over STL (one per colour) as a project: placed, never reshaped |
| `printer status` / `printer test` | is a LAN printer set up; connection check (never prints) |
| `send SPEC --confirm` | slices and STARTS A PRINT. Only when the person has said to print it |
| `ask "WORDS" [--design SPEC] [--ideas N] [--photo P] [--hours H --changes N --grams G]` | Design with Claude without the studio: starts a Claude run, prints its steps, returns the designs as JSON |
| `ask "how it went" --review --design SPEC --photo PRINT.jpg` | review a real print of a design |
| `taste like\|dislike SPEC --note "..."` | teach it what they like (read before every design) |
| `studio [--port N] [--no-browser]` | the picker, when they want to look and drag |

Options worth knowing: zones 1-4 + zone_style bands|stripes|courses|fade (fabric, droop; lattice with colour_by=height),
lid=slip|gift|thread|magnets + lid_fit=snug|slip|loose (+ lid_colour, lid_texture, lid_knob), purge=lean, tower=off,
picture/--image for halftone, litho and flat; halftone band=1|2|3, area=full|half|third, silk=silk,
purge_piece=coaster; spiral folds/turn; shell cell (voronoi), noise + fuzzy_bands (fuzzy); droop rows=even,
panels=2|3; colourwork loops=tiers|shag|fringe|window|petals, loop_colour, loop_size; material=petg on anything.

In Python: `from text2print import design; d, b = design.build_design({...}); b.write_3mf(path)`.

Deliver to ~/Downloads/<project>/ (the default): the .3mf, the per-colour STLs, a render, and the numbers
from `--slice` plus the AMS change estimate in `stats`.

## Parts that are not in the catalogue

A sleeve, a bracket, a stand, a clip, a can with a label, a band with holes, an STL someone hands over. Write a short
script; model the mesh with whatever suits it, then let `part.deliver` do everything after the mesh.

```python
from text2print import part, extras, meshops

body = meshops.manifold_to_trimesh(extras.revolve([(8.5, 0), (22.5, 0), (22.5, 0.6), (9.7, 29), (9.7, 30), (8.5, 30)]))
r = part.deliver("pipe_sleeve", [("Sleeve", body, 1)], colours=["#FFFFFF"], material="petg", slice=True,
                 check={"length": (30.0, "z"), "bell": (45.0, "x")},          # THEIR numbers: it raises if the build misses
                 dims=[("front", (-8.5, 15), (8.5, 15), "17.0 bore")])       # extra sizes for the drawing
print(r["slice"], r["report"]["first_layer"], r["warnings"])
```

`deliver` writes `~/Downloads/<name>/` with the project, an STL per colour, a render and a **dimension drawing**, and
with `slice=True` the slicer's time, grams per filament, filament changes, its warnings and a `report` of the real speeds.

- **Modelling.** `extras.revolve(profile)` (r, z outline -> Manifold), `extras.helix_ridge` (screw thread, true lead),
  `extras.prism`, `extras.text_polygons`, manifold3d booleans, `meshops.manifold_to_trimesh` / `to_manifold`,
  `meshops.cq_to_trimesh(workplane)` for CadQuery, `meshops.seat(mesh)`. A handed-over STL: `part.from_stl(path, ...)`
  or `t2p part FILE.stl`; the STL is the model, it is placed and never reshaped.
- **Colours.** One mesh per colour, all passed in ONE `deliver` call (one object, one part per colour). A two-colour
  face printed on the plate: `first_layer_order=(2, 1)` puts filament 2 down first.
- **Material.** `material="petg"` sets the filament preset and the speeds. Never write a speed table by hand.
  Small or fine features on the plate: `first_layer=15` (mm/s; it also tames the moves between pieces).
- **Settings.** Default is `printer.solid_part`: 3 walls, 20 % gyroid, seam at the back, no support. Pass `overrides={...}`
  (plain numbers are fine) or one of the `bambu.` presets below; for rods pass
  `base_overrides=printer.overrides(0.4, "lattice", slots=2, material="petg")`.
- **A weave on your own outline.** `rods = lattice.weave_region(sdf, courses, nz, "chevron", extent=..., min_rod=2.0)`
  with `sdf(x, y) <= 0` where rods may be and `nz = printer.nozzle(0.4)` or `printer.fine_rod(0.4)` (half-size rods, for
  pieces with only 10-20 mm between openings; not print-verified). Frame the outline and every hole with your own rods
  (`rods.line`, `rods.path`), then `lattice.support_audit(rods, frame=[...])` must report `loose_ends: 0` — a pattern
  clipped to a new outline can leave rod ends in mid-air (Selvedge did, 57 of them). Render every candidate pattern on
  the real outline and let them pick; large-repeat weaves turn to noise in narrow lands.
- **Several pieces.** Two halves, a lid and its base, two of the same: `deliver(name, {"Lid": [(...)], "Base": [(...)]},
  ..., copies=1)` lays them on one plate (clear of the prime tower) and writes an STL and a drawing per piece.
- **Sizes that must fit: say inside or outside.** `check={"length": (30.0, "z")}` is the OUTSIDE size;
  `check={"bore": (17.0, "x", (0, 0, 15))}` measures through that point of the model: in an opening it is the inside
  size (a bore, a slot, the gap between two legs), in material it is the wall. With several pieces add the piece name:
  `(mm, axis, point_or_None, "Lid")`. Every check is drawn on the drawing. `assumed=["pocket 69 mm"]` prints the numbers
  nobody measured on the drawing and in the warnings. `part.span(mesh, point, axis)` is the measurement on its own.
- **Fits are untested until printed: print a coupon first.** `t2p coupon hole 16 --material petg` (or `slot 3`,
  `dovetail`) is a ten-minute piece with the fit at 0.10-0.40 mm a side, tightest first; use the step that feels right.
- **Helpers (`text2print.fits`).** `split_keyed(body, key_x)` cuts a body in two on y = 0 with dovetail keys that slide
  together; `crush_ribs(bore_d, height)`, `bump(at, "+x")` (click bump for a thin wall), `sheet_slot(thickness, length,
  depth)`; `grille(w, h, thickness)` -> (cutter, count) and refuses holes under 3 mm or lands under 2.5 mm on the plate.
- **A mark or words in a second colour.** `art, info = fits.trace(photo, width_mm)` or `fits.words("TEXT", height)`
  (features a nozzle cannot draw are removed; `info["kept"]` says how much survived), `body, plug = fits.inlay(body,
  art)` (bottom face by default, mirrored for you), deliver both as slots 1 and 2 with `first_layer=20,
  first_layer_order=(2, 1)`, then `fits.artwork_check(r["slice"]["sliced"], {2: art}, r["centres"][0][1:], mirror=True,
  out_png=...)`: under about 0.9 printed means it is too fine. A clean render is not proof; this is.
- **Plain things (`text2print.basics`, `t2p basic`).** `t2p basic can --set diameter=70 --set height=40 --lid thread`,
  `t2p basic box --set width=90 --set depth=60 --set height=35`, `t2p basic plaque --text "NAME" --image mark.png`:
  solid 2.4 mm walls, lids that seat (tested), the plaque sliced and artwork-checked for you with `--slice`.
- **A catalogue shape from a picture.** `t2p plugin new shape NAME --image outline.png --width 120` traces a dark
  silhouette into a shape that takes every wall texture and the woven ones.
- **Before saying it is ready.** (1) The drawing: show it whenever a size is theirs, and say which numbers are theirs and
  which are yours. A measurement that sounds odd for the object is worth one question before building, not six
  rebuilds after. (2) `r["warnings"]` and `r["slice"]["warnings"]`. (3) `r["report"]`: first-layer speed, the fastest
  move, the changes. (4) Anything that has to fit: state the clearance and that it is untested until printed.
- **Keep the script** in the repo root (untracked) and note it in memory; overwrite the files in Downloads on each change.

## Catalogue

Shapes (`text2print/shapes.py`): tray, platter, dish (round), coaster, cup, shade, basket, catchall, hextile, and every round Profiled vessel (bowl, vase, goblet, custom, cachepot, sleeve, amphora via `Profiled.lattice`: ring follows the profile, course-to-course step <= LEAN 0.8 mm/mm both faces, fitted kinds grow outward) — woven; cup, bowl, vase, goblet — fabric;
cup, bowl, vase, goblet, candle (solid bell + taper socket) — droop.
Woven textures (`lattice.PATTERNS`): grid "Weave", twill, kagome, polar "Rose window" (round shapes only),
ripple, selvedge, beat "Moiré", overunder, tartan, chevron, herringbone, ogee, basket "Basketweave", brick "Brick bond", trellis, frame "Picture frame" (outline-following rings; works on every shape). Broken rods (basket, brick) always cross >= 2 rods below; all but tartan/over-under colour by course and work as mix bands. Fabric (`fabric.STITCHES`): zigzag, domes "Knit", wave;
options rim_loops and floor = solid | diamonds | lens. Droop (`droop.STYLES`): fringe, swag, curls, unraveled;
options density = sparse | medium | dense, length = short | medium | long. Multi-colour droop: zones 2-4 with
zone_style courses (default for droop; woven-style, colour per strand row via droop.courses() cut-safe row
boundaries + build._course_edges; curls snap to the row grid when aligned) | bands | stripes; course_rows 1-4.
Slicer-verified: 3-colour swag cup = 13 changes in both app and slicer. `Build.preview` holds the strands hung
by gravity (display only — strands pass through each other); the print files carry the flat strands.
Halftone (`halftone.py`, texture "halftone" on cup/vase/bowl/goblet): options picture = flames|fade|dots|chevron|waves,
band = 1|2|3 layers per colour, CLI `--image path` (dark = colour 1). Recipe `halftone.RECIPE`: layer = nozzle max
(0.7 x nozzle), one line 2.5x (0.2/0.4) to 1.75x (0.8) the nozzle, 1 wall, 0 % infill. Colour flips every layer;
rib swing = min(0.5, 0.6 - local wall lean) x line. Stats split grams_part and grams_purge.
Vase mode (`spiral.py`, family "spiral"): pleats, flutes, twist, lowpoly, pinch print in spiral_mode (one wall,
ONE colour: spiral mode can't change filament); ribs = solid body cut by 0.02 mm radial slits (`_slits`) so vase
mode traces fins. Section clamp 0.9 mm/mm. Shell (`shell.py`): voronoi (scipy cells, CCW-oriented, gable roofs,
`_radial_prism` warp, largest body kept), litho (thick wall, wall_loops >= ceil(3.2/line_w)), fuzzy (layer
ranges with fuzzy_skin + noise per band). Flat (`flat.py`, tile/hextile): litho (white, 0.12 layers) and cmyk
(C, M, Y under white; height-field slabs trimmed by a footprint prism; info["backlit"] = RGBA estimate).
Fur (`droop.fur`): one-layer hair slabs 2 lines wide bridged to a sacrificial shell; Build.preview = trimmed.
Fittings (`fittings.py`): pendant E27 40 mm hole, puck 59x18 collar + cable notch, lantern 41x17 tealight
plinth, cachepot foot ring (pot 3-7 in + 5 mm), candle 23 mm bore + 6 crush ribs; added solids are a separate
floor-colour part (never unioned into fabric walls), cuts are booleans; `NOTES` = safety copy.
Footprints: basket (rounded box + arched handle holes), catchall, hextile, tile. Non-round plans for the
wall families: `shapes.Outline` (contour -> arc-length samples + smoothed normals); the shape's profile() is the
round radius R = perimeter/2pi; build.make warps every part/preview with Outline.warp (angle -> arc length,
r - R -> along the normal; floors scale in from 4 mm inside the wall). Basket handles: build._cut_handles. Non-round lids: extras.lid_outline (section under the rim -> opening polygon;
plug = opening buffered -clear, LIP_W ring; plate = convex hull of the outline + 0.6). Per-family shape cards:
thumbs.render_family_shapes -> static/thumbs/shape_<key>__<family>.png; the studio shows the picked family's card.
Mix (`compose.py`, texture "mix" on cup/vase/bowl/goblet): options {"bands": [{texture, share, slot, slot2?, options}]}
bottom-up; textures from `compose.MIXABLE` (plain, fabric, halftone, droop and the woven bands listed below; never candle). One layer
height (nozzle standard) and the fabric shell for all bands; each band emits per-layer contours, same-colour runs
become staircase solids, a same-colour neighbour reaches 1/4 layer down and is unioned (never coplanar); droop
strands union into their band's colour (a strand adding a body raises). Any droop band -> droop cooling for the
whole print. Presets in `compose.PRESETS`. A "fuzzy" band adds a fuzzy-skin layer range. Woven bands (`compose.WOVEN` = grid, twill,
ripple, beat, polar; slot = even courses, slot2 = odd): ring centred on the wall (prof - shell/2 +- wall/2, wall
option default 6, LEAN 0.8 per course), odd course count, 45 deg collar below (floor disc if bottom band) and cap
above (none if top band), range wall_loops=rod_lines over the band, woven speeds globally. Slicer-verified counts.

## Laws (print-verified; tests enforce the geometric ones)

- Woven: flat full-size first course; no course ever reaches past the one below (fringes, lips and a river-stone bottom
  were all rejected). Shrinking upward (the pillowed top edge) is fine.
- Nothing square: rounded plan corners, round beads (octagon section, the printed tray's exact bead), round dishes.
- One object, one part per colour. Separate objects per colour leave empty layers and Bambu refuses to slice.
- Colour by direction = one AMS change per course. Over-under and tartan mix colours inside a course: about one
  change per LAYER. Same colour on two slots merges the parts (no changes).
- Rod spans are "overhang walls" to the slicer: the overrides run overhang/bridge at 50 mm/s (stock 10 doubles time).
- Fabric: layer height is geometry; the stitch swing scales with the local radius so the swing/wavelength ratio holds.
- Objects <= 200 mm so the prime tower (216, 216) fits; meshes centred, the writer places by centre. 3+ colours:
  the tower parks front-right at (BED-50, 20) and the piece shifts left (a deep tower at 216 overflowed the bed).
- Bambu CLI: run `--slice 0 --export-3mf <abs>` from the output dir; never `--outputdir`. Weight is one number
  per filament (comma list): sum it.
- Boolean safety: fabric zigzag walls have coplanar overlapping step faces; a manifold union shreds them. Add
  solids as a separate same-colour part; `meshops.manifold_to_trimesh` (merge vectors, never merge_vertices).
- Lids/knobs/coasters on a shared plate get per-object SOLID settings (walls 3, 20 % infill, 4 top/bottom,
  spiral off) or they inherit the piece's 0 % infill. Thread: 2-start, 3 mm pitch (6 mm of travel a turn, about one turn to close), 1.2 deep, 0.2 clear; `extras.helix_ridge` keeps that lead at any height.
  Magnets 6x2, pocket +0.15 dia / +0.2 deep. Fits snug 0.15 / slip 0.25 / loose 0.40 a side.
- Droop (UNRAVEL, print-verified July 2026): a strand is a flat ribbon anchored INTO the wall at both ends,
  never an r(theta) displacement. One extrusion wide (swag: 2), <= 4 layers tall, rows a strand + a layer
  apart, strands never intersect in the mesh (`_never_touch`), strand faces on the 1/4-layer grid and wall
  rings on the 3/4-layer grid (coplanar unions leave slivers). Print: overhang slow-down OFF, fan <= 20 %,
  nozzle +5 C — slow strands freeze and don't droop. Verify with a G-code layer plot: one line out, one back.
- Bambu GUI "The file does not contain any geometry data" = a per-filament list whose length != the filament
  count (verified Oct 19: a 1-filament project with filament_self_index ['1','2']). The writer forces EXACT length
  (`bambu.fix_filament_lists`); repair an old file with `python -m text2print.bambu repair FILE.3mf`. The CLI slicer
  ignores the mismatch and `--export-3mf` copies it through — a CLI slice passing never proves the GUI opens a file,
  and never "fix" a file by re-saving it through the CLI. Only repair files we made.
- Bambu CLI facts (verified Oct 14): it honours part->AMS slot when every per-filament list is n_fil long (the
  writer pads them); layer ranges live in Metadata/layer_config_ranges.xml keyed by build position, must include
  layer_height, must NOT include line widths or extruder; the prime tower needs identical ranges on every object.
- Colour zones split on layer boundaries (woven: whole rods by centre, never cut). Lids print top-face down;
  knob press-fits (6.0 hole / 5.85 peg).
- Reliefs (garland, drips, melt) ramp every underside at <= 45 deg; test enforces it.
- Only the 0.4 nozzle is print-verified. 0.2/0.6/0.8 are computed from it — say so.
- PLA or PETG (`--material petg`, or a list per colour): the filament preset AND the process speeds follow the material
  (`printer.PETG_PROCESS`, applied by `build.make`, `part.deliver`, `printer.overrides(material=)` and
  `printer.solid_part(material=)`). They are ceilings: a slower family keeps its own; droop and loops are exempt, they
  must be laid fast. A print in PLA says nothing about PETG: `t2p verify TEXTURE 0.4 ok --material petg` records it.
- Slicing reports `changes` (real filament changes), `grams_by_filament` and the slicer's `warnings`: quote those, not
  the estimate in `stats`. `t2p check` / `bambu.print_report` reads the first layer out of the G-code.
- 2-colour fine detail (a logo inlaid in a cap): rough tops are speed, not geometry — use `bambu.SHOWROOM_PETG_DETAIL`
  (slow feeds, 30 s minimum layer, layer 0.12, top line 0.3, no ironing, 1 outline wall on the logo via `bambu.LOGO_PART`,
  random seam on the body) and prove it with `bambu.check_detail`. The full write-up is in README "Laws" and the
  parametric-3d-printing skill.
- Large flat PETG show face printed as a top surface (Nov 9, cup rail arms printed flat): a 0.2 mm top line at
  200 mm/s printed "leathery" twice. Use `bambu.PETG_FLAT_TOP_FACE` (0.42 line, 60 mm/s, 1000 accel, 6 top layers,
  topmost ironing 15 %); still rough = wet PETG, dry 65 C 4-6 h.
- Seams: part opts `{"seam_paint": per-face array}` (1 enforcer / -1 blocker) writes Bambu's `paint_seam`; verified
  in gcode. Paint hidden faces (bottom edges, a line's end under a joint reveal, a hole's 6 o'clock). Face layers
  only see the faces that exist at that height — a 45 deg reveal, not the flat end face, so paint both.
- Two identical flat parts used mirrored (left/right): turn ONE over on the plate so both show faces print on the bed.
- Upside-down parts with sideways tabs: `bambu.SUPPORT_CANTILEVERS_ONLY` supports only near-horizontal undersides.
- POILU-style droop (Nov 10, after bold_designers' POILU 3.0): droop `rows: "even"` (loop_w, loop_l, tier, ruffle,
  ruffles) gives regular teardrop tiers; `panels`/`panel_width` keep loops in vertical windows; a mix droop band can
  carry `wall: "domes"` (knit) outside its panels; zone_style `fade` (+`fade_blend`) mixes row colours by error
  diffusion. Colourwork + loops: the colourwork option `loops` puts each ONE-LAYER loop on the nearest layer where
  its stitch bulges, so loops take the knit's colour for free (no extra AMS changes; the colourwork's own ~1 change
  per layer is the cost). Per-loop control in a 3MF: a modifier volume IS honoured for line width and speed; the
  overhang fan can't lower the fan per loop and temperature is per filament/layer — keep the droop fan low.
- POILU teardrop tiers (Nov 10, second pass; recipe in `examples/poilu_designs.py`): colourwork `loops` with `pinch`
  (0.3 teardrop .. 1 scallop) builds `droop._tier_rows` — loops packed 0.5 mm apart, brick-offset rows, `collar` (bare
  neck), `crown_rows` (ruff of long hairpins), `vary`/`stray` (lofty fringe), `flounce*` (ruffles). Loops are ONE
  layer, 0.8-1.0 mm wide. The project MUST carry `min_bead_width: 200%` (build sets it): at the stock 85 % Arachne
  prints each 1.0 mm loop as two thin lines with a zigzag end. Check with a G-code layer plot: one bead out and back.
  Custom shape `neck` + `lip` give a straight neck; chart band `{"course": [slot per layer]}` colours loop rows.
  Preview = `droop.hang_pile` (strands laid onto the pile) + `colourwork.preview` (knit as the eye reads it): estimates.
- Loop LOOKS (`text2print/loops.py`, colourwork option `loops`): tiers, shag, fringe, window, petals. Options `loop_colour`
  auto|rows|salt|chart, `loop_size` small|regular|large. `loops.resolve` returns the chart and the loop spec; pass a
  dict as `loops` to set every number yourself. Extras: `inlay_text` (words flush under the base in the other colour),
  `tower=inlay` (no tower; a pad that is PART OF the piece's object primes only the inlay layers), `material=petg`
  (or a list per colour; Bambu's Generic PETG preset, no +5 C droop offset), custom shape `neck`/`lip`, loops key
  `bed_reach` (lowest rows may rest on the plate), `arch_spring`/`arch_top`, `edge_taper`, `grow`, `crown_*`.
  Pieces past the picker's limits: `build.make(..., _raw=True)`; lay the plate out by hand (a 168 x 250 piece with
  32 mm flat loops fills the P2S bed; a 20 mm tower with brim fits in front of the window, a 30 mm one does not).

## Perforated faces and enclosures (print feedback, Nov 15 2026: a wall-plug gateway holder)

- Holes in a face that prints on the bed: **3 mm or larger, lands 2.5 mm or more, as few as the design allows.**
  On the 0.4 nozzle 1,033 holes of 1.8 mm lost about 10 % on layer one; 396 holes of 3 mm lost a couple at stock
  settings. A clean toolpath in the sliced file is not proof: check hole count against what layer one can hold.
- Slice them with `bambu.PERFORATED_WALLS` (Arachne, small loops at 30 mm/s, +0.1 mm hole compensation) and
  `bambu.SMALL_LOOPS_FIRST_LAYER` (20 mm/s, accel 300, 0.55 line, avoid crossing walls, bed 65 on layer one then 60),
  plus `per_filament=bambu.SMALL_LOOPS_FIRST_LAYER_FILAMENT` (nozzle 230 on layer one, fan off 3 layers). Wash the
  plate with dish soap first.
- Blind holes need only a 0.4 mm floor (two layers bridge a 3 mm circle). Put the print seam on the hidden side by
  turning the part so that side faces the back of the bed (`seam_position: back`).
- Enclosure taste that held up: one piece, 2 mm walls (never thicken a wall to house a mechanism), 1.6 mm front,
  straight sides with no step or recessed plinth, a grille that runs the full face, corners matched to the device
  inside, and only one wall above whatever the piece hangs from. Click bumps on a thin flexing wall replace snap arms.
- A USB plug cannot be pushed into a charger that is already inside a collar: slot the collar full length so the
  charger slides in with its cord attached. Measure the real parts first (charger face, depth with cord, wall plate).

## Extending

New woven texture: a function `p_name(region, nz, rods)` in `lattice.py` that walks `region.n` courses, uses
`Course(region, nz, i).lines(theta, ...)` / `.curve(...)`, and calls `rods.line(a, b, slot)` / `rods.path(pts, slot)`;
register it in `PATTERNS` (name, blurb, slots, swaps, round_only). New droop style: a `_SPEC` + `STYLES` entry
(and a `HANG` angle range). New fabric stitch: `fabric.STITCHES` +
the `scaled()` displacement. New shape: a `Block`, `Vessel` or `Profiled` entry in `SHAPES` with `Param`s.
Then `python -m text2print thumbs` and `python -m pytest`. Verify visually: render, and screenshot the studio.

## Verification sweeps (Oct 14)
- Geometry: every shape x texture (800 today) builds watertight at 0.4 full and 0.8 draft (script pattern: loop
  build.compatible pairs, record wt/size/swaps/sec). Found + fixed: catchall+melt zero-volume flap (meshops.drop_flaps).
- Slicer: one texture per shape x family (121) slices with zero CLI errors; app colour-change counts equal the
  slicer's except the lantern (fitting shares layers; build._geom_transitions recounts from geometry, ~1 % off).
- Fittings (plinth, collar, foot ring) get a layer range with 20 % infill + 4 top layers (build._merge_range),
  or they slice hollow under the wall families' 0 % / no-top settings.
- Filament estimate vs slicer: within ~5 % for most families; vase mode subtracts both caps; fittings count
  shells + 20 % infill.

## Lids = caps of the piece (Oct 14)
build._lid_cap: lid = make(same shape [non-round] or cup at the rim radius [round], same texture/colours, height
8-14 mm, _raw=True) printed top-face down; the plain lid's plug (extras.plug_of, cut ABOVE the plate) is grafted on
at the rim plane over a column from the cap floor, + knob boss and hole (extras.graft: adds in the floor colour,
carved from other colours). Magnets: pedestal annulus with pockets in its face. Droop/fuzzy/litho -> plain mix cap;
mix -> top band's texture. Woven caps stripe the graft per course. Plate-wide change count (piece + lid) via
_geom_transitions when Build.lid_shares_plate(). Lid objects are multi-part (write_3mf groups extras by name);
a separate -lid.3mf with 2+ colours parks the tower front-right. Woven round openings come from the region
(extras.opening), vase mode from prof - line_w. Slicer-verified: 6 lid projects incl. 2-colour, counts equal.
Lid section options: lid (none|slip|gift|thread|magnets), lid_texture (match|plain|texture key from build.lid_textures()),
lid_colours [hex, hex?], lid_height (5-40 mm, else auto 8-14), lid_knob (knob|button|none), lid_fit. Writer law:
every object carries an object-level extruder = its first part's (a one-part object otherwise prints filament 1).

## Custom pictures and patterns from a prompt (this is where Claude does the work)

The studio covers everything that needs no judgement. When someone asks for something it can't pick from a list,
make it — then hand back a studio link. Four routes, cheapest first:

1. **Words** ("put our studio name on it", "her name in script"): no code. Studio link with
   `picture=text&text=...&font=futura|helvetica|avenir|didot|georgia|rockwell|typewriter|impact|script|chalk&text_layout=center|repeat|stack`
   (+ `text_invert=1`). Works on halftone, wall lithophane (`litho`), `flatlitho`, `cmyk`. Text renders at the wall's
   true proportions; `repeat` tiles a whole number of times around so no word is cut at the seam.
   Preview offline: `python -m text2print picture text "WORDS" --font didot --layout stack --aspect 3 --out x.png`.
2. **Their image**: copy it to `~/.text2print/pictures/<name>.png` (or they upload in the studio) -> `picture=lib:<name>`.
   Dark = the front colour / the thick part of a lithophane. CMYK uses the colours. Never trace someone else's
   artwork or a brand from the web; their own photos and drawings are fine.
3. **A picture from a prompt** ("koi pond", "art-deco sunburst", "a field of poppies"): write
   `~/.text2print/plugins/<name>.py` with `PICTURE = dict(name=..., colour=False)` and `draw(u, v, aspect)`:
   u 0..1 around the wall, v 0..1 up, aspect = width/height in mm — work in `x = u * aspect, y = v` so shapes
   aren't stretched; wrap x at the seam (`(dx + aspect/2) % aspect - aspect/2`). Return darkness 0..1 (1 = front
   colour), or RGB (..., 3) with `colour=True` for CMYK tiles. Build pictures from signed distances (ellipses,
   polygons, smooth unions), hash-seeded placement (deterministic), and keep features >= ~3 mm at print size:
   halftone resolves ~1 rib (~3 mm) across and 2 layers (0.56 mm) up. Example: plugin_examples/koi.py.
4. **A weave or stitch from a prompt** ("herringbone", "basket-weave diamonds", "fish-scale knit"):
   - `WOVEN = dict(name, blurb, slots=2, swaps="course", round_only=False)` + `pattern(region, nz, rods)` using
     the lattice API: `c = Course(region, nz, i)`; `c.lines(theta, pitch=..., keep=lambda j: ..., offset=...)` gives
     clipped rods; `rods.line(_pt(pf, t0, c.z), _pt(pf, t1, c.z), slot)`; curved rods via `rods.path(pts, slot)`.
     Woven laws hold automatically (rods clipped half a bead inside, every course full-width). Colour by course
     parity keeps one change per course. Example: plugin_examples/diamond_weave.py.
   - `STITCH = dict(name, blurb)` + `displace(u, layer, band_layers, band, z_frac)` -> 0..1 of the stitch depth
     (u: 1 per stitch, odd bands shifted half a stitch). It is printed on the knit (domes) proportions. Keep
     layer-to-layer changes gentle. Example: plugin_examples/fish_scales.py.
5. **A shape from a prompt** ("a planter with a rolled rim", "a pebble-shaped dish", "a pen cup"):
   `SHAPE = dict(name, blurb, kind="round"|"outline", params=[(key, label, lo, hi, step, default[, unit])])`
   plus `radius(v, z)` (round: outer radius in mm at height z; it is clamped to lean out <= 0.9 mm/mm) or
   `outline(v)` returning `sdf(x, y)` (negative inside, ~mm distance) + `extent(v)` (outline: straight walls,
   `height` param). Every texture family works on it (wall families map onto outlines; woven builds a rod ring),
   and lids, engraving and pictures too. Examples: plugin_examples/planter.py, pebble_dish.py.
   Keys: woven/stitch -> texture `x_<file stem>`, picture -> `lib:<file stem>`, shape -> `s_<file stem>`.

Always: `python -m text2print plugin check ~/.text2print/plugins/<name>.py` -> builds it on a sample piece,
checks watertight + overhang against the built-in stitches (verdict "ok"), renders a preview PNG — LOOK at the
preview and iterate before handing over. Then `plugin list` (shows load errors) and give the studio link
(`/?shape=vase&texture=x_<name>` or `/?shape=cup&texture=halftone&picture=lib:<name>`). The studio picks plugins
up on the next load — no restart. `python -m text2print plugin new picture|woven|stitch|shape|chart NAME` writes a starter. The studio's "Make a new
one" box runs exactly this flow through a headless `claude -p` (studio/ask.py).

## Designing with Claude (the studio's "Design with Claude" box; also any chat request for a whole piece)

You are the designer: a sentence in, a finished design out. Tools: `python -m text2print catalogue` (all
shapes/textures/options/blends/pictures/fonts/plugins/palette/saved designs), `design check FILE.json` (build,
numbers, preview PNG — look at it), `picture prepare PHOTO --out NAME` (photo -> library picture), `plugin check`.
A design = {"shape", "texture", "params", "nozzle", "colours", "options"} — the studio loads it as-is.

Composing well:
- **Blend, don't stack.** Layered requests use texture "mix" + options.bands (bottom-up). Every band above the
  first gets "blend": {"style": fade | dither (dissolve) | wave | zigzag | scallop | drip | noise (torn), "size":
  mm}. Blends work between plain, fuzzy, zigzag, knit, wave, garland, drips, melt and droop walls; halftone and
  woven bands keep hard joins (collar/cap). Size ~12-30 mm: bigger reads softer. Different colours across a blend
  become a stripe gradient (whole layers, ordered dither) — that's how to "fade blue into cream".
- **Shape the piece to the request:** pick the shape whose silhouette fits, then sizes within the catalogue's ranges.
- **Colour:** palette names map to Bambu filaments the person likely has; 1-2 colours unless they ask for more.
  Watch colour changes in the check: woven `course_group` 2-4, a blend instead of alternating bands, halftone only
  where the picture matters.
- **Pictures** (halftone walls, lithophanes, CMYK tiles, fabric masks): words -> picture "text" + font/layout/
  placement (front for a name, wrap for a pattern, repeat for a motto). A photo -> `picture prepare`: crop to the
  subject (`--crop`, fractions), `--subject` lifts it off a plain background, `--equalize`/`--contrast` for punch;
  halftone wants bold shapes (posterize 2-3 or threshold), lithophanes want smooth tones (equalize, no posterize).
  Look at the result before using it. There's no image generator: "text to image" means you DRAW it as a PICTURE
  plugin (shapes, gradients, symmetry, hash-seeded scatter) — keep features >= ~3 mm on the wall.
- **Build on what they have:** saved designs (catalogue.saved_designs, their links) and plugins are fair game —
  "an autumn version of my tray" means start from that link's parameters.
- Finish with the check's numbers in mind and say any trade-off in the summary (time, purge, colour changes).

### Colourwork: jacquard ribs and bead knit, charted (Oct 15 vision board)
Textures `jacquard` (each stitch a rib — folk-art vases, fair-isle) and `beads` (each stitch a dome — beaded boxes),
on every shape halftone fits (+ `box`, `gourd`, `jar`). Built like halftone: a band's 2-3 colours take turns layer
by layer and the stitches charted in that layer's colour bulge out (overhang <= half a line). One pixel = one stitch
around x a whole number of colour cycles up (~square). Options: `chart` (bands, bottom->top) or `chart_preset`,
`stitch_size` fine|regular|bold, `rim` none|braid|rope (+`rim_slot`), `band` 1|2 layers per colour.
Bands: `{"motif": key, "colours": [g, m, a], "repeat", "gap"}` · `{"art": [rows, top first], "once"}` (. X o) ·
`{"chart": stem}` (CHART plugin) · `{"picture": key, "fill"|"mm"|"rows", "tones": 2|3, ...picture options}` ·
`{"plain": slot, "mm"}` · `{"stripes": [slots], "mm", "layers"}`. No `fill` band: the list repeats up the wall.
Motifs tile a whole number of times around (spare columns become ground gaps), so nothing is cut at the seam.
CHART plugins (`plugin new chart NAME`): `CHART = dict(name=...)` + `ART = [rows]` or `chart(cols, rows[, p])` -> int
array (rows, cols) top first; `plugin check` renders a jacquard cup and `<stem>_pixels.png` — look at both.
Colour changes: ~1 per layer inside 2-3 colour bands (3.6 per mm at 0.4), none in plain/stripe bands — warn on
tall pieces, suggest `band: 2`, plain bands or a smaller size.

### Lidded boxes, labyrinth lids, paneled vessels
`box`: width/depth/height + roundness % (0 rounded rectangle, 100 stadium; square + 100 = round). Lid looks include
`labyrinth`: rings that follow the outline (racetracks on a stadium), each broken at alternating sides with bridges
between — raised over a two-colour weave, 3 colours; on a lid the rings print first on the bed so they end up on
top (`weave_face` bottom, set automatically). Knob `tube`: a ribbed open cup. `gourd` / `jar`: revolved silhouettes
cut into `sides` panels (5-16; 0 round) dished by `panel` % — wall families press the panels in after building,
woven clips rods to the paneled outline.

### Woven modifiers: twist, ombré, image in the weave (Claude-only)
These aren't texture cards — they're options Claude puts on any woven design when the request asks, and the studio
then shows them under Finish ("set by Claude") to tune or remove:
- `weave_twist` (deg/course, -12..12): the lattice turns as it climbs (built by rotating each course's region,
  weaving, and rotating back, so rods stay clipped inside the true outline). 2-4 = spiral, 8+ = swirl.
- `weave_ombre` ("0,1" or "0,1,2"): per-course colour, ordered-dithered bottom->top (golden-ratio thresholds, so
  no banding). Replaces course parity / course_group; still one change per course.
- `weave_picture` (+ text/font/picture_* and `weave_picture_on` top|wall, `weave_picture_courses`): rods are split
  where the picture is dark and that run prints in slot 1; pieces stop half a bead short of a colour change and
  specks shorter than one rod merge into their neighbours. Top = flat pieces read from above (the last N courses);
  wall = around the side (u = angle, v = height). A rod is the pixel: bold words/shapes, >= 14 mm letters.

### Sliders, budgets, variations, sets, memory, print reviews
- **Sliders on every plugin.** Add `PARAMS = {"key": dict(label=..., lo=..., hi=..., default=..., step=..., unit=...)}`
  (2-4 of the knobs that matter: count, size, density, angle…) and take one more argument: `draw(u, v, aspect, p)`,
  `pattern(region, nz, rods, p)`, `displace(u, layer, band_layers, band, z_frac, p)`, read `p["key"]`. The studio
  shows them as sliders (options `pp_<key>`), so the person tunes without asking again. Example: plugin_examples/koi.py.
- **Budgets** ("under 6 hours", "≤ 50 colour changes", "≤ 120 g"): `design slice FILE.json` gives Bambu Studio's
  real time, grams and colour changes plus `sliced_preview.png` (the paths as printed, front view). Iterate until
  it fits: course_group, fewer halftone layers (band 2-3), smaller piece, blends with stripe gradients only where
  they matter, tower off.
- **Variations** ("3 ideas"): genuinely different directions — texture family, blend style, colour story — each
  checked, each with its preview file named in the reply. **Sets** ("a matching cup, coaster and tray"): one design
  per piece with the same motif, colours and proportions.
- **Reference photos** ("make something like this"): Read it, infer silhouette → shape + params, surface → texture
  family, colours → `palette match PHOTO`.
- **Memory.** `~/.text2print/taste.md` (their likes/dislikes; the studio's "More like this / Not this" buttons
  append to it) and `~/.text2print/knowledge.md` (what printed well or failed on their P2S) are given to every run.
  Append a line to taste.md when they state a lasting preference.
- **Print reviews.** With a photo of a finished print: compare with the design's preview, name what worked and what
  didn't and why, append a dated, specific bullet to knowledge.md, record `verify <texture> 0.4 ok|fail --note …`,
  and return a corrected design.

Files in this skill

  • SKILL.md32.1 KB
  • docs/how-it-works.svg3.9 KB
  • docs/make_hero.py3.6 KB
  • docs/make_media.py2.8 KB
  • docs/make_motion.py7.4 KB
  • docs/research-2026-10.md50.9 KB
  • plugin_examples/diamond_weave.py611 B
  • plugin_examples/fish_scales.py926 B
  • plugin_examples/koi.py1.9 KB
  • plugin_examples/pebble_dish.py765 B
  • plugin_examples/planter.py783 B
  • pytest.ini310 B
  • requirements.txt470 B
  • studio/ask.py14.3 KB
  • studio/server.py25.2 KB
  • t2p273 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.