Hi,
It looks like there is no API, which can be used to implement this feature ![]()
But you can make a mel script to do so.
With this mel command, you can get the list of all rect and sphere lights in the scene.
ls -type "VRayLightRectShape" -type "VRayLightSphereShape"
Then you can use the values from the list to show or hide the lights.
/Teodor