View Full Version : layout/lscript and poly. materials [help for a rib exporter]

02-26-2004, 09:24 AM
I'm writing a rib exporter prototype in lscript. The problem that I have is that I have to iterate over polygons in material order (sorted by material). I think this is not possible to do, so I use a Mesh object and loop through Mesh.polygons[], but those are integers, not Polygon classes so I don't know how to check which material is attacched to each of them. Please help...