/blender-developer-tools:engine-export-presetsfrom blender-developer-tools
Provides Blender export presets for Unity, Godot, and Unreal with correct glTF (+Y up, meters) and FBX (axis enums, global scale) settings. Use when exporting game-engine assets or fixing orientation/scale issues.
Ships in blender-developer-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when the user:
export_yup, axis_forward, or axis_upbpy.ops.export_scene.gltfai-asset-pipeline-template can callThis skill is the export layer. It composes ai-mesh-cleanup (apply transforms, units), depsgraph-and-evaluated-data (export_apply ships evaluated mesh), and the unapplied-scale-gltf witness (export_apply does not bake object scale). It does not generate meshes.
glTF and FBX do not share axis RNA. bpy.ops.export_scene.gltf has export_yup (boolean, "+Y Up"). It does not have axis_forward or axis_up. bpy.ops.export_scene.fbx has axis_forward and axis_up (axis enums) and global_scale. It does not have export_yup. Passing the other exporter's kwargs is a TypeError or a silent no-op depending on how the call is built.
That split is the contract. Verified on current RNA:
export_yup, no axis enums)axis_forward, axis_up, global_scale)Before any preset: meters in the scene (scale_length == 1.0), identity object scale via transform_apply through temp_override, export_apply=True / use_mesh_modifiers=True so modifiers ship. See ai-mesh-cleanup and unapplied-scale-gltf.
def apply_selected_mesh_transforms():
# One operator call for the whole selection. transform_apply reads
# selected_editable_objects, so that is the key to override. It refuses
# shared (glTF-instanced) mesh data, so copy it per object first, and
# unparent keeping the world placement, or a rotated root stays on the node.
meshes = [o for o in bpy.context.selected_objects if o.type == "MESH"]
if not meshes:
return
for o in meshes:
if o.data.users > 1:
o.data = o.data.copy()
if o.parent is not None:
world = o.matrix_world.copy()
o.parent = None
o.matrix_world = world
with bpy.context.temp_override(
object=meshes[0], active_object=meshes[0], selected_editable_objects=meshes
):
bpy.ops.object.transform_apply(location=False, rotation=True, scale=True)
The two guards are for ordinary imports. Instanced glTF nodes come back as several objects sharing one Mesh, and transform_apply then raises Cannot apply to a multi user (4.5.11 and 5.2.1). A mesh under a rotated root has an identity matrix_basis. Applying it leaves the root's rotation in matrix_world, and use_selection=True writes that rotation onto the exported node. Copying the data means instances no longer share one mesh. That is the cost of baking transforms into vertices.
use_selection=True on every preset. Draco is opt-in on glTF; do not copy gltf_draco_export.py wholesale.
The glTF 2.0 spec fixes the coordinate system: +Y up, right-handed, units in meters. Unity, Godot and Unreal all import glTF against that spec, so the correct glTF export is the same call for all three: export_yup=True, meters, transforms applied. The engines differ in what they do on import (Unreal converts meters to centimeters itself; Godot reads node-name import hints), not in the file you should write.
bpy.ops.export_scene.gltf(
filepath=path,
export_format="GLB",
use_selection=True,
export_yup=True,
export_apply=True,
export_draco_mesh_compression_enable=draco,
export_animations=False,
)
export_yup=True bakes (x, y, z) -> (x, z, -y) into POSITION with no node rotation. Witness: examples/gltf-export-roundtrip/ and examples/export-preset-axis/.
Snippet: snippets/export_preset_unity.py.
Godot is right-handed and Y-up, and its importer reads glTF as the spec says. The export is the Unity call: export_yup=True, meters, .glb. What is Godot-specific happens on import, through node-name suffixes the importer reads as hints: a mesh named Crate-convcolonly becomes a convex collision shape with no visible mesh, -colonly a trimesh collision shape, -col / -convcol add collision to a visible mesh, and -rigid makes a rigid body. Name the collider object accordingly before export instead of changing axes. See Godot's node type customization docs.
export_yup=False is wrong for Godot, as for every glTF consumer: it writes Blender's Z-up POSITION into a file the importer reads as Y-up, so the model arrives rotated -90° about X (lying on its back). examples/export-preset-axis/ measures exactly that.
Snippet: snippets/export_preset_godot.py.
Unreal works in centimeters, but do not bake 100x into a glTF. glTF units are meters by spec, and Unreal's glTF importer (Interchange) applies its own meters-to-centimeters conversion (import_scale, default 100). A 1 m crate exported with a 100x bake imports 100 m wide. Export Unreal glTF exactly like Unity: export_yup=True, meters.
FBX is where Unreal needs explicit axis and scale kwargs. It keeps the meter mesh and scales on the way out:
bpy.ops.export_scene.fbx(
filepath=path,
use_selection=True,
axis_forward="-Z",
axis_up="Y",
global_scale=100.0,
apply_unit_scale=False,
use_mesh_modifiers=True,
bake_anim=False,
)
Do not pass export_yup to FBX. Do not pass axis_forward to glTF.
Snippet: snippets/export_preset_unreal.py.
export_scene.gltf(..., axis_forward="-Z", axis_up="Y"). Those names are FBX. Rule use-correct-axis-rna-per-exporter.export_scene.fbx(..., export_yup=True). Same rule, other direction.transform_apply. export_apply is modifiers, not object scale. examples/unapplied-scale-gltf/.export_yup=False for any engine. glTF is Y-up by spec; a Z-up file imports lying on its back in Unity, Godot and Unreal alike. examples/export-preset-axis/ re-imports both and measures the -90° tilt.global_scale).-convcolonly, -rigid), not in export_yup.Probed on 4.5 LTS, 5.1, and 5.2: export_yup on glTF and axis_forward / axis_up / global_scale on FBX are present on all three. No version branch for the axis kwargs. Guard by requiring those names in operator RNA so a future rename fails loudly, as examples/gltf-export-roundtrip/ does.
Always pass export_format on glTF and make the filepath suffix match it. The operator does not infer the format from the suffix: export_scene.gltf(filepath="x.gltf") with no export_format writes a binary x.glb, so the requested path never exists (measured on 4.5.11 and 5.2.1). Use export_format="GLB" with .glb, or "GLTF_SEPARATE" with .gltf.
ai-mesh-cleanupdepsgraph-and-evaluated-datause-correct-axis-rna-per-exporterno-unapplied-modifiers-on-exportvalidate-imported-mesh-scalesnippets/export_preset_unity.pysnippets/export_preset_godot.pysnippets/export_preset_unreal.pysnippets/gltf_draco_export.pyexport-preset-axisgltf-export-roundtripunapplied-scale-gltfEach example runs headless, asserts the contract, and exits non-zero when it breaks. Run one with blender --background --python <script> --; pass a falsifier flag to watch the check fail.
export-preset-axis: A radio mast exported once with the engine glTF preset (export_yup=True, shared by Unity, Godot and Unreal) and once naively Z-up, then re-imported: the Z-up file lies on its back Falsify: --same-axis (exit 9).gltf-export-roundtrip: A sci-fi supply crate exported to glTF and re-imported, verifying the round-trip against the depsgraph-evaluated mesh within float tolerances. Falsify: --no-yup (exit 9).gltf-skin-roundtrip: A rigged mech scorpion exported to glTF with skins and re-imported, verifying the skinning contract the geometry round-trip left uncovered. Falsify: --no-skins (exit 5).unapplied-scale-gltf: Synthesizes unapplied non-uniform object scale on a unit cube, then asserts the glTF exporter contract. Falsify: --identity (exit 3).Short standalone patterns to copy. Each one runs in CI on 5.2 and 4.5 with a check and a falsifier.
snippets/export_preset_godot.pysnippets/export_preset_unity.pysnippets/export_preset_unreal.pysnippets/gltf_draco_export.pybpy.ops.export_scene.gltf: https://docs.blender.org/api/current/bpy.ops.export_scene.html#bpy.ops.export_scene.gltfbpy.ops.export_scene.fbx: https://docs.blender.org/api/current/bpy.ops.export_scene.html#bpy.ops.export_scene.fbxWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
27 skills in this plugin
/addon-scaffoldingScaffold a Blender add-on as an Extensions Platform package: blender_manifest.toml, modular file layout, register_classes_factory, symmetric register/unregister. Use when the user starts a new add-on or extension, writes or fixes blender_manifest.toml, asks which layout or registration pattern to use on Blender 4.5 LTS or 5.x, or has classes that fail to register or unregister cleanly. Targets 5.2 LTS with 4.5 LTS fallback./ai-mesh-cleanupOrdered cleanup for an imported generated or scanned mesh before it goes to an engine: scene units, apply rotation and scale, origin to base, recalculate normals, evaluated triangle count, decimate to a budget, convex collider. Use when the user has a GLB, glTF or FBX that is not engine-ready, mentions unit scale, unapplied transforms, triangle budget, LODs or a collision hull, or is about to run mesh operations on an import without checking its scale. Targets 5.2 LTS with 4.5 LTS fallback./bake-high-to-lowCage-bake high-poly surface detail onto a low-poly target as a tangent-space normal map with bpy.ops.object.bake (Cycles, selected-to-active, active Image Texture node, UV layer, save_render). Use when the user wants a normal map from a dense mesh onto a game-resolution or decimated LOD, mentions cage_extrusion or use_selected_to_active, or gets a bake that returns CANCELLED, comes out black or flat, or fails with 'No active UV layer found'. Targets 5.2 LTS with 4.5 LTS fallback./blender-rulesBlender Python anti-pattern rules (bmesh leaks, bpy.ops in loops, deprecated context-copy overrides, bulk mesh writes, prop annotations and context guards, Extensions manifest, import scale, export modifiers, glTF/FBX axis RNA, the removed bgl module, the normals API removed in 4.1). Use when writing, reviewing or fixing any bpy / Blender add-on or script code./bl-info-migrationMigrate a legacy bl_info add-on to the Extensions Platform in three steps, with a before/after diff and the dual-format pattern. Use when the user has a bl_info dictionary in __init__.py, asks whether bl_info is deprecated or still supported, wants to publish to extensions.blender.org or ship an extension .zip, or sees warnings about legacy add-ons at install time. Targets 5.2 LTS; manifests work from 4.2./compositor-nodesBuild and render through the scene compositor from Python across the 4.5 LTS to 5.x split: scene.use_nodes plus scene.node_tree and a Composite node on 4.5, a CompositorNodeTree node group assigned to scene.compositing_node_group with interface sockets and a Group Output on 5.x, a Render Layers to Glare (Fog Glow) chain, the Glare node's move from enum properties to menu input sockets, and render.use_compositing. Use when the user scripts compositor nodes, adds bloom or glow, hits AttributeError on scene.node_tree in 5.x, sets glare_type or quality and gets AttributeError on 5.x, looks for the removed EEVEE use_bloom toggle, or renders and sees no compositor effect. Targets 5.2 LTS with 4.5 LTS fallback.npx claudepluginhub tmhsdigital/blender-developer-tools --plugin blender-developer-toolsOther plugins' skills for the same job