Fri, Jan 10, 5:21 AM CST

Renderosity Forums / Poser Python Scripting



Welcome to the Poser Python Scripting Forum

Forum Moderators: Staff

Poser Python Scripting F.A.Q (Last Updated: 2024 Dec 02 3:16 pm)

We now have a ProPack Section in the Poser FreeStuff.
Check out the new Poser Python Wish List thread. If you have an idea for a script, jot it down and maybe someone can write it. If you're looking to write a script, check out this thread for useful suggestions.

Also, check out the official Python site for interpreters, sample code, applications, cool links and debuggers. This is THE central site for Python.

You can now attach text files to your posts to pass around scripts. Just attach the script as a txt file like you would a jpg or gif. Since the forum will use a random name for the file in the link, you should give instructions on what the file name should be and where to install it. Its a good idea to usually put that info right in the script file as well.

Checkout the Renderosity MarketPlace - Your source for digital art content!



Subject: Can someone fix script


pack ( ) posted Sat, 11 August 2001 at 1:36 PM · edited Fri, 10 January 2025 at 5:02 AM

Sorry if this is too easy or dumb, but there is a very useful script which compresses all cr2 & pz3 files but not PZ3 (caps) or CR2. Can someone add this please (compresses cap'ed extension)? C:Program FilesMetaCreationsPoser 4RuntimePythonposerScriptsUtilityCompressPoserfiles.py


Mason ( ) posted Fri, 17 August 2001 at 7:09 PM

file_200968.jpg

Attached is a txt file which is the compressposerfiles.py script with the fix. Just change the extension to py and put it where the compress script is located. It forces the file names to lower case upon inspecting the file name. I tried it on a mixed case directory and it works.


Mason ( ) posted Fri, 17 August 2001 at 7:10 PM

sorry, you'll also have to rename it to CompressPoserfiles.py instead of message378938.txt


pack ( ) posted Sat, 18 August 2001 at 10:51 PM

Mason, Ummm, I seem to have found an ugly bug in this script. It deleted the PZ3 file, without creating a pzz file. This is not good, as those were my only copies-= It compressed them alright- into completely gone.. here is the script feedback window message: Looking under directory: E:Poser 4ProjectsAnimania_Dog(Poser)Motions (.pz3) ------ --> dog_beg.pz3 *** E:Poser 4ProjectsAnimania_Dog(Poser)Motions (.pz3)dog_beg.pz3 *** --> E:Poser 4ProjectsAnimania_Dog(Poser)Motions (.pzz ( E:Poser 4ProjectsAnimania_Dog(Poser)Motions (.pz3)dog_beg.pz3 deleted) --> dog_jump.pz3 *** E:Poser 4ProjectsAnimania_Dog(Poser)Motions (.pz3)dog_jump.pz3 *** --> E:Poser 4ProjectsAnimania_Dog(Poser)Motions (.pzz ( E:Poser 4ProjectsAnimania_Dog(Poser)Motions (.pz3)dog_jump.pz3 deleted) --> dog_lie.pz3 *** E:Poser 4ProjectsAnimania_Dog(Poser)Motions (.pz3)dog_lie.pz3 *** --> E:Poser 4ProjectsAnimania_Dog(Poser)Motions (.pzz ( E:Poser 4ProjectsAnimania_Dog(Poser)Motions (.pz3)dog_lie.pz3 deleted) --> dog_run.pz3 *** E:Poser 4ProjectsAnimania_Dog(Poser)Motions (.pz3)dog_run.pz3 *** --> E:Poser 4ProjectsAnimania_Dog(Poser)Motions (.pzz ( E:Poser 4ProjectsAnimania_Dog(Poser)Motions (.pz3)dog_run.pz3 deleted) --> dog_sit.pz3 *** E:Poser 4ProjectsAnimania_Dog(Poser)Motions (.pz3)dog_sit.pz3 *** --> E:Poser 4ProjectsAnimania_Dog(Poser)Motions (.pzz ( E:Poser 4ProjectsAnimania_Dog(Poser)Motions (.pz3)dog_sit.pz3 deleted) --> dog_beg.bvh


pack ( ) posted Sat, 18 August 2001 at 11:06 PM

Disaster averted- I recreated the deleted pz3's that I know were deleted , as I bought them & unzipped the orig again. They were in 3 different folders, & all pz3 in the 3 folders were deleted, with no pzz created.. None of the others seem to have this problem, & I have hundreds of files- most of them were already compressed from the original python script. I don't know what to say- very strange indeed. I still appreciate your help. Could be a one time fluke, possibly.


Mason ( ) posted Mon, 20 August 2001 at 10:56 PM

Geez, that scared me. Sorry about that. I tried the script on my own files without a problem. All I did was add a line to lower case the file name when it did the compare. Sorry for any inconvienence. You might try marking files read-only before running the script. I didn't think the script deleted anything at all. I ended up with pz3 and pzz files with the same name with no deletion.


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.