Commit | Line | Data |
---|---|---|
807c4e10 FC |
1 | import sys, os |
2 | try: | |
3 | import bpy | |
8ee66edd | 4 | |
807c4e10 FC |
5 | |
6 | filepath = os.path.abspath(sys.argv[-1]) | |
7 | bpy.ops.export_scene.gltf( | |
8 | filepath=filepath, | |
9 | export_format='GLTF_SEPARATE', | |
10 | export_extras=True, | |
11 | export_tangents=True, | |
12 | use_selection=True) | |
13 | except ModuleNotFoundError: | |
14 | print('bpy can be used only from blender') |