add blender call with stl auto import.

Signed-off-by: philippe lhardy <philippe@pavilionartlogiciel>
This commit is contained in:
philippe lhardy
2015-02-21 21:51:48 +01:00
parent 0b33e56e0a
commit 4a8d555ad4
3 changed files with 79 additions and 2 deletions

8
blender_import.py Normal file
View 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="")