IndexError: list index out of range

For discussion of ports to POSIX based systems, especially using GNUStep.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
mandoman
---- E L I T E ----
---- E L I T E ----
Posts: 1385
Joined: Thu Apr 28, 2011 3:17 pm

IndexError: list index out of range

Post 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.
Mandotech Industries Wiki Page.

http://wiki.alioth.net/index.php/User:Mandoman
User avatar
mandoman
---- E L I T E ----
---- E L I T E ----
Posts: 1385
Joined: Thu Apr 28, 2011 3:17 pm

Re: IndexError: list index out of range

Post 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:
Mandotech Industries Wiki Page.

http://wiki.alioth.net/index.php/User:Mandoman
Post Reply