The Track Lights add-on can be used to point and track lamps on empties and objects making it easier to set them up in a scene. For now the it only orients objects and lamps using the z axis, which works for the starting rotation of the lamps when added.
Track Active Object: This will add the track to constrain to the selected object(s) using the active object as the target.
Point To 3d Cursor: This points or orients the selected object(s) towards the 3d cursor’s location.
Make Empty And Track: This will create an empty on the 3d cursor’s location and add the track to constrain to the selected object(s) using the empty as the target.
Make Lamp And Track: This will create a lamp (type based on set default value) and an empty on the 3d cursor’s location. The lamp will have the track to constraint using the empty as the target. The lamp will be active so you can just grab it to another location.
*Point lamp is included in case you want to change it to that type. It is omnidirectional and its orientation has no effect on how it lights the scene.
Starting defaults for the empty and lamps can set in the UI and is used for the Make Empty And Track and Make Lamp And Track commands.
UI will expose the lamp parameters if object selected is that type. If blackbody is used then the temperature parameter is displayed instead of color.
Clean Target Empty toggle will remove orphaned empties or those that are not being tracked by any lamp from the scene which helps avoid cluttering the scene. Toggle this off if same empty is doing something else for you.
Camera Depth of Field panel will show up when in camera view. Make Empty And Focus will create an empty (type based on set default value) on the 3d cursor’s location and use it as the camera’s focus object. Clean Focus Empty toggle will remove camera dof objects if they are type empty, turn this off if same empty is doing something else for you.
To install, copy both the .py file and the track_lights_icon folder to the add-on folder. !Both file and folder must be in the same location!