from pathlib import Path import struct,json,numpy as np b=Path('Demon_v0.19/art/succubus/succubus_v01.glb').read_bytes();n=struct.unpack_from('15:out.append((len(v),np.round(v.min(axis=0),3).tolist(),np.round(v.max(axis=0),3).tolist())) components[str(p['material'])]={'labels':labels.tolist(),'components':sorted(out,reverse=True)} if p['material'] in [3,5,6,10]:print('MAT',p['material'],sorted(out,reverse=True)[:15]) Path('tools/succubus_components.json').write_text(json.dumps(components))