Skip to content
Back to skills

Preview Model

ASecurity

Produces the cheap 8-frame draft turntable (renders/draft_00.png to draft_07.png) for one model so later stages can see what the object is. A script stage since 2026-10-20: the director runs preview_model.py itself, at no model cost. By hand, the same script. Not for product images (design-product) and not for choosing an angle.

  • 8 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added October 16, 2026
ai-agentspythonbashawsapi

Works with

  • api

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add 3DAPI-Inc/dapilot --skill preview-model --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Preview Model?

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

Security grade badge for Preview Model
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/3dapi-inc-preview-model/badge)](https://www.skillsdirectory.com/skills/3dapi-inc-preview-model)

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: preview-model
description: Produces the cheap 8-frame draft turntable (renders/draft_00.png to draft_07.png) for one model so later stages can see what the object is. A script stage since 2026-10-20: the director runs preview_model.py itself, at no model cost. By hand, the same script. Not for product images (design-product) and not for choosing an angle.
allowed-tools: Read, Bash, Write
---

# preview-model

## When
A brief with `stage: preview`. The work dir has `source.<ext>` and
`analysis.json`, and no `renders/draft_00.png`. In a run the director runs
this stage as a script (`stages.json` names `preview_model.py`), so a worker
only sees it when a person runs the skill by hand.

## Inputs
- `source.<ext>`, `analysis.json`; `display.ply` when `assembly_3mf.py`
  built one (the parts placed as assembled, in their colours)

## Procedure
1. If `renders/draft_00.png` exists, print a `cached:true` result and stop.
2. Run, with a Bash timeout of 300000 ms:
   `$PY ${CLAUDE_PLUGIN_ROOT}/scripts/preview_model.py --workdir $WORKDIR`
   It captures eight WebGL frames of the file as exported in headless
   Chrome, at 45 degree steps of yaw from the front, 18 degrees above the
   horizon, and writes `renders/draft_00.png` to `draft_07.png` at 512 px
   and a `draft` record into `renders/render.json`. About 3 s on the
   reference laptop. Non-zero exit: `ok:false`, reason from the script's
   JSON.
3. Log paragraph, remove `.lock`, print the result line with outputs
   `["renders/draft_00.png"]`. There is no judgement in this stage.

## Outputs
- `renders/draft_00.png` to `renders/draft_07.png`, 512 px, WebGL
- `renders/render.json`, the `draft` record: frames, yaws, size, timing

## Gate
Auto. CPU time only.

## Failure
- Chrome missing: the script exits non-zero saying so; pass the message
  through. The studio page itself ships with the plugin (`studio/`), so a
  missing page is a broken install, not a missing dependency.
- Unsupported extension: `ok:false`, reason from the script.

## Do not
- Do not look at the drafts. Naming the product is research-comparables'
  job; orientation and hero yaw are design-product's.
- Do not render stills here. Stills run only after a price exists.
- Do not pass `--rotate` or `--color`; drafts are always the file as exported.

`$PY` is `${DAPILOT_PYTHON:-python3}`.

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.