mirror of
https://github.com/OpenFusionProject/scripts.git
synced 2024-11-22 06:00:05 +00:00
Export terrain meshes as FBX instead of OBJ
This commit is contained in:
parent
b70816fa64
commit
c7b4182a4b
@ -128,8 +128,8 @@ def rip_terrain_mesh(f, outpath, clear=False):
|
|||||||
# export
|
# export
|
||||||
bpy.ops.object.select_all(action='SELECT')
|
bpy.ops.object.select_all(action='SELECT')
|
||||||
name = terrainData['m_Name']
|
name = terrainData['m_Name']
|
||||||
outfile = f"{name}.obj"
|
outfile = f"{name}.fbx"
|
||||||
bpy.ops.export_scene.obj(filepath=os.path.join(outpath, outfile))
|
bpy.ops.export_scene.fbx(filepath=os.path.join(outpath, outfile))
|
||||||
|
|
||||||
if(clear):
|
if(clear):
|
||||||
bpy.ops.object.mode_set(mode="OBJECT")
|
bpy.ops.object.mode_set(mode="OBJECT")
|
||||||
|
Loading…
Reference in New Issue
Block a user