add blender call with stl auto import.
Signed-off-by: philippe lhardy <philippe@pavilionartlogiciel>
This commit is contained in:
8
blender_import.py
Normal file
8
blender_import.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import sys
|
||||
import bpy
|
||||
|
||||
argv = sys.argv
|
||||
argv = argv[argv.index("--") + 1:] # get all args after "--"
|
||||
|
||||
bpy.ops.import_mesh.stl(filepath=argv[0], filter_glob="*.stl", files="", directory="")
|
||||
|
||||
Reference in New Issue
Block a user