Newbie: Bad Blender mesh - KeyError in writeSkinWeights

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
centipede
Posts: 16
Joined: Sat Feb 18, 2006 6:35 pm

Newbie: Bad Blender mesh - KeyError in writeSkinWeights

Post by centipede »

I'm a brand new user of Irrlicht and think it's a little wonder. However I'm having problems exporting the following mesh, and I hope somebody could help me out...

http://artcamilla.dk/centipede/vaultage ... _237.blend
..And this is how far the exporter got before it stopped:
http://artcamilla.dk/centipede/vaultage ... s/humans.x

I am using Jox's directxmod exporter v. 1.3.2 and blender 2.37a. This is the error it prints:

Code: Select all

Traceback (most recent call last):
File "<string>", line 1547, in ?
File "<string>", line 1481, in my_callback
File "<string>", line 577, in writeRootBone
File "<string>", line 509, in exportMesh
File "<string>", line 764, in writeSkinWeights
KeyError: 88
There is a mesh and an armature.

Any help would be wildly appreciated!

Sincerely Rene Jensen
Baal Cadar
Posts: 377
Joined: Fri Oct 28, 2005 10:28 am
Contact:

Post by Baal Cadar »

I didn't look at your blend file, but my guess is, that you left at least one vertex without a bone assignment. Make sure, that each vertex is at least in one vertex group assigned to a bone.
centipede
Posts: 16
Joined: Sat Feb 18, 2006 6:35 pm

Post by centipede »

Still got the error even though I have selected all vertices and assigned to the 'torso' vertex group, which would make some of them belonging to two groups. But thanks for the hint :)

EDIT: One point worth noticing is that I added the bone 'torso' after I had parented the armature to the mesh (because of another script error actually).
centipede
Posts: 16
Joined: Sat Feb 18, 2006 6:35 pm

Post by centipede »

GOT IT! There's a little vertex right in between the lips, and a couple of edges attached to it. Adding a few additional print clauses in the script helped me catch it. Sorry for alarming people.
Post Reply