subassembly models setup from SDFormat file

This commit is contained in:
brothermechanic 2023-02-08 10:47:54 +03:00
parent 6af0f188a7
commit 95437a4527
No known key found for this signature in database
GPG key ID: BFB3FB14288FAC5E
7 changed files with 145 additions and 14 deletions

View file

@ -14,7 +14,7 @@ from utils.remove_collections import remove_collections
from utils.cleanup_orphan_data import cleanup_orphan_data
from remesh import asset_setup
from export.dae import export_dae
from export.stl import export_stl
from export.collision import export_col_stl
sys.path.append('/home/bm/bin/blender-git/blender_bin') # import blender module
import bpy
@ -31,7 +31,7 @@ def freecad_asset_pipeline(fcstd_path, export_path, tessellation=20):
asset_setup()
bpy.ops.wm.save_as_mainfile(filepath="/home/bm/test.blend")
export_dae(export_path)
export_stl(export_path)
export_col_stl(export_path)
if __name__ == '__main__':