KhronosGroup / glTF-Blender-IO

Blender glTF 2.0 importer and exporter
https://docs.blender.org/manual/en/latest/addons/import_export/scene_gltf2.html
Apache License 2.0
1.48k stars 316 forks source link

Exporting a specific scene using python #2280

Open marwie opened 2 months ago

marwie commented 2 months ago

Is your feature request related to a problem? Please describe. When invoking glTF export programmatically from an operator (e.g. via a button click) doesn't allow to change the active scene.

E.g. setting window.scene does not have an effect since currently the blender glTF exporter uses bpy.context.scene which is a readonly property.

Describe the solution you'd like One of the following:

Additional context This is an issue when trying to export multiple scenes/glTF files from blender (but not all scenes in a blend file)

julienduroure commented 2 months ago

Hello, Also linked to #1961 #2133