Download dump.py from DenSnoychik/SonnetMakingNewRobloxRig: direct link, hf CLI and curl.
- Browser
- Download file 546 Bytes
-
https://huggingface.co/datasets/DenSnoychik/SonnetMakingNewRobloxRig/resolve/main/dump.py
- Command line
-
hf download hf://datasets/DenSnoychik/SonnetMakingNewRobloxRig/dump.py
-
curl -L -o dump.py https://huggingface.co/datasets/DenSnoychik/SonnetMakingNewRobloxRig/resolve/main/dump.py
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')) | |