wot-model-converter icon indicating copy to clipboard operation
wot-model-converter copied to clipboard

.dae converter TypeError: 'dict_keys' object is not subscriptable (Python 3.10.3)

Open ClassicsWoTWorkshop opened this issue 2 years ago • 2 comments

Attempting to use the .dae converter (obj converter works without issue, but dae converter is needed to retain animated object skinning) produces the following error message (and does not output a .dae file):

processing Gun_01.primitives_processed position vector count: 6290 position vector count: 1340 position vector count: 3266 position vector count: 3276 Traceback (most recent call last): File "C:\wot-model-converter\convert-primitive.py", line 181, in model_writer.write(tmp, filename_obj, filename_mtl) File "C:\wot-model-converter\wot\ColladaModelWriter.py", line 236, in write sceneRootName = primitive.nodes.keys()[0] TypeError: 'dict_keys' object is not subscriptable

Running latest Python version at the time of writing (3.10.3).

ClassicsWoTWorkshop avatar Mar 17 '22 20:03 ClassicsWoTWorkshop

are you referring to skaceKamen's branch or my branch?

atacms avatar Mar 19 '22 13:03 atacms

Your branch. Sorry, it looks like I posted this issue to the wrong repo...

ClassicsWoTWorkshop avatar Mar 31 '22 07:03 ClassicsWoTWorkshop