Forum: Poser Python Scripting


Subject: Pythong light deletion?

soulhuntre opened this issue on Oct 27, 2001 ยท 4 posts


soulhuntre posted Sat, 27 October 2001 at 3:33 AM

I looked in the poser help files - I can see how to brighten the lights, I can see how to dim them... but can I DELETE them? How nice it would be to splat a script that would simply nuke the whole lighting set.


soulhuntre posted Sat, 27 October 2001 at 3:33 AM

My bad :)


jbrugion posted Mon, 29 October 2001 at 10:19 PM

I just looked at the documentation for SR2 again and I don't see a delete. Haven't loaded SR3 yet but the documentation doesn't have a DeleteLight or equivalent in it either. That seriously sucks. I was working a light script but hadn't gotten to the delete part yet. Screws that idea all to heck.


Jackmon posted Mon, 12 November 2001 at 5:26 PM

Actually you can delete lights. It's a little obfuscated, but it is possible. Try this: scene = poser.Scene() actor = scene.Actor("Light 1") scene.SelectActor(actor) scene.DeleteCurrentProp() -Jackmon