## BEZ v0 ## import bpy import os pts = bpy.data.curves[0].splines[0].points nkey = len(pts) with open('C:\\Documents and Settings\\sveeion\\Desktop\\a.bez', 'wb') as f: f.write(nkey.to_bytes(4, byteorder='little', signed=False)) for k in pts: x = (-int( round(k.co[0]*4096, 0) )).to_bytes(4, byteorder='little', signed=True) y = (-int( round(k.co[2]*4096, 0) )).to_bytes(4, byteorder='little', signed=True) z = (-int( round(k.co[1]*4096, 0) )).to_bytes(4, byteorder='little', signed=True) f.write(x+y+z) #print('(%d, %d, %d)\n' % (-v[0], -v[2], -v[1]))