export glb error #104798

Closed
opened 2023-07-30 08:07:22 +02:00 by RedHaloStudio · 3 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 536.67

Blender Version
Broken: version: 4.0.0 Alpha, branch: main, commit date: 2023-07-29 12:20, hash: 52109ff7f0a3
Worked: (newest version of Blender that worked as expected)

Short description of error
Can't export glb

ERROR:

06:03:47 | INFO: Starting glTF 2.0 export
06:03:47 | INFO: Extracting primitive: Suzanne
06:03:47 | INFO: Primitives created: 1
Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\__init__.py", line 853, in execute
    return gltf2_blender_export.save(context, export_settings)
  File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 36, in save
    json, buffer = __export(export_settings)
  File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 53, in __export
    __gather_gltf(exporter, export_settings)
  File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 67, in __gather_gltf
    active_scene_idx, scenes, animations = gltf2_blender_gather.gather_gltf2(export_settings)
  File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather.py", line 29, in gather_gltf2
    scenes.append(__gather_scene(blender_scene, export_settings))
  File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_cache.py", line 36, in wrapper_cached
    result = func(*args, **kwargs)
  File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather.py", line 70, in __gather_scene
    node = gltf2_blender_gather_nodes.gather_node(
  File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_nodes.py", line 35, in gather_node
    mesh=__gather_mesh(vnode, blender_object, export_settings),
  File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_nodes.py", line 243, in __gather_mesh
    result = gltf2_blender_gather_mesh.gather_mesh(blender_mesh,
  File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_cache.py", line 36, in wrapper_cached
    result = func(*args, **kwargs)
  File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_mesh.py", line 58, in gather_mesh
    primitives=__gather_primitives(blender_mesh, uuid_for_skined_data, vertex_groups, modifiers, materials, export_settings),
  File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_mesh.py", line 135, in __gather_primitives
    return gltf2_blender_gather_primitives.gather_primitives(blender_mesh,
  File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_cache.py", line 36, in wrapper_cached
    result = func(*args, **kwargs)
  File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_primitives.py", line 78, in gather_primitives
    material = gltf2_blender_gather_materials.gather_material(
  File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_cache.py", line 36, in wrapper_cached
    result = func(*args, **kwargs)
  File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\material\gltf2_blender_gather_materials.py", line 59, in gather_material
    extensions, uvmap_actives_extensions = __gather_extensions(blender_material, emissive_factor, export_settings)
  File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\material\gltf2_blender_gather_materials.py", line 263, in __gather_extensions
    sheen_extension, use_actives_uvmap_sheen = export_sheen(blender_material, export_settings)
  File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\material\extensions\gltf2_blender_gather_materials_sheen.py", line 14, in export_sheen
    sheenColor_socket = gltf2_blender_get.get_socket(blender_material, "sheenColor")
  File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_get.py", line 75, in get_socket
    return get_node_socket(blender_material, bpy.types.ShaderNodeBsdfVelvet, "Color")
AttributeError: 'module' object has no attribute 'ShaderNodeBsdfVelvet'

Exact steps for others to reproduce the error

  1. Add any mesh object
  2. assgin any material
  3. export
**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 536.67 **Blender Version** Broken: version: 4.0.0 Alpha, branch: main, commit date: 2023-07-29 12:20, hash: `52109ff7f0a3` Worked: (newest version of Blender that worked as expected) **Short description of error** Can't export glb ### ERROR: ``` 06:03:47 | INFO: Starting glTF 2.0 export 06:03:47 | INFO: Extracting primitive: Suzanne 06:03:47 | INFO: Primitives created: 1 Traceback (most recent call last): File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\__init__.py", line 853, in execute return gltf2_blender_export.save(context, export_settings) File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 36, in save json, buffer = __export(export_settings) File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 53, in __export __gather_gltf(exporter, export_settings) File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 67, in __gather_gltf active_scene_idx, scenes, animations = gltf2_blender_gather.gather_gltf2(export_settings) File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather.py", line 29, in gather_gltf2 scenes.append(__gather_scene(blender_scene, export_settings)) File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_cache.py", line 36, in wrapper_cached result = func(*args, **kwargs) File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather.py", line 70, in __gather_scene node = gltf2_blender_gather_nodes.gather_node( File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_nodes.py", line 35, in gather_node mesh=__gather_mesh(vnode, blender_object, export_settings), File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_nodes.py", line 243, in __gather_mesh result = gltf2_blender_gather_mesh.gather_mesh(blender_mesh, File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_cache.py", line 36, in wrapper_cached result = func(*args, **kwargs) File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_mesh.py", line 58, in gather_mesh primitives=__gather_primitives(blender_mesh, uuid_for_skined_data, vertex_groups, modifiers, materials, export_settings), File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_mesh.py", line 135, in __gather_primitives return gltf2_blender_gather_primitives.gather_primitives(blender_mesh, File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_cache.py", line 36, in wrapper_cached result = func(*args, **kwargs) File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_primitives.py", line 78, in gather_primitives material = gltf2_blender_gather_materials.gather_material( File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_cache.py", line 36, in wrapper_cached result = func(*args, **kwargs) File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\material\gltf2_blender_gather_materials.py", line 59, in gather_material extensions, uvmap_actives_extensions = __gather_extensions(blender_material, emissive_factor, export_settings) File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\material\gltf2_blender_gather_materials.py", line 263, in __gather_extensions sheen_extension, use_actives_uvmap_sheen = export_sheen(blender_material, export_settings) File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\material\extensions\gltf2_blender_gather_materials_sheen.py", line 14, in export_sheen sheenColor_socket = gltf2_blender_get.get_socket(blender_material, "sheenColor") File "C:\Program Files\Blender Foundation\blender 4.0\4.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_get.py", line 75, in get_socket return get_node_socket(blender_material, bpy.types.ShaderNodeBsdfVelvet, "Color") AttributeError: 'module' object has no attribute 'ShaderNodeBsdfVelvet' ``` **Exact steps for others to reproduce the error** 1. Add any mesh object 2. assgin any material 3. export
RedHaloStudio added the
Priority
Normal
Status
Needs Triage
Type
Report
labels 2023-07-30 08:07:23 +02:00
Member

Can confirm. cc @JulienDuroure may want to take a look?

Exporting default cube with material would cause this.

Can confirm. cc @JulienDuroure may want to take a look? Exporting default cube with material would cause this.
YimingWu added
Status
Confirmed
Interest
Pipeline, Assets & IO
and removed
Status
Needs Triage
labels 2023-07-30 15:09:23 +02:00
Julien Duroure self-assigned this 2023-07-30 15:44:40 +02:00
Member

Exporter need changes after recent Sheen changes (part of Principled v2).
I am curently out of office, I will take care of it in 2 weeks

Exporter need changes after recent Sheen changes (part of Principled v2). I am curently out of office, I will take care of it in 2 weeks
Germano Cavalcante added the
Module
Add-ons (BF-Blender)
label 2023-08-02 20:58:26 +02:00
Member

Fixed by 288a5429d0

Fixed by 288a5429d031a2d89d7b77d0b506512f8f2e603b
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-08-07 18:34:28 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 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-addons#104798
No description provided.