Ridley5 opened this issue on Jul 26, 2010 · 1724 posts
odf posted Fri, 27 August 2010 at 9:19 PM Online Now!
Quote - I get the following error in unimesh.py:
nr_tpolys = sum([len(actor.Geometry().TexPolygons())
TypeError: len() of unsized objectI fixed that for me by changing lines 106-109 like this:
nr_polys = sum([len(actor.Geometry().Polygons()) for actor in actors if actor.Geometry().Polygons() and actor.Geometry().TexPolygons()]) nr_tpolys = sum([len(actor.Geometry().TexPolygons()) for actor in actors if actor.Geometry().Polygons() and actor.Geometry().TexPolygons()])
and adding the following after line 125: if not geom.Polygons() or not geom.TexPolygons(): continue
Hi Dizzi,
Thanks for the tip! I think I will still want to export the geometry, though, even if its UV mapping is missing or incomplete.
Do you have a figure I could test this on or instructions on how to create one? I have a feeling that just removing the UVs from the .obj file would not be enough.
Edit: Oops! Sorry for posting in an abandoned threat. It will happen again.
-- I'm not mad at you, just Westphalian.