Skip to content
Back to skills

Dayz Model Tools

ASecurity

Runs the DayZ model tools on source (MLOD) .p3d and .blend files: the p3d inspector (Recipe JSON, a 3D page to drag memory points, rebuild), the proxy editor (find and fix proxies that render at the floor, float or turn), the clothing alignment viewer and the FBX handoff to an artist, the offline winding and normal gate, the clean UV atlas pipeline with its exact overlap gate, the .p3d to .glb viewer tool, and the ripped car classification viewer. Use when one of these has to run: inspect or ...

  • 22 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 24, 2026
toolspythongoshellbashnodetesting

Works with

  • cli
  • mcp

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

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

Scanned November 24, 2026

npx -y skills add DayZ-n-Chill/Agentic-Z --skill dayz-model-tools --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dayz Model Tools?

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

Security grade badge for Dayz Model Tools
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dayz-n-chill-dayz-model-tools/badge)](https://www.skillsdirectory.com/skills/dayz-n-chill-dayz-model-tools)

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: dayz-model-tools
description: "Runs the DayZ model tools on source (MLOD) .p3d and .blend files: the p3d inspector (Recipe JSON, a 3D page to drag memory points, rebuild), the proxy editor (find and fix proxies that render at the floor, float or turn), the clothing alignment viewer and the FBX handoff to an artist, the offline winding and normal gate, the clean UV atlas pipeline with its exact overlap gate, the .p3d to .glb viewer tool, and the ripped car classification viewer. Use when one of these has to run: inspect or rebuild a p3d, move memory points, align a proxy, fit worn clothing plates, export clothing for an artist, check winding before a pack, unwrap or audit UVs, or preview a model in a browser. The knowledge behind them is the model pack, skills/_shared/models/README.md."
argument-hint: "<tool> <model.p3d | recipe.json | file.blend> [options]"
---

<!-- skill-dir-note -->
> **Path note:** `<skill-dir>` in commands below is the absolute path of this skill's folder. When the agent loads this skill the harness exposes the skill's base directory; substitute it before running. Sibling skills are reached via `<skill-dir>\..\dayz-X\`.

# /dayz-model-tools

The scripts of the model work. Each tool has one how-to file in the model pack (`skills/_shared/models/`) with its options, its output, its limits and what its results mean; read that file before the first run. This page only says which script does what and how to start it.

Follow `skills/_shared/dayz-conventions.md`. The scripts read and write only the files named on their command line and need neither DayZ Tools nor the game, so they do not gate on `/dayz-preflight` (the stated exception in `dayz-conventions.md`). The one exception is `worn_overlay.py`: it reads vanilla clothing and runs the preflight gate when its `--dz` folder is on `P:\`.

Write outputs under `output/<descriptive-folder>/` unless the model belongs to a mod in `workspace/<ModName>/`. Never write over the only copy of a model: build to a new file name, then run `/dayz-p3d-audit` on the result.

## Before the first run

- py3d is the DayZ fork in `scripts/tools/py3d/`, 1.6.0 or later. The scripts use that folder directly or an installed copy of it. Never `pip install py3d`: the PyPI package of that name is an unrelated library. `install_py3d.py` installs the fork from a built wheel when one is at hand; Agentic-Z ships none.
- The HTML pages take their scaffold from `viewer_core.py` in `scripts/tools/dayz-3d-viewer/` and load Three.js from a CDN, so the browser needs a network the first time.
- The UV scripts and `export_clothing_fbx.py` run inside Blender (`blender -b ... -P <script> -- <args>`), not under plain Python.

## Scripts

All in `<skill-dir>\scripts\`.

### p3d inspector

How-to: `tools-p3d-inspector.md`, with `tools-p3d-inspector-recipe.md` (the Recipe fields), `tools-p3d-inspector-viewer.md` (the page) and `tools-p3d-inspector-round-trip.md` (what a rebuild can lose).

```cmd
python "<skill-dir>\scripts\p3d_inspector_extract.py" model.p3d -v -o recipe.json
python "<skill-dir>\scripts\p3d_inspector_viewer.py" recipe.json inspector.html
python "<skill-dir>\scripts\p3d_inspector_build.py" recipe_edited.json model_rebuilt.p3d -v
```

| Script | Does |
|---|---|
| `p3d_inspector_extract.py` | MLOD `.p3d` to Recipe JSON: every LOD, memory point, axis, selection and property |
| `p3d_inspector_viewer.py` | Recipe to a standalone page where points and axis ends can be dragged |
| `p3d_inspector_build.py` | Edited Recipe to a new MLOD `.p3d`; `--no-autofix` on a model that rendered correctly |

Outside an agent session: `scripts\dayz\p3d-inspector-extract.bat`, `p3d-inspector-viewer.bat`, `p3d-inspector-build.bat`.

### Proxy editor

How-to: `tools-proxy-align.md`. The frame rule behind it is `proxy-frames.md`.

```cmd
python "<skill-dir>\scripts\proxy_extract.py" host.p3d recipe.json
python "<skill-dir>\scripts\proxy_canon.py" recipe.json edits.json
python "<skill-dir>\scripts\proxy_apply.py" host.p3d edits.json host_aligned.p3d --verify
```

| Script | Does |
|---|---|
| `proxy_frame.py` | The frame rule (angle sort, anchor, orientation) and the canonical triangle; used by the others |
| `proxy_extract.py` | Host `.p3d` to `recipe.json`, with an `ambiguous` flag per proxy |
| `worn_overlay.py` | Adds the worn model of one item per slot to the recipe (needs an external ODOL reader) |
| `proxy_canon.py` | Rewrites every proxy as an unambiguous triangle; `--rot Slot=AXIS:DEG` per slot |
| `proxy_viewer.py` | Recipe to an editor page with a move and rotate gizmo; exports `edits.json` |
| `proxy_apply.py` | Writes the listed proxy points back into the MLOD and changes nothing else |
| `install_py3d.py` | Installs the py3d fork from a built wheel; `--dry-run` prints the wheel and pip commands without running pip |

Outside an agent session: `scripts\dayz\proxy-extract.bat`, `proxy-canon.bat`, `proxy-worn-overlay.bat`, `proxy-viewer.bat`, `proxy-apply.bat`.

### Worn clothing

How-to: `skills/_shared/wearables/references/fitting-worn-models.md` (alignment viewer and artist handoff) and `skills/_shared/wearables/references/autofit-on-official-rig.md`. The templates for the handoff are in `<skill-dir>\templates\` (`model.cfg.template`, `README-ARTIST.template.md`).

```cmd
python "<skill-dir>\scripts\alignment_viewer_extract.py" garment_m.p3d --out work
python "<skill-dir>\scripts\alignment_viewer_build.py" --data work\align_data.json
python "<skill-dir>\scripts\apply_alignment_json.py" --adjust adjust.json garment_m.p3d garment_f.p3d
blender -b --python "<skill-dir>\scripts\export_clothing_fbx.py" -- --out package --texture garment_co.png garment_m.p3d garment_f.p3d
```

| Script | Does |
|---|---|
| `alignment_viewer_extract.py` | Worn model to region data for the alignment page |
| `alignment_viewer_build.py` | Writes `alignment_viewer.html` with sliders per region |
| `apply_alignment_json.py` | Applies the exported adjustments to every LOD; backs each file up first |
| `export_clothing_fbx.py` | Runs in Blender: FBX package with UVs, diffuse PNG and the bone weights |

Outside an agent session: `scripts\dayz\clothing-viewer-extract.bat`, `clothing-viewer-build.bat`, `clothing-viewer-apply.bat`.

### Winding and normal gate

How-to: `tools-winding-gate.md`. Run it on the source MLOD after building the `.p3d` and before every pack. Exit 0 is PASS, 1 a model defect with the fix printed, 2 invalid input or a binarized file.

```cmd
python "<skill-dir>\scripts\check_dayz_winding.py" model.p3d
```

| Script | Does |
|---|---|
| `check_dayz_winding.py` | Signed volume per closed shell and stored normals per corner, for every visual LOD |
| `make_fixtures.py` | In `winding_fixtures\`: rewrites the four fixture models the gate's tests use |

Outside an agent session: `scripts\dayz\check-winding.bat`.

### Clean UV atlas

How-to: `tools-uv-atlas.md` (which method, the pipeline, the quality gate) and `tools-uv-atlas-traps.md` (the traps). The other UV files in the pack: `tools-uv-mesh-health.md`, `tools-uv-multi-lod-atlas.md`, `tools-uv-organic-photograph.md`, `tools-uv-mlod-audit.md`, `tools-uv-partuv.md`, `tools-uv-tool-survey.md`.

```cmd
blender -b in.blend -P "<skill-dir>\scripts\uv_clean_atlas.py" -- out.blend out_dir tag min_faces object_name
blender -b file.blend -P "<skill-dir>\scripts\sat_gate.py" -- object_name
```

| Script | Does |
|---|---|
| `uv_clean_atlas.py` | The paint atlas pipeline, stages 1 to 7 |
| `uv_view_charts.py`, `uv_straighten.py`, `uv_shelf_pack.py`, `uv_metrics.py` | The stages the pipeline imports; `uv_metrics.py` is also the audit module |
| `sat_gate.py` | The exact overlap gate for one object's active UV layer |
| `project_atlas.py` | The orthographic projector of the photograph method |
| `export_objs_tri.py` | A sanitized, triangulated OBJ for PartUV |
| `audit_partuv.py` | Scores a PartUV result and re-packs it |
| `partuv_install.sh` | Installs PartUV on Linux or WSL2 (bash) |

### 3D viewer tool

How-to: `tools-3d-viewer.md`, with `tools-3d-viewer-formats.md` (PAA and RVMAT), `tools-threejs-viewers.md` (the page library and testing it), `tools-3d-viewer-states.md` (where moving parts and LED states are defined) and `tools-3d-viewer-states-build.md` (the plan for playing them, not built). The tool is `scripts/tools/dayz-3d-viewer`, run as `python -m dayz_3d_viewer`; this skill ships no script for it.

### Ripped car classification viewer

How-to: `skills/_shared/vehicles/rip-classify-viewer.md` (the Three.js r128 files to download, the steps per car, the GLB data contract). It reviews which parts of a ripped car are kept, dropped or movable without opening Blender; the workflow it serves is `skills/_shared/vehicles/ripped-car-proxy-split.md`. The page is advisory: authority stays with the `.blend`.

```cmd
blender --background --python-exit-code 1 --python "<skill-dir>\scripts\export_car_glb.py" -- --blend <car.blend> --out <dir>\car.glb
py -m http.server <port> --directory <dir>
```

Copy `<skill-dir>\scripts\classify-viewer\index.html` and a `lib\` folder holding `three.min.js`, `GLTFLoader.js` and `OrbitControls.js` next to `car.glb` first; the page cannot load the GLB from `file://`. The human's changes are in `window.DZ_DELTAS`.

| Script | Does |
|---|---|
| `export_car_glb.py` | Runs in Blender: the car's classification `.blend` to `car.glb` with the `dz_*` node extras and no materials; never saves the `.blend`; prints `GLB_DONE` |
| `classify-viewer\index.html` | The page: click a part, set INCLUDE, MOVABLE or EXCLUDE with a reason, copy the changes as JSON |

### Blender build helpers

How-to: `blender-assembly.md` (the rules, the detail pass, the integrity gate) and `model-build-stages.md` (a production build in checked stages). The library needs a Blender MCP server connected to the session; this repo configures none. At session start, read the file and execute it whole through the MCP's code tool instead of pasting single functions.

| Script | Does |
|---|---|
| `blender_helpers.py` | Runs inside Blender: `make_beam`, `make_cable`, `loft_profile`, `panel_recess`, `place_copies`, `boolean_cut`, `add_bevel`, `smart_uv`, `bake_map`, and the gates `verify_bounds`, `verify_overlap`, `verify_mesh_integrity`, `finalize`, `audit_all` |

### Render review

How-to: `blender-visual-review.md` (the capture helper, the stop policy, the delta check), `blender-review-checklist.md` (what to look for) and `blender-winding-flips.md` (catching a winding flip), with `tools-vlm-judge.md` (a local vision model as a pre-filter, and its calibration) and `tools-vlm-checklist-format.md` (the checklist JSON and `--view` routing). Plain Python, no packages, no Blender; `vr_score.py` and `vr_calibrate.py` need an Ollama server.

```cmd
python "<skill-dir>\scripts\correction_loop.py" --history _review\history.json --json
python "<skill-dir>\scripts\vr_delta.py" _review\model__front__iter1.png _review\model__front__iter2.png --json
python "<skill-dir>\scripts\vr_score.py" ask _review\model__iso__iter3.png --checklist "<skill-dir>\scripts\checks_hardsurface.json" --model <vision-model> --json
python "<skill-dir>\scripts\vr_calibrate.py" report --shadow cal.jsonl --verdicts verdicts.json --checklist "<skill-dir>\scripts\checks_hardsurface.json"
```

| Script | Does |
|---|---|
| `correction_loop.py` | The stop policy of the fix loop: reads `history.json`, prints keep going or stop with `continue`, `refine-spec` or `request-input`; exit 0 keep iterating, 1 stop, 2 unreadable history |
| `vr_delta.py` | Compares a before and after render of the same camera: silhouette IoU, bounding box, SSIM, edges, tone; a change filter, never a verdict |
| `vr_score.py` | Asks a local vision model the checklist questions about a render (`ask`) or scores it against a reference (`score`); logs every answer to a shadow JSONL |
| `vr_calibrate.py` | Runs the checklist over a folder of renders (`run`) and reports agreement per question against your own verdicts (`report`) |
| `checks_hardsurface.json` | The starter checklist for hard-surface models: 8 questions, 5 active |

Outside an agent session: `scripts\dayz\render-delta.bat` runs `vr_delta.py`.

## Tests

The `test_*.py` files in `<skill-dir>\scripts\` run under plain pytest and need no Blender: `python -m pytest -q skills/dayz-model-tools`.

Files in this skill

  • SKILL.md12.1 KB
  • scripts/alignment_viewer_build.py14.2 KB
  • scripts/alignment_viewer_extract.py8.3 KB
  • scripts/apply_alignment_json.py9.4 KB
  • scripts/audit_partuv.py1.8 KB
  • scripts/blender_helpers.py14.2 KB
  • scripts/check_dayz_winding.py28.6 KB
  • scripts/checks_hardsurface.json2.1 KB
  • scripts/classify-viewer/index.html14 KB
  • scripts/correction_loop.py5.7 KB
  • scripts/export_car_glb.py1.7 KB
  • scripts/export_clothing_fbx.py8.4 KB
  • scripts/export_objs_tri.py1.5 KB
  • scripts/install_py3d.py9.4 KB
  • scripts/p3d_inspector_build.py23.3 KB
  • scripts/p3d_inspector_extract.py23 KB
  • scripts/p3d_inspector_viewer.py37.4 KB
  • scripts/partuv_install.sh1.3 KB
  • scripts/proxy_apply.py2 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 tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.