From 50e76772565d3b001e12664051b639f9eb685f99 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 8 Jun 2026 22:00:00 +0000 Subject: [PATCH] Exclude objects named EXCL_/EXCLUDE_ from mmobj export Objects whose name begins with "EXCL_" or "EXCLUDE_" are now skipped during export in the Blender exporter. This lets reference geometry, helpers, and blockouts stay in the .blend scene without being written into the .mmobj file. Applies to both selection-only and whole-scene export modes, since both feed the same object loop in write_file(). https://claude.ai/code/session_019SiVcgmbunSTtZk9Phxffu --- BlenderScripts/io_scene_mmobj/export_mmobj.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BlenderScripts/io_scene_mmobj/export_mmobj.py b/BlenderScripts/io_scene_mmobj/export_mmobj.py index 6e88a61b..5a3b17d2 100644 --- a/BlenderScripts/io_scene_mmobj/export_mmobj.py +++ b/BlenderScripts/io_scene_mmobj/export_mmobj.py @@ -334,6 +334,11 @@ def findVertexGroupName(face, vWeightMap): # Get all meshes for ob_main in objects: + # skip objects flagged for exclusion by name prefix + if ob_main.name.startswith(("EXCL_", "EXCLUDE_")): + print(ob_main.name, 'is marked excluded - ignoring') + continue + # ignore dupli children if ob_main.parent and ob_main.parent.dupli_type in {'VERTS', 'FACES'}: # XXX