I'm working in Blender 2.8 and I'm new to python and scripting in general.
I have a file that contains multiple lighting fixtures (100+). I'm trying to write a script that will add a spot light to each fixture that I've selected.
Here's what I have so far:
import bpy selected = bpy.context.selected_objects bpy.ops.object.light_add(type='SPOT', location=selected.location)
The issue is this script only adds a light to one object, not every object I've selected.
I haven't gotten to it yet, but I'd also like every light to have share the same light data, so they can all be changed at once.
Thanks in advanced for the help!