Closed buildxyz-git closed 1 week ago
Issue: Exporting scene as gltf when using python built as a module is very noisy with INFO logging entries.
INFO
I have made changes to ExportGLTF2_Base in: blender/scripts/addons_core/io_scene_gltf2/__init__.py
ExportGLTF2_Base
blender/scripts/addons_core/io_scene_gltf2/__init__.py
changes support setting the log level instead of using the hardcoded INFO value here which produces way to much output when exporting.
ImportGLTF2 already has a pattern for this here so I created a global set_debug_level function they can both use in the same manner.
ImportGLTF2
set_debug_level
The user can now set the log level before exporting by setting bpy.app.debug_value like:
bpy.app.debug_value
bpy.app.debug_value = 2 bpy.ops.export_scene.gltf(...)
This will solve issue 2267
All committers have signed the CLA.
Thanks for the PR I will have a look soon
Merged, thanks!
Issue: Exporting scene as gltf when using python built as a module is very noisy with
INFO
logging entries.I have made changes to
ExportGLTF2_Base
in:blender/scripts/addons_core/io_scene_gltf2/__init__.py
changes support setting the log level instead of using the hardcoded
INFO
value here which produces way to much output when exporting.ImportGLTF2
already has a pattern for this here so I created a globalset_debug_level
function they can both use in the same manner.The user can now set the log level before exporting by setting
bpy.app.debug_value
like:This will solve issue 2267