- Fix stale 21→18 segment count in architecture doc, script docstrings, and disk budget table (critical — both reviewers) - Add average_m/README.md noting role as clothing reference body - Add __main__ guards to diagnostic scripts - Preflight-check all source paths in blender_process_bodies.py - Document solid-white hair masks as v0.2 placeholder for multi-region - Add fallback size comment for head mask generation - Add bald_mask.png (1×1 black) for sidecar convention consistency - Document child non-uniform scale rationale (Y=0.72 vs XZ=0.75) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
21 lines
725 B
Python
21 lines
725 B
Python
"""
|
|
blender_inspect_body.py
|
|
Usage: tooling/blender --background --python tooling/blender_inspect_body.py -- <input.gltf>
|
|
|
|
Lists all mesh objects in a FullBody GLTF: names, vertex counts, vertex group counts.
|
|
"""
|
|
import sys
|
|
import bpy
|
|
|
|
if __name__ == "__main__":
|
|
argv = sys.argv
|
|
args = argv[argv.index("--") + 1:]
|
|
bpy.ops.wm.read_factory_settings(use_empty=True)
|
|
bpy.ops.import_scene.gltf(filepath=args[0])
|
|
print("Scene objects:")
|
|
for obj in sorted(bpy.context.scene.objects, key=lambda o: o.name):
|
|
if obj.type == 'MESH':
|
|
print(f" MESH: {obj.name!r} verts={len(obj.data.vertices)} vgroups={len(obj.vertex_groups)}")
|
|
else:
|
|
print(f" {obj.type}: {obj.name!r}")
|