Forum Coordinators: RedPhantom
Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 29 7:57 am)
Attached Link: http://www.renderosity.com/messages.ez?Form.ShowMessage=2157525
Hmmm, there is one in the free stuff, but I can't remember who made it. EDIT: I dug up the thread where I asked about the same thing. There is a link in there to a script or utilityMessage edited on: 05/15/2005 17:57
"It is good to see ourselves as
others see us. Try as we may, we are never
able to know ourselves fully as we
are, especially the evil side of us.
This we can do only if we are not
angry with our critics but will take in good
heart whatever they might have to
say." - Ghandi
Attached Link: http://www.renderosity.com/messages.ez?ForumID=12390&Form.ShowMessage=2261347
Your in luck then, as there's now an Actor method to detect whether a light is on or off (link is to Poser Python forum).Again thanks everybody... I don't know why, because I don't write Python code, but being a hacker from way back, I decided to have a go at mixing code and seeing what happens.... It works... don't know why or how, but this little bit of Python, deletes all lights in a scene that are switched off. This makes it easier to work with only the lights you want and not have to manually delete the ones you don't want. [Code starts:] import poser scene=poser.Scene() lights=scene.Lights() for lig in scene.Lights(): if not lig.LightOn(): lig.Delete() [Code Ends:] Just say it as "DelOFFLights.py" or anything else you like and run it to delete "OFF" lights
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.
Ok you Python guru's, I constantly load preset light sets to see effects in my scene, but after a while I have all these lights that I've turned off and don't need them cluttering up the scene. Is there a python script out there that will delete all lights in a scene that are turned "OFF"? I've got scripts to delete all lights no matter what and delete lights below a certain intensity, but these don't allow selection of lights turned "OFF" Thanks you guys that write this stuff... I thought "Python" was part of the "Monty Flying Circus" series... LOL