Forum: Poser - OFFICIAL


Subject: Python script Deletelights...deleting more than lights!?

dreamer728 opened this issue on May 18, 2003 ยท 17 posts


dreamer728 posted Sun, 18 May 2003 at 9:23 PM

file date: 1/14/2003 i opened it up in a text editor and here is what it says: #----------------------------------------------------------------------------- # Delete all lights. #----------------------------------------------------------------------------- import poser #----------------------------------------------------------------------------- scene = poser.Scene() scene.SetFrame(0) #----------------------------------------------------------------------------- #----------------------------------------------------------------------------- # Run a loop across frames. # At each frame, delete any lights. #----------------------------------------------------------------------------- for OneLight in scene.Lights(): scene.SelectActor(OneLight) scene.DeleteCurrentProp() # Wipe it. # That's all, folks! #-----------------------------------------------------------------------------