Fri, Jan 3, 9:34 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: Saving rendered image


Tiny ( ) posted Sun, 20 December 2015 at 11:14 AM · edited Sun, 22 December 2024 at 9:38 PM

I am dusting off some older Python scripts which runs fine but do not save any images. Nothing seems to work and I don't understand why. Now I'm down to a "hard coded path" but it still doesn't do it. What am I doing wrong here? Any suggestions much appreciated. Here is the latest and simplest save image code: Scene.SaveImage(“png”, “E:Rendersmypic.png”)

I'm using Poser Pro 11



structure ( ) posted Sun, 20 December 2015 at 11:26 AM · edited Sun, 20 December 2015 at 11:34 AM
Forum Coordinator

in your example, you are missing the slash (the slash is written double (2 * ) Scene.SaveImage(“png”, “E:Rendersmypic.png” )

Capture.JPG

Capture.JPG

Locked Out


Tiny ( ) posted Mon, 21 December 2015 at 7:25 AM

Thank you! That worked when I used the 'hard coded simple path' but not with my whole script. After more testing and reading Python manual I got it working. :) This is what the save image line looks like now: scene.SaveImage("png",os.path.realpath('E:/')+'Renders/'+(LastName))



structure ( ) posted Mon, 21 December 2015 at 11:27 AM
Forum Coordinator

glad you got it working :)

Locked Out


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.