convert_blend_to_obj.py 196 B

12345678910
  1. import bpy
  2. import sys
  3. argv = sys.argv
  4. argv = argv[argv.index("--") + 1:] # get all args after "--"
  5. obj_out = argv[0]
  6. bpy.ops.export_scene.obj(filepath=obj_out, axis_forward='-Z', axis_up='Y')