This is a small macro script I created that will search for all the lights in a 3ds max scene and will turn OFF any light that is ON. In case all lights are OFF clicking on the Button will turn them all back ON. I created this script for myself to avoid going through all the lights and turn them off in case I wanna do some tests using one or few selected lights. I know there is a light lister but it's not that practical. this script can be placed as a button on the toolbar, it's always there.
you can see a demo here: https://youtu.be/lIawffhcyVw?list=PLHpTMy1QrXbhXK3KP_Ov3XwElNlfy3hQ4