Export Python Script for a .Ski Weapon?

Newbie Spellweaver
Joined
May 13, 2019
Messages
13
Reaction score
0
Hi there,

I been wanting to export some weapon .ski files,
but when i wanted to actually export them, it said
"No Vertices Found'''.. Well something close to that.

I did found a python script, that also wouldnt work Because ( if vertex type ==1:) wasnt working somehow.. Is there any fix to save changes on a .ski file?

the script:

# (assignments later below)

if vertex_type == 1:
file_object.seek(4, 1)
print "vertex_type=1, skipping 4 bytes"

vertex_count = struct.unpack('<I', file_object.read(4))[0]
print "vertex_count:",vertex_count

index_count = struct.unpack('<I', file_object.read(4))[0]
print "index_count(num_faces*3):",index_count

mesh_object = Blender.Object.New('Mesh', ob_name)

mesh = mesh_object.getData(mesh = True)
 
Back