mirror of
https://github.com/OpenFusionProject/scripts.git
synced 2025-10-21 14:40:19 +00:00
Export as OBJ
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user