Forum: Poser Python Scripting


Subject: Script that fixes vertex order - testers welcome

odf opened this issue on Dec 06, 2021 ยท 14 posts


odf posted Thu, 09 December 2021 at 6:47 PM Online Now!

Here's a quick test and demo of what the tie breaking does. I made five copies of a (slightly beveled) cube in Blender, then moved the leftmost copy all the way to the right and also rotated all the cubes around. The image on the top left shows the initial state, the one on the bottom right the final state.

The top right shows what happens if I load the original export from Blender as a morph target and dial it to 0.5. The bottom left shows the corrected morph target, also at 0.5. The strategy here is to minimize the sum of squared distances travelled by the individual vertices.


-- I'm not mad at you, just Westphalian.