I have a plugin to export to a game engine, written in Python. Currently, the way that it handles Lamps and how they relate to Objects is a disaster. In order to have a Lamp cast light on a object in the game engine, the user has to specify the lamp names in the logic properties window.
Needless to say, if there are ten lamps that all cast light on one object, the user is going to have to type out a lot of stuff to get the object to react to the lights.
Is there any way that using Python, I could get the names of all of the lamps that cast light on an object?
Thanks in Advance,