Fri, Nov 8, 4:00 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 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: SetCurrentCamera driving me mad...


troberg ( ) posted Sat, 24 November 2001 at 7:16 AM · edited Fri, 08 November 2024 at 12:54 AM

I have a small problem with a python script. See the enclosed snippet below: scene.SetCurrentCamera(Front) scene.Render() fileName = app.path + "f.bmp" scene.SaveImage('bmp', fileName) scene.SetCurrentCamera(Back) scene.Render() fileName = app.path + "b.bmp" scene.SetCurrentCamera(Front) It works fine, except for the SetCurrentCamera statements. I need to do a lot of these renders, and the script would save me days of work. Any ideas? /Troberg


FuriousGeorge ( ) posted Sat, 24 November 2001 at 12:51 PM

I'm a software developer by trade... but I haven't really played around with PPP's Python implementation... thanks for giving me an excuse. You need to reference the camera by a name it understands (the documentation is very sketchy). I chose to reference it by it's external name... so as an example... Replace "scene.SetCurrentCamera(Front)" with "scene.SetCurrentCamera(scene.Actor("Front Camera"))" Hope this helps.


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.