SkaceKamen / wot-model-converter

Converts World of Tanks models to wavefront obj format.
35 stars 16 forks source link

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

Open ClassicsWoTWorkshop opened 2 years ago

ClassicsWoTWorkshop commented 2 years ago

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).

atacms commented 2 years ago

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

ClassicsWoTWorkshop commented 2 years ago

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