WRL import Extrusion not working: list index out of range #29

Closed
opened 2024-10-24 23:59:01 +02:00 by Cedric Steiert · 1 comment
Collaborator

Importing attached wrl file with extrusion geo results in this error:

Python: Traceback (most recent call last):
  File "__init__.py", line 85, in execute
    return import_x3d.load(context, **keywords)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "import_x3d.py", line 3765, in load
    load_web3d(context, filepath,
  File "import_x3d.py", line 3663, in load_web3d
    importShape(bpycollection, node, ancestry, global_matrix)
  File "import_x3d.py", line 3261, in importShape
    bpydata = geom_fn(geom, ancestry)
              ^^^^^^^^^^^^^^^^^^^^^^^
  File "import_x3d.py", line 2336, in importMesh_Extrusion
    mscale = scale[i] if len(scale) > 1 else scale[0]
             ~~~~~^^^
IndexError: list index out of range

https://graphcomp.com/info/specs/sgi/vrml/spec/part1/nodesRef.html#Extrusion

Should look somewhat like this:
grafik
grafik

Importing attached wrl file with extrusion geo results in this error: ``` Python: Traceback (most recent call last): File "__init__.py", line 85, in execute return import_x3d.load(context, **keywords) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "import_x3d.py", line 3765, in load load_web3d(context, filepath, File "import_x3d.py", line 3663, in load_web3d importShape(bpycollection, node, ancestry, global_matrix) File "import_x3d.py", line 3261, in importShape bpydata = geom_fn(geom, ancestry) ^^^^^^^^^^^^^^^^^^^^^^^ File "import_x3d.py", line 2336, in importMesh_Extrusion mscale = scale[i] if len(scale) > 1 else scale[0] ~~~~~^^^ IndexError: list index out of range ``` https://graphcomp.com/info/specs/sgi/vrml/spec/part1/nodesRef.html#Extrusion Should look somewhat like this: ![grafik](/attachments/1786e7b7-9b18-4738-a26d-2f276f73cd07) ![grafik](/attachments/08542436-5238-4810-bf84-40fd8424c5f6)
Cedric Steiert added the
Normal
bug
confirmed
labels 2024-10-24 23:59:02 +02:00
Author
Collaborator

Now works as expected:
grafik

Now works as expected: ![grafik](/attachments/ea34b8fc-1adb-47ce-8582-4f704a0e0d4a)
158 KiB
Sign in to join this conversation.
No description provided.