Forum: Poser Python Scripting


Subject: Unzip Poser packages into any directory

adp001 opened this issue on Mar 08, 2020 ยท 50 posts


adp001 posted Sun, 08 March 2020 at 2:31 PM

It has bothered me a lot lately that Poser forces files into its given structure. With a handful of files that might be okay.

I like it when the files of a package are all together in one folder. So that when the folder is removed, all files of the package are gone ("uninstall"). Or that a package can simply be moved from one path to another.

So what could be more obvious than building a script that does just that. All files that do not have any of the defined exceptions (images, obj files, morphs, text files, etc.) are examined - and included path/file information is rewritten if necessary. This way an installed Poserpackage should work from any directory.

Before I release the script to the general public, I need to make sure that everything works reliably and that all cases are considered. Therefore first of all here in a really small circle of people who know how to program themselves and can make suggestions for changes if necessary :)

To underline the test status there is no UI yet. There is only a simple choice for a zipfile to locate and the possibility to specify the path where to unpack (I prefere to write the packagename directly in the script until the UI is ready).

And yes, you can also specify a URL from which the zip-packet should be loaded :)

Feel free to comment, look for error, test for completness!