When adding a custom object properties page for lights, I find some apparently glitchy behavior, which differs depending what we return for PageType, and whether the (render) plugin is set as current renderer.
In short, when returning Light and the plugin is not current renderer, the behavior is what I would call desirable – Rhino remembers that we were looking at our custom page when a new selection is made, and we have a button for our page, and are able to switch between our page, and e.g. the main ‘Object’ properties page.
When we return Light and are the current renderer, the button for our custom page is removed, and it is possible to switch to the ‘Object’ page, but not back to ours – we must make a new selection, which will be shown in our page, as opposed to the ‘Object’ page we had just shown.
And when we return Custom for PageType, then each new selection of lights causes the Rhino ‘Light’ page to be shown, regardless if we had switched to our custom page for the prior selection.
These behaviors are observed in 7.7.21160.5001, 2021-06-09 (not yet checked mac), and are also outlined in comments in this small test file:
TestLightProps.cs (3.4 KB)