glTF Export Error #66468

Closed
opened 2019-07-05 13:31:37 +02:00 by deepak vijayakumar · 15 comments

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: 50ccbe6bb2
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 error.jpg

**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: `50ccbe6bb2` 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 ![error.jpg](https://archive.blender.org/developer/F7567816/error.jpg)

Added subscriber: @DeepakV

Added subscriber: @DeepakV
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

This comment was removed by @DeepakV

*This comment was removed by @DeepakV*

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

I get these error while exporting to glTF format, but when I copy the mesh object to a new file and export it works.
Julien Duroure was assigned by Philipp Oeser 2019-07-05 14:09:01 +02:00
Member

Added subscriber: @JulienDuroure

Added subscriber: @JulienDuroure
Member

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:

@JulienDuroure: mind checking?

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: ``` @JulienDuroure: mind checking?
Member

I can confirm.

We already have issues in upstream repo that are linked to this issue :

https://github.com/KhronosGroup/glTF-Blender-IO/issues/517
https://github.com/KhronosGroup/glTF-Blender-IO/issues/565

I can confirm. We already have issues in upstream repo that are linked to this issue : https://github.com/KhronosGroup/glTF-Blender-IO/issues/517 https://github.com/KhronosGroup/glTF-Blender-IO/issues/565
Member

@JulienDuroure :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...)?

@JulienDuroure :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...)?
Member

@lichtwerk Thanks for the link, I definitively have a deeper look into it

@lichtwerk Thanks for the link, I definitively have a deeper look into it

Added subscriber: @viadvena

Added subscriber: @viadvena

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: 06312c6d2d

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.

**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: `06312c6d2d` **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.

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

This was fixed in blender/blender-addons@efc92ef.

This was fixed in blender/blender-addons@efc92ef.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#66468
No description provided.