DenSnoychik's picture
Upload 33 files
3a6f70b verified
Raw History Blame Contribute Delete
546 Bytes
import sys,glob
from rbxm import parse
for f in sorted(glob.glob('ref/*.bin')):
inst,props,parent=parse(open(f,'rb').read()); print('==',f)
for r in inst:
if inst[r] in('MeshPart','Folder','WrapTarget','CharacterMesh'):
p=props[r]; par=parent.get(r); pn=props.get(par,{}).get('Name') if par is not None else None
print(inst[r],pn,'/',p.get('Name'),p.get('MeshId'),[round(float(x),4) for x in p.get('InitialSize',())],[round(float(x),4) for x in p['CFrame'][1]] if 'CFrame' in p else '', p.get('BodyPart'))