PDA

View Full Version : Iterating through all the verts in a scene



akaitora
04-18-2011, 08:05 AM
Hi. I am new to LScript. I read through the user guide which was very helpful. However, I want to write an exporter and I can't seem to figure out how to iterate through all the verts in a scene. I would like to see an example of iteration through verts as well as objects in a scene. Any help or hints would be appreciated! Thanks in advance!

evenflcw
04-18-2011, 09:51 AM
Something like...

obj = Mesh();
while(obj) {
for(i=1; i<=obj.pointCount(); i++) {
point=obj.points[i];
}
obj=obj.next();
}