Skip to content
Back to skills

Render And Review

ASecurity

Render a printed design headless with Blender (blender -b -P render.py): a 3/4 hero shot, an exploded or open view, and section views through a mechanism, with plain materials, neutral lighting that doesn't wash out, colour pairs that are safe for red-green colour blindness, and a --preview fast pass. Look up Blender's Python API and inspect meshes and scenes with the blender MCP server. Then look at every render before showing it. Use when someone asks to see a design, for renders, previews,...

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentspythongospringapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

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

Scanned December 2, 2026

npx -y skills add alexnodeland/fabrication --skill render-and-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Render And Review?

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

Security grade badge for Render And Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alexnodeland-render-and-review/badge)](https://www.skillsdirectory.com/skills/alexnodeland-render-and-review)

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: render-and-review
description: "Render a printed design headless with Blender (blender -b -P render.py): a 3/4 hero shot, an exploded or open view, and section views through a mechanism, with plain materials, neutral lighting that doesn't wash out, colour pairs that are safe for red-green colour blindness, and a --preview fast pass. Look up Blender's Python API and inspect meshes and scenes with the blender MCP server. Then look at every render before showing it. Use when someone asks to see a design, for renders, previews, pictures or a section view, or before sending a design for approval."
---

# Render and review

Renders are how a person judges a design before printing it, and how you catch what the checks missed. Render from
the build's own meshes, headless, and look at every image yourself before anyone else does.

## Run it

```sh
/opt/homebrew/bin/blender -b --python-exit-code 1 -P render/render.py -- --preview      # fast: half size
/opt/homebrew/bin/blender -b --python-exit-code 1 -P render/render.py -- --samples 96   # pcie-box: about 3 min
```

- **`--python-exit-code 1`**, before `-P`: without it a Python error in the script still exits 0.
- Arguments after `--` reach the script (`sys.argv[sys.argv.index("--") + 1:]`).
- Preview first; render full only once the preview looks right. Ask before anything that runs for hours: lynx's
  1080p video took 14 to 45 s a frame.
- Read the meshes the build wrote (`out/ref/*.stl`) and the parameters from `out/report.json`, never a copy: xiangqi's
  board renders kept a stale thickness until they read the report.

Code for every piece below: `references/render-recipe.md`.

## The shots

1. **Hero, 3/4 from above:** the assembled object on a table, camera up and to one side (pcie-box: 0.42, −0.50, 0.38 m
   from the centre, a 50 mm lens).
2. **Open or exploded:** lift what comes off together (pcie-box: the cover with its clasps and hinge pins, 150 mm up)
   with the contents in place; or move parts apart along their assembly axis.
3. **Section through the mechanism:** cut the parts in the build (`shape.common(half_space_box)`, written as
   `sec_*.stl`), then frame the cut face square-on with an orthographic camera. pcie-box's `clasp.png` shows the bowed
   clasp, the nub under the catch pin, the toe on the end face and the knuckle's gusset in one picture.
4. **The empty part,** so its features show (the base's slots, an empty bin's pockets).
5. **Orthographic top** for layout (gridfinity-x2d's `top.png`).

## Materials

- Principled BSDF, nothing fancier: PLA roughness 0.5 to 0.55; steel pins metallic 1.0, roughness 0.22 to 0.25;
  black anodised metallic 0.6, roughness 0.38; a table (0.42, 0.40, 0.37) at roughness 0.8.
- **Give each part its own colour, so the parts read apart:** pcie-box uses a black base, a slate-blue cover
  (0.30, 0.42, 0.55), amber clasps (0.85, 0.55, 0.12) and steel pins.
- **About one man in twelve can't tell red from green. Never use red against green for opposites** (good and bad, before and after, two
  variants). Use blue against amber or orange, or dark against light, and add a second cue: a label, a position, a
  pattern. Status pairs that pass for him: blue `#0a6f9a` and orange `#c4461a`.
- When the person will print in known filaments, render in those colours (xiangqi renders in its Bambu PLA colours).

## Light that doesn't wash out

- A grey-blue world (0.75, 0.78, 0.82) at strength 0.15 to 0.25, and three area lights: a key, a weaker fill and a top
  (pcie-box: 18, 6 and 9 W at 0.6 to 0.9 m). Scale the energy with the scene's size.
- AgX view transform with the "AgX - Medium High Contrast" look.
- **Light parts wash out first.** In pcie-box's open view the slate-blue cover came out nearly white and the amber
  clasps pale beige. Lower the exposure (xiangqi uses −0.9 to −1.3) or the key and top lights; don't darken the
  materials to compensate.

## Traps

- **Metal kernel setting on the wrong object.** The pcie-box, gridfinity-x2d and xiangqi scripts set
  `scene.cycles.kernel_optimization_level = "OFF"` inside a `try`. On Blender 5.2.2 that attribute doesn't exist, so
  it raised, and the log says `GPU setup skipped: 'CyclesRenderSettings' object has no attribute ...`. The GPU was
  already chosen, so the renders ran, but the setting never took. Set it on the Cycles add-on's preferences, guarded
  by `hasattr` (lynx's form), and print whether it took. Grep every render log for `GPU setup skipped`. The blender
  MCP's `search_api_docs` finds no `kernel_optimization_level` in Blender 5.2's API: search before you set.
- Why it matters: lynx's background Metal kernel compile crashed Blender mid-render, and xiangqi's exited 0 when it
  did. Check that every image you expect exists and is new.
- STL import: `bpy.ops.wm.stl_import(filepath=..., global_scale=0.001)` (mm to m), then `shade_auto_smooth` at 35°.
- Blender 5 keeps an action's F-curves in a channelbag per slot: `action.fcurves` finds nothing, silently. Reach them
  through `bpy_extras.anim_utils` (xiangqi's flyover eased wrongly until this was fixed).

## Look at every render before showing it

Open each PNG with the Read tool and go through:

1. **In frame:** nothing cropped, the object fills a fair part of the image.
2. **Parts read apart,** and each colour reads as itself: not washed to white, not crushed to black.
3. **The view does its job:** the hero shows the whole object; the open view, the contents and how the lid comes off;
   the section, the contact points of the mechanism.
4. **Nothing floats, nothing passes through a wall** that shouldn't. Renders catch what checks miss (on lynx, a
   review of the renders caught a floating spring).
5. **No artefacts:** black faces (flipped normals), fireflies, banding, a missing part.
6. **Colour pairs:** no red-against-green meaning.

Fix and re-render what fails. Then show the set, one line each on what it shows, and name anything the render can't
prove (a force, a fit: those are for the coupon).

## The blender MCP server

Blender Lab's official server (the plugin pins v1.0.3). Use it to get the API right and to check things before a
long render. `render/render.py` stays the source of truth: whatever you work out through the server goes back into
the script, and nothing exists only in a Blender session.

- **Before writing or changing `bpy` code:** `search_api_docs` (whole-word, every word must match: "cycles device
  metal") and `get_python_api_docs` for one identifier. They search the docs of the Blender the server was built
  for, so an attribute that isn't there (the Metal trap above) shows up before a render fails on it.
- **Background Blender, no window:** the `*_for_cli` tools run `blender --background` (the plugin's `blender_path`
  option, else the one on PATH). `execute_blender_code_for_cli` needs a `.blend` to open and returns what the code
  puts in a dict named `result`. For STL work keep an empty one in the project's `local/`:
  `blender -b --factory-startup --python-expr "import bpy; bpy.ops.wm.read_factory_settings(use_empty=True);
  bpy.ops.wm.save_as_mainfile(filepath='local/empty.blend')"`. Checked 2026-12-01: importing pcie-box's
  `coupon-clasp-base.stl` there returned its size, 50 × 12.5 × 32 mm, in 0.8 s.
- **With Blender open (not yet tried in this plugin):** the MCP add-on (extension "MCP", auto-starts a server on
  localhost:9876) lets `get_objects_summary`, `jump_to_view3d_object_by_name`,
  `get_screenshot_of_area_as_image` (`VIEW_3D`) and `render_thumbnail_to_path` look at a scene the person has open,
  and `execute_blender_code` change it. That runs any Python in their session: ask before changing their scene,
  and never save over their file.
- Its tools fail to connect when Blender isn't open; the `*_for_cli` tools and the doc search still work.

## Other ways to look

- `freecad` MCP (`get_view`): a quick screenshot of the model in a running FreeCAD, while working. Not a final render.
- `cadcraft` MCP: a dimensioned 2D drawing (a profile with its numbers) when the person wants a drawing. Draw with
  `command_line`, check with `inspect_drawing`, export an image with `render`.

Related: `freecad-build` (the meshes and sections come from the build), `mechanisms` (what a section must show),
`fabrication-doctor` (the blender server and its add-on).

Files in this skill

  • SKILL.md8.1 KB
  • references/render-recipe.md7.2 KB

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.