Mercurial > games > semicongine
diff tools/blender_gltf_converter.py @ 1342:34ae5835bfa8
add: a few static helpers
author | sam <sam@basx.dev> |
---|---|
date | Mon, 26 Aug 2024 18:51:25 +0700 |
parents | 295cf32f883d |
children |
line wrap: on
line diff
--- a/tools/blender_gltf_converter.py Sat Aug 24 23:03:19 2024 +0700 +++ b/tools/blender_gltf_converter.py Mon Aug 26 18:51:25 2024 +0700 @@ -17,7 +17,15 @@ quit(1) bpy.ops.wm.open_mainfile(filepath=inputfile) - bpy.ops.export_scene.gltf(filepath=outputfile[:-4], export_apply=True) + bpy.ops.export_scene.gltf( + filepath=outputfile[:-4], + export_apply=True, + export_yup=True, + check_existing=False, + export_image_format="AUTO", + export_format="GLB", + export_materials="EXPORT", + ) if __name__ == "__main__":