- 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
912 B
Python
21 lines
912 B
Python
"""List all objects in a Quaternius .blend file."""
|
|
import sys, bpy
|
|
|
|
if __name__ == "__main__":
|
|
argv = sys.argv
|
|
args = argv[argv.index("--") + 1:]
|
|
bpy.ops.wm.open_mainfile(filepath=args[0])
|
|
|
|
print("\nAll scene objects:")
|
|
for o in sorted(bpy.context.scene.objects, key=lambda x: x.name):
|
|
parent_info = f" (parent: {o.parent.name}" + (f", bone: {o.parent_bone}" if o.parent_bone else "") + ")" if o.parent else ""
|
|
verts = f", {len(o.data.vertices)} verts" if o.type == 'MESH' else ""
|
|
loc = tuple(round(v, 3) for v in o.matrix_world.translation)
|
|
print(f" {o.name:30s} type={o.type:10s} loc={loc}{verts}{parent_info}")
|
|
|
|
arm = next((o for o in bpy.context.scene.objects if o.type == 'ARMATURE'), None)
|
|
if arm:
|
|
head_bone = arm.data.bones.get('Head')
|
|
if head_bone:
|
|
print(f"\nHead bone top: z={round(head_bone.tail_local[2], 4)}")
|