Wed, Feb 19, 2:58 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: 2025 Feb 05 6:41 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: problem with shadows after deleting lights in poser 5


markschum ( ) posted Mon, 05 June 2006 at 10:25 PM · edited Thu, 16 January 2025 at 1:06 AM

import poser

scene = poser.Scene()
for light in scene.Lights():
    scene.SelectActor(light)
    scene.DeleteCurrentProp()

I rote the above script to delete all lights in a scene after playing with light sets.

Recently I found I had a problem with a scene where no shadows were being rendered. The shadow cameras were not on the camera list and the render never went through the "creating shadowmap" part.

Is there a known problem with killing all the lights in this manner ?


bagginsbill ( ) posted Thu, 08 June 2006 at 7:22 PM

You didn't say what version of Poser. Bring up your Python Scripts Window. Click "Utility Funcs".

Do you then see a "Delete all lights" button? If so, you could use that instead.

This is a one-liner version of what it says inside:

for light in poser.Scene().Lights(): light.Delete()

 


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)


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.