Exports from Blender to the engine and validates the result: format choice (glTF/GLB, FBX, .blend), the settings that matter, reproducible headless export and automatic validation of tris, UVs, scale, textures and clips with validate_gltf.py. Use for: export from blender, glb, fbx, validate export, blender to unity, blender to ue5.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Blender Export?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sebastianluser-blender-export)
---
name: blender-export
description: "Exports from Blender to the engine and validates the result: format choice (glTF/GLB, FBX, .blend), the settings that matter, reproducible headless export and automatic validation of tris, UVs, scale, textures and clips with validate_gltf.py. Use for: export from blender, glb, fbx, validate export, blender to unity, blender to ue5."
category: "gamedev"
argument-hint: "[asset-slug] [--target unity|ue5|web] [--budget-tris <n>]"
user-invocable: true
allowed-tools: Read, Glob, Grep, Bash, Write, Edit
---
# blender-export — Output to the engine
Gets the asset out of Blender and **verifies that what came out is what was expected**. This skill closes
the pipeline: `asset-spec` → Meshy or modeling → Blender → **validated export** → `asset-audit`.
> Requires `/blender-context` (target and scale defined). If the asset has a rig, it requires the
> `/blender-animation` bake to be done: constraints do not travel.
---
## Phase 1: Choose the format
| Format | When | Watch out |
|---|---|---|
| **glTF 2.0 (`.glb`)** | Default for Unity URP, web, and anything modern | A single file, embedded textures, automatic Y-up |
| **FBX** | UE5 and legacy Unity pipelines, skeletal meshes | Axes and scale have to be set by hand, closed format |
| **Direct `.blend`** | Quick prototype in Unity | Unity needs Blender installed to import it. **Do not use in CI or in a team repo** |
| **USD** | VFX pipelines / DCC interop | Uneven support in game engines |
Rule of thumb: **glTF unless the target prevents it.** FBX is the exception, not the default, and
it almost always exists because of the engine side, not the Blender side.
---
## Phase 2: Settings that matter
### glTF / GLB
| Setting | Value | Why |
|---|---|---|
| Format | `glTF Binary (.glb)` | One file, textures inside |
| Include | `Selected Objects` | One export per asset, not the whole scene |
| `+Y Up` | On | It is the glTF and Unity convention |
| Apply Modifiers | On | What is not applied does not exist in the file |
| Materials | `Export` | |
| Images | `Automatic` | |
| Compression (Draco) | Off when exporting | Compress afterwards, as a separate step |
| Animation → Sampling | On, and **one action per clip** | |
### FBX
| Setting | Value | Why |
|---|---|---|
| Scale | `1.0` with `Apply Unit` | The engine does the rest |
| Forward / Up | Depending on the target engine | UE5: `-Z Forward`, `Y Up` |
| Apply Scalings | `FBX All` | Avoids double scaling |
| Bake Animation | On, with `NLA Strips` off if a single action is exported | |
| Add Leaf Bones | **Off** | Clutters the skeleton in the engine |
What is **never** exported: control bones, reference objects, work cameras and lights,
scratch collections. If they are in the file, they will show up in the engine.
---
## Phase 3: Headless export
Reproducible and versionable, unlike exporting by hand from the UI:
```bash
blender --background <file.blend> --python <export_script.py> -- \
--out assets/3d/<slug>/export/<slug>.glb
```
The script: selects the objects that belong, clears the selection of what does not, and
calls `bpy.ops.export_scene.gltf(...)` with the Phase 2 settings explicit — **none of them
left to default**, because the operator's defaults change between Blender versions.
The script lives in the repo (`assets/3d/_scripts/` or next to the asset), not in the chat. An export that
only exists as manual steps is done differently every time.
**Ask for approval before writing** the script and before the first export to a path that already has
a file: an overwritten `.glb` cannot be recovered if the `.blend` changed.
---
## Phase 4: Validate the result
Never accept an export without measuring it. The validator is pure stdlib, it installs nothing:
```bash
python scripts/validate_gltf.py assets/3d/<slug>/export/<slug>.glb \
--budget-tris 8000 --max-materials 2 --require-uv1 --target unity
```
| Flag | What for |
|---|---|
| `--budget-tris <n>` | Budget declared in `/blender-modeling` |
| `--max-materials <n>` | Draw call cap |
| `--require-uv1` | Require a lightmap UV when the asset receives baked lighting |
| `--target unity\|ue5\|web` | Target-specific warnings (DirectX normal maps in UE5, compression on web) |
| `--json` | Parseable output, to chain it in CI |
What it checks, and why each check is there:
1. **Container** — GLB magic and chunks. A truncated file is detected here, not in the engine.
2. **Tris budget** — counting real indices per primitive, not estimating.
3. **UV0 / UV1** — without UV0 there is no texture; without UV1 the lightmap comes out blotchy.
4. **Scale** — nodes with scale 100 or 0.01 are an unapplied unit conversion.
5. **Materials** — count against the cap, plus autogenerated names (`Material.001`) that are
impossible to trace in the engine.
6. **Textures** — images referenced outside a `.glb` (they arrive broken in the engine) and resolutions
that are not a power of two.
7. **Clips** — count and names; an unnamed clip enters the engine as `Animation_0`.
Exit code 0 if the verdict is PASS or CONCERNS, 1 if it is FAIL. That makes it usable as a gate.
> The validator reads glTF/GLB, **not FBX**. Binary FBX cannot be inspected without dependencies, and
> this repo does not add them. If the target is FBX, **also** export a control `.glb` and
> validate that one: the geometry and materials are the same.
---
## Phase 5: Summary
Report: format and output path, settings used, and the validator's full table with its
verdict.
**Verdict:**
- **PASS** — the validator gives PASS and the asset is ready to integrate.
- **CONCERNS** — exported with warnings (not a power of two, unnamed clips, target warnings).
List each one and say whether it is accepted or fixed.
- **FAIL** — budget exceeded, no UVs, unapplied scale, external textures in a `.glb`, or an
invalid container. **Do not integrate**: state the fix and go back to the matching skill
(`/blender-modeling`, `/blender-materials`, `/blender-animation`).
## Next Steps
- `/asset-audit` to validate naming, formats and orphans once inside the project
- `/meshy-derive` if more targets of the same master are needed (web, print)
- In UE5, `/ue-animation-system` or `/ue-materials-rendering` for the engine side
- If the verdict was FAIL, go back to the skill of the area that failed — do not patch the exported file
---
> → Formats, axes, scale and Git LFS rules are in `.claude/rules/blender-files.md`.