Forum: Poser Python Scripting


Subject: Morphs: copying and mirroring

unrealblue opened this issue on Mar 04, 2020 ยท 30 posts


adp001 posted Sun, 08 March 2020 at 8:41 PM

Don't test the middle actors. Try the arms, legs, fingers, feets.

One has to find the true center inside a bounding-box of an actor. Then part right and left along this center. Sorting this parts, and left[0] should theoretically match right[0]. If the vertices are used like I did above, each namedtuple vertex.idx points to the original position in the array.

If the mesh is not 100% symetrical, one can use bisectLeft() from lib bisect to find matches fast.

(yes, I scripted the bridge)