Page 1 of 1

IndexError: list index out of range

Posted: Sun Feb 05, 2012 7:59 pm
by mandoman
Will someone please tell me what this is about? I just redid one of my ships, and when I went to change the .obj to DatTex, this is the message I received.

Code: Select all

python Obj2DatTex.py sunbat_redux.obj
converting...
['sunbat_redux.obj']
sunbat_redux.obj->sunbat_redux.dat
going to open material library file: sunbat_redux.mtl
Material _sunbatredux.png -> sunbatredux.png
Traceback (most recent call last):
  File "Obj2DatTex.py", line 125, in <module>
    textureName = tokens[1]
IndexError: list index out of range
I've opened the .obj file, and the .mtl file, but don't seem to understand to what this is referring. I'm using Ubuntu 10.10 on a Dell 64bit system. Thanks ahead.

Re: IndexError: list index out of range

Posted: Sun Feb 05, 2012 8:07 pm
by mandoman
Never mind, I got it, but I'm still not sure why that happened at first. All I did was dump the .obj, and .mtl files, reopen Blender, re-export, and ran it through Terminal again, and it worked. Go figure. :roll: