Export as OBJ

This commit is contained in:
gsemaj 2023-07-20 14:27:39 -04:00
parent 131297552e
commit 20d5f6231c
No known key found for this signature in database
GPG Key ID: 24B96BAA40497929

View File

@ -77,8 +77,8 @@ def rip_terrain_mesh(f, outpath):
bpy.ops.object.mode_set(mode="OBJECT")
bpy.ops.object.select_all(action='SELECT')
name = terrainData['m_Name']
outfile = f"{name}.fbx"
bpy.ops.export_scene.fbx(filepath=os.path.join(outpath, outfile))
outfile = f"{name}.obj"
bpy.ops.export_scene.obj(filepath=os.path.join(outpath, outfile))
# select modified vertices
#bpy.ops.object.mode_set(mode="EDIT")