Mon, Jan 20, 4:24 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 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: python and materials...


darken666 ( ) posted Wed, 31 August 2005 at 3:04 PM · edited Mon, 20 January 2025 at 1:26 PM

I'd asked about this once before and was told that python can't touch the p5 material room. However Face_off's Real Skin Shader manages to do so, whether by direct contact or some workaround, so it looks like it is possible. I'm looking to make or find a script to automate the following two material alterations Fur: http://www.renderosity.com/messages.ez?ForumID=12356&Form.ShowMessage=2121224 With this one I'm trying to get some way to select which materials in the figure are affected so I can avoid things like furry eyeballs and such. Toon: http://www.runtimedna.com/mod/forum/messages.php?ShowMessage=92000 This one I want to be able to be set to act on every item in a scene. Or at least all the figures. Unfortunately for me, I don't know the first thing about Python. I'm trying to teach myself, but it's slow going.


darken666 ( ) posted Sat, 03 September 2005 at 8:16 PM

Ok, it seems that to do what I need the script will just have to create a temporary pz2 file to apply a MAT pose. Looks like I'll need a book on Python, any recommendations?


an0malaus ( ) posted Sun, 04 September 2005 at 1:25 AM · edited Sun, 04 September 2005 at 1:29 AM

I've been trying to find a copy of the Nutshell series Programming Python book published by O'Reilly, but it seems to be out of print.

With P5, and even to some extent P6, the Python interface to the material room has limitations. P5 is caught in the gap between reasonable, if not complete access to materials from Python, which P6 has and P4, which does not support shader trees.

With the P5&6 shader trees, MAT PZ2 files, unfortunately cannot override parts of the shader tree. If the P4 techniques, where you can change just the diffuse colour or transparency of a material zone, are applied in P5&6, they completely override existing shader trees for the specified materials.

This, I believe, has opened the door for Python "material helper" scripts, such as ShaderSpider from DAZ and face_off's OcclusionMaster, which still, to my knowledge, rely on Python analysis of the shader tree and use PZ2 files, with appropriately modified shader trees, to implement their changes for selected materials.

Message edited on: 09/04/2005 01:29



My ShareCG Stuff

Verbosity: Profusely promulgating Graham's number epics of complete and utter verbiage by the metric monkey barrel.


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.