app
hero-picker
Public Unreviewedby Caleb
Interactive orientation picker and hero renderer for molecule GLBs. Serves a Hydrogen webview UI with X/Y/Z rotation bars over studio base renders, true-render preview, and one-click 1200x630 hero sav
#!/usr/bin/env bash
# Hero Picker install: node renderer deps + PATH symlink
set -e
cd "$(dirname "$0")"
command -v node >/dev/null || { echo "ERROR: node is required"; echo "Hint: install Node 20+ first."; exit 1; }
python3 -c "import PIL, numpy" 2>/dev/null || pip3 install --quiet pillow numpy
[ -d node_modules/puppeteer ] || npm install --no-fund --no-audit puppeteer@22
chmod +x hero-picker
mkdir -p ~/.local/bin && ln -sf "$PWD/hero-picker" ~/.local/bin/hero-picker
echo "OK: hero-picker installed"
echo "Hint: run: hero-picker <board.glb> [more.glb ...] [--port 8848] [--out-dir .]"
echo "Hint: then open the printed URL in a Hydrogen webview tab."