Forum: Poser Python Scripting


Subject: Problem with Poser 5 Compress Files Script

Cage opened this issue on Feb 15, 2005 ยท 8 posts


tromnek posted Sun, 06 March 2005 at 10:26 PM

Here's a modified version. Read the top of the script for details. The changes are basically; Made it able to run in both Poser and native Python. Make sure the drive letter and colon are not stored in the gzip header. Store the original file extension in the gzip header. Made file extension checks more stringent. Extra sanity check before deleting original file. Made path stored in gzip header begin at the first 'Runtime' encountered in path spec. You can change this easily at the bottom of the script.

I compressed a couple gig and it seems to work fine in windows.
Mac users should test it first (could someone check my logic for the Mac OS).