LaurieA opened this issue on Mar 01, 2011 · 182 posts
Snarlygribbly posted Tue, 22 March 2011 at 5:25 AM
Quote - I seem to remember fixing some UV-related problems in pydough back in the day, so I'm a bit surprised at this. I'll go and check, but I have no idea if the pydough-code within Pose2Lux is in sync with what I have up on github.
At any rate, it would be great if I could get my hands on that wine glass for testing.
Hi ODF,
I've made very few changes to the pydough code. The changes have primarily been to expand the call back mechanism to allow me to write out data for volumes and portals. I've not changed any of the actual geometry code - it has been working so wonderfully well that there has been no need to!
The error is occurring within the SimpleMesh class definition:
tgrab = lambda p, sets: sets[p.Start() : p.Start() + p.NumTexVertices()]
This line fails because in LatexLuv's scene 'sets' is unsubscriptable, having been called from the line:
self.tpolys = [tgrab(p, tsets) for p in tpolys]
Without the wine glass for testing, I'm guessing that tsets = None for this object?
As I mentioned before, you're very welcome to have a copy of the pose2lux source code for reference, should it be of any interest to you.
Free stuff @ https://poser.cobrablade.net/