This is a collection of scripts I keep around. Be forewarned: Some of them are cryptic. Many of them are undocumented. Several of them are very nearly pointless.
But some of them are insanely useful. I will try to make sure these are documented, so that sharing them on github isn’t as dumb as some of these files would lead you to believe.…
Turn an image into a multi-color 3D-printed inlay sign: quantize to a few filament colors, trace to SVG, then build a baseplate STL plus one flush inlay STL per color (load them together in the slicer as one object).
inlay-svg -n 6 -b black --color gold sign.png # -> sign.svg, sign-preview.png inlay-stl -s 120x240x3 -r 8 sign.svg # -> sign-01-black.stl, ...
Requirements:
-
Ruby 3.1+ with the
colorizeandoptimistgems -
ImageMagick 6.9+ or 7 (
apt install imagemagick/brew install imagemagick) -
potrace (
apt install potrace/brew install potrace) -
uv (
curl -LsSf https://astral.sh/uv/install.sh | sh/brew install uv); inlay-stl uses it to runlib/inlay_geom.pywith its own Python and manifold3d, downloaded into uv’s cache on first run
Filament colors come from ~/.config/inlay/filaments (Name: #hex per line). Without that file, the CSS named colors in lib/inlay-filaments-css.txt are used. Run either script with no arguments for full options.