While this does create a lamp in the scene, I don’t like the fact that I do not get the result stored in a variable, I can not name it on creation and it destroys the current selection.
In 2.49 I did this.
l = Lamp.New('Spot',passedName)
What is the 2.5 equivalent of the 2.49 create lamp code?
@PKHG: Thanks for the CTRL-SPACE tip for the console. I have been typing print(dir(myVar)) quite a bit to figure out what I could use after the next DOT. CTRL-SPACE is so much quicker!