Forum: Poser Python Scripting


Subject: Exporting posed and premorphed figure to modeller

adp001 opened this issue on Nov 28, 2020 ยท 36 posts


adp001 posted Sat, 28 November 2020 at 3:16 AM

Explanation:

Function used_list() creates an array of the length of the vertices in the geometry, initialized with zeros. Then the polygons returned by Poser in UniMesh are scanned and the array is set to 1 where a polygon actually uses a vertex. Not used indices are later skipped (vertices not written).

Function crosslist() now uses this list instead of checking vertices for [0.0, 0.0, 0.0]. This caused problems if a polygon actually used [0.0, 0.0, 0.0].