I have registered various events on RhinoDoc:
Rhino.RhinoDoc.LightTableEvent += new EventHandler<LightTableEventArgs>(RhinoDoc_LightTableEvent); Rhino.RhinoDoc.AddRhinoObject += new EventHandler<RhinoObjectEventArgs>(RhinoDoc_AddRhinoObject); Rhino.RhinoDoc.BeginOpenDocument += new EventHandler<DocumentOpenEventArgs>(RhinoDoc_BeginOpenDocument); Rhino.RhinoDoc.EndOpenDocument += new EventHandler<DocumentOpenEventArgs>(RhinoDoc_EndOpenDocument);
In Rhino 5 when I open a document all these events get called correctly. However if I open a document in Rhino 6.2.18065.11031 (Windows) the LightTableEvent doesn’t get triggered. If I then add lights to the scene it does get triggered, it’s only during document open that it does not. This means that my plugin is unable to track existing lights in a scene as it doesn’t get notified of their existence.