Page MenuHome

glTF Export Error
Closed, ResolvedPublic

Description

System Information
Operating system: Windows-8.1-6.3.9600 64 Bits
Graphics card: GeForce GTX 960/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 425.31

Blender Version
Broken: version: 2.80 (sub 74), branch: master, commit date: 2019-07-02 22:33, hash: rB50ccbe6bb233
Worked: (optional)

Short description of error
While exporting to glTF showing an error.

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]
Select a mesh Object >File> Export>glTF(.glb/.gltf).Showing Error. Please see the attached image

Event Timeline

Philipp Oeser (lichtwerk) lowered the priority of this task from 90 to 30.Jul 5 2019, 1:34 PM

Mind sharing the .blend you are trying to export from?

I get these error while exporting to glTF format, but when I copy the mesh object to a new file and export it works.

Philipp Oeser (lichtwerk) raised the priority of this task from 30 to 50.

Can confirm if I have the Selected Objects option ON and there are objects in a collection which is excluded from the view layer

The exporter checks .select_get() here [which throws the error for objects not in the view layer]

if export_settings[gltf2_blender_export_keys.SELECTED] and blender_object.select_get() is False:

@Julien DUROURE (julien): mind checking?

@Julien DUROURE (julien) :not 100% sure about this, and I am not sure how this suites design of the exporter, but instead of going over scene.objects (like in __gather_scene) you could use code from https://docs.blender.org/api/master/bpy.types.Depsgraph.html#dependency-graph-simple-exporter to get selected stuff to export safely (just a thought...)?

@Philipp Oeser (lichtwerk) Thanks for the link, I definitively have a deeper look into it

System Information
Operating system: Linux-4.15.0-54-generic-x86_64-with-debian-stretch-sid 64 Bits
Graphics card: GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 418.56

Blender Version
Broken: version: 2.80 (sub 74), branch: master, commit date: 2019-07-11 13:50, hash: rB06312c6d2db8

Exactly same problem I want to emphasize that I choose an option Selection Only.
This problem is also found in addons when you trying to export selected object. Instant Meshes Remesh as an example.