Render Stl Png
Skill by ajmwagar
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/ajmwagar/render-stl-pngrender-stl-png
Render an STL to a PNG from a nice, consistent 3D angle ("Blender-ish" default perspective) with a solid color.
This is a deterministic software renderer:
- No OpenGL
- No Blender dependency
- Uses a simple camera + z-buffer + Lambert shading
Inputs
- STL file path (ASCII or binary)
- Output PNG path
Parameters
--size <px>: image width/height (square), default1024--bg "#rrggbb": background color, default#0b0f14--color "#rrggbb": mesh base color, default#4cc9f0--azim-deg <deg>: camera azimuth around Z, default-35--elev-deg <deg>: camera elevation, default25--fov-deg <deg>: perspective field of view, default35--margin <0..0.4>: framing margin as fraction of view, default0.08--light-dir "x,y,z": directional light vector, default-0.4,-0.3,1.0
Usage
One-shot
python3 scripts/render_stl_png.py \
--stl /path/to/model.stl \
--out /tmp/model.png \
--color "#ffb703" \
--bg "#0b0f14" \
--size 1200
Wrapper (recommended)
The wrapper creates a cached venv (so pillow is available) and runs the renderer.
bash scripts/render_stl_png.sh /path/to/model.stl /tmp/model.png --color "#ffb703"
Notes
- This is meant for marketing/preview images, not photorealism.
- If you need studio lighting / materials, use Blender — but this gets you 80% quickly and reproducibly.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-ajmwagar-render-stl-png": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
create-dxf
Create RFQ-ready 2D DXF (and optional SVG preview) files from a strict, validated JSON spec derived from a natural-language design prompt. Use for sheet/plate parts (waterjet/laser/router) like mounting plates, gussets, brackets, hole patterns, and slots.
find-stl
Search and download ready-to-print 3D model files (STL/3MF/ZIP) for a concept or specific part by querying Printables (first). Use when an agent needs to find an existing model, capture license/attribution, download the source files, and output a local folder + manifest for quoting/printing.
image-to-relief-stl
Turn a source image (or multi-color mask image) into a 3D-printable bas-relief STL by mapping colors (or grayscale) to heights. Use when you have an image from an image-gen skill (nano-banana-pro, etc.) and want a real, printable model (STL) via a deterministic pipeline.
trace-to-svg
Trace bitmap images (PNG/JPG/WebP) into clean SVG paths using potrace/mkbitmap. Use to convert logos/silhouettes into vectors for downstream CAD workflows (e.g., create-dxf etch_svg_path) and for turning reference images into manufacturable outlines.
netlify
Use the Netlify CLI (netlify) to create/link Netlify sites and set up CI/CD (continuous deployment) from GitHub, especially for monorepos (multiple sites in one repo like Hugo sites under sites/<domain>). Use when Avery asks to deploy a new site, connect a repo to Netlify, configure build/publish settings, set environment variables, enable deploy previews, or automate Netlify site creation.