Mon, Nov 25, 1:32 PM 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 Sep 18 2:50 am)

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: pz3 format parser


mamba-negra ( ) posted Tue, 16 August 2011 at 11:03 PM · edited Mon, 25 November 2024 at 1:30 PM

I was thinking that I had seen a script that functioned as a pz3 parser that would save you from having to cache all of the details if you were then going to manipulate the file and save it back out.

Is this true, or am I imagining things? If I'm not insane...could someone point me in the right direction?

thanks!


markschum ( ) posted Tue, 16 August 2011 at 11:46 PM

There was a parser in freestuff. I never tried it so cant comment.

http://www.renderosity.com/mod/freestuff/details.php?item_id=47285


gishzida ( ) posted Wed, 17 August 2011 at 3:26 AM

What kinds of manipulations were you thinking of doing after the file was parsed?


mamba-negra ( ) posted Wed, 17 August 2011 at 7:14 AM

Well, for the most part, just drop stuff (namely those dials set to zero) from pose files. But, I can see some other more sophisticated stuff later on. It's not hard to write, but it would take some time to do a relatively complete job. 


gishzida ( ) posted Wed, 17 August 2011 at 11:52 PM · edited Thu, 18 August 2011 at 12:05 AM

go visit Ockham's Poser Python Bungalow HERE  -- He's got a whole bunch of things that do that kind of thing... it is also a good resource to look in Rendo's freebies for Scripts there are other's that have free scripts up on the WWW... a quick look on Google will find others...

The parser library is probably overkill (though if you already have C++ programming skills then it's no big deal...)

A script whether internal of external to Poser is better than manually doing things... for example I just spent several hours converting RDNA's V3 skin tone shader PZ2s for use with BVH's Angela 3... It would have gone a lot faster with a script but I only convert these pz2 one in a long while (the last time was for TY2 a couple of years ago).

Parsing is a good idea though... A while ago I hacked together a "expression cleaner" script to remove "face morph"  settings  and leave only the actual face expression but it was not a "safe" implementation. It expected to find a particular thing on a specific line of the fc2 file if it did not it trashed  the resulting fc2)...

 

If you're not familiar with Python and Poser Python I'd suggest getting PhilC's Poser Python e-book...

Good luck!

 


mamba-negra ( ) posted Thu, 18 August 2011 at 12:20 AM

And there it is! That looks like what I need right now. 

Thanks much!


markschum ( ) posted Thu, 18 August 2011 at 9:33 AM

look through freestuff here. There were several morph cleaners to do just what you want.


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.