Forum: Poser Python Scripting


Subject: Flipping Normals

redspark opened this issue on Jun 21, 2020 · 13 posts


adp001 posted Mon, 22 June 2020 at 10:49 AM

This is based on my basic method to manipulate actors/props. Sometimes I use it to exchange UV maps (without the normal-flip part, of corse :) ).

Aa Sidenote: Poser seams tu use float32 internally. But the code is so old, that it just checks for "numpy.float" – earlier this results in float32, now it comes out as float64. The check is done inside AddGeneralMesh. So, if one is using a float32 numpy array, AddGeneralMesh will throw an error, because it checks for numpy.float (not float32 or float64, just float).