File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\makeclothes\core_makeclothes_functionality.py", line 277, in findBestFaces
for polygon in self.humanmesh.vertPolygons[vertIdx]:
KeyError: -1
punkduck wrote:Hi there
According to the line numbers of the traceback it is an early version released approx. in December. I added code after that to work with so-called rigid-groups. When testing it I forgot to assign at least 3 vertices in one case. And I got a similar error.
So I already added code to avoid this error. If the following error would still happen it would be line 322 today, not line 277
- Code: Select all
File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\makeclothes\core_makeclothes_functionality.py", line 277, in findBestFaces
for polygon in self.humanmesh.vertPolygons[vertIdx]:
KeyError: -1
So we have to make sure you use a newer version.
Just to understand the problem:
Blender tries to find the nearest vertex for each vertex of your piece of cloth on the human (or helpers, if you use them). To avoid problems when using helper and body and for more flexibility we don't use the whole geometry of the human. So you have to create at least one group on both objects with vertices assigned.
So "body" must be a group on your human and your clothes then (I would call this group head btw ) . Select the vertices of the head on the human and assign them to "body". Make sure this group on the human is not empty. It must contain at least 3 vertices, but in your case take the whole head except the ears and the inside of the mouth + at least one loop outside of the mask ...
If the error now will appear again with the new line number then I have to fix something. I guess in this case I will need the blend file itself ... because this -1 is a result from the blender internal find_n function of the KD-tree and I don't have an idea what still can go wrong ( )
Users browsing this forum: No registered users and 1 guest