Failure importing x3d file #102384

Closed
opened 2022-11-09 16:01:34 +01:00 by Mark Blair · 7 comments

System Information
Operating system: Windows 10 & 11
Graphics card: NVIDIA T600 Laptop GPU

Blender Version
Broken: 2.9.3, 3.2.2, 3.3.0
Worked: Unknown

Short description of error
Importing file results in error:

RuntimeError: Error: Python: Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender\3.3\scripts\addons\io_scene_x3d\__init__.py", line 60, in execute
    return import_x3d.load(context, **keywords)
  File "C:\Program Files\Blender Foundation\Blender\3.3\scripts\addons\io_scene_x3d\import_x3d.py", line 3635, in load
    load_web3d(context, filepath,
  File "C:\Program Files\Blender Foundation\Blender\3.3\scripts\addons\io_scene_x3d\import_x3d.py", line 3534, in load_web3d
    importShape(bpycollection, node, ancestry, global_matrix)
  File "C:\Program Files\Blender Foundation\Blender\3.3\scripts\addons\io_scene_x3d\import_x3d.py", line 3133, in importShape
    tex_has_alpha) = importShape_LoadAppearance(vrmlname, appr,
  File "C:\Program Files\Blender Foundation\Blender\3.3\scripts\addons\io_scene_x3d\import_x3d.py", line 2961, in importShape_LoadAppearance
    (bpymat, bpyima, tex_has_alpha) = appearance_Create(vrmlname, material, tex_node, ancestry, node, is_vcol)
  File "C:\Program Files\Blender Foundation\Blender\3.3\scripts\addons\io_scene_x3d\import_x3d.py", line 2872, in appearance_Create
    bpymat_wrap = appearance_CreateDefaultMaterial()
  File "C:\Program Files\Blender Foundation\Blender\3.3\scripts\addons\io_scene_x3d\import_x3d.py", line 2741, in appearance_CreateDefaultMaterial
    bpymat_wrap.base_color = (0.8, 0.8, 0.8, 1.0)
  File "C:\Program Files\Blender Foundation\Blender\3.3\scripts\modules\bpy_extras\node_shader_utils.py", line 18, in wrapper
    return func(self, *args, **kwargs)
  File "C:\Program Files\Blender Foundation\Blender\3.3\scripts\modules\bpy_extras\node_shader_utils.py", line 259, in base_color_set
    self.material.diffuse_color = color
ValueError: bpy_struct: item.attr = val: sequences of dimension 0 should contain 4 items, not 5
Location: C:\Program Files\Blender Foundation\Blender\3.3\scripts\modules\bpy\ops.py:113

Exact steps for others to reproduce the error
modifidWRL.x3d

Import the file.

**System Information** Operating system: Windows 10 & 11 Graphics card: NVIDIA T600 Laptop GPU **Blender Version** Broken: 2.9.3, 3.2.2, 3.3.0 Worked: Unknown **Short description of error** Importing file results in error: ``` RuntimeError: Error: Python: Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender\3.3\scripts\addons\io_scene_x3d\__init__.py", line 60, in execute return import_x3d.load(context, **keywords) File "C:\Program Files\Blender Foundation\Blender\3.3\scripts\addons\io_scene_x3d\import_x3d.py", line 3635, in load load_web3d(context, filepath, File "C:\Program Files\Blender Foundation\Blender\3.3\scripts\addons\io_scene_x3d\import_x3d.py", line 3534, in load_web3d importShape(bpycollection, node, ancestry, global_matrix) File "C:\Program Files\Blender Foundation\Blender\3.3\scripts\addons\io_scene_x3d\import_x3d.py", line 3133, in importShape tex_has_alpha) = importShape_LoadAppearance(vrmlname, appr, File "C:\Program Files\Blender Foundation\Blender\3.3\scripts\addons\io_scene_x3d\import_x3d.py", line 2961, in importShape_LoadAppearance (bpymat, bpyima, tex_has_alpha) = appearance_Create(vrmlname, material, tex_node, ancestry, node, is_vcol) File "C:\Program Files\Blender Foundation\Blender\3.3\scripts\addons\io_scene_x3d\import_x3d.py", line 2872, in appearance_Create bpymat_wrap = appearance_CreateDefaultMaterial() File "C:\Program Files\Blender Foundation\Blender\3.3\scripts\addons\io_scene_x3d\import_x3d.py", line 2741, in appearance_CreateDefaultMaterial bpymat_wrap.base_color = (0.8, 0.8, 0.8, 1.0) File "C:\Program Files\Blender Foundation\Blender\3.3\scripts\modules\bpy_extras\node_shader_utils.py", line 18, in wrapper return func(self, *args, **kwargs) File "C:\Program Files\Blender Foundation\Blender\3.3\scripts\modules\bpy_extras\node_shader_utils.py", line 259, in base_color_set self.material.diffuse_color = color ValueError: bpy_struct: item.attr = val: sequences of dimension 0 should contain 4 items, not 5 Location: C:\Program Files\Blender Foundation\Blender\3.3\scripts\modules\bpy\ops.py:113 ``` **Exact steps for others to reproduce the error** [modifidWRL.x3d](https://archive.blender.org/developer/F13876219/modifidWRL.x3d) Import the file.
Author

Added subscriber: @Mark-Blair

Added subscriber: @Mark-Blair
Richard Antalik changed title from Failure importing x3d file: ValueError: bpy_struct: item.attr = val: sequences of dimension 0 should contain 4 items, not 5 to Failure importing x3d file 2022-11-09 20:41:54 +01:00

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Author

Was searching bugs and came across this one that looks very closely related:
https://developer.blender.org/T95455

Was searching bugs and came across this one that looks very closely related: https://developer.blender.org/T95455
Author
Submitted https://developer.blender.org/D16453
Mark Blair self-assigned this 2022-11-10 19:21:18 +01:00

This issue was referenced by 57aafe573a

This issue was referenced by 57aafe573af9fa2019db979e7ade11aec79ca6f9

This issue was referenced by 93f61d1ef7

This issue was referenced by 93f61d1ef75ce341f3789df9c7ea4cc0352a2fe4

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 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#102384
No description provided.