Lights: question

Hello
After deleting lights from Rhino they still exist,
How to get the real list of lights? and is there an event to know when the light deleted?

import Rhino

lights = []
for l in Rhino.RhinoDoc.ActiveDoc.Lights:
    if not l.IsDeleted:
        lights.append(l)

ā€“ Dale

1 Like

Thank you @dale