Forum: Poser Python Scripting


Subject: Script that fixes vertex order - testers welcome

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


odf posted Fri, 10 December 2021 at 4:12 PM

I think I'll try putting the type annotations into comments next, so I can have just one version that works with both Python 2 and Python 3, but still can run mypy on it to check the types.

Also, I'm thinking about putting all the code into one big file. Not my preference, but that way it's easier for folks who just want to use it as a script from outside Poser. That would mean though that when it's used from inside Poser, there's a bit of extra code (270 lines, at the moment) that's being loaded in but never used.

In the JavaScript world, I'd keep the files separate for development and run a precompile thingie that bunches them all together into one for deployment, but I'm not sure such a beast exists for Python.

Thoughts?

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