Why can't I use setDist() ? - Lamp object

I keep getting attribute errors when I use the setDist() for a lamp object

LampObj = Lamp.New(“Spot”,“Spot1”)
LampObj.setDist(23)

I get: Attribute error setDist()

Am I using this incorrectly or is there a bug?


It’s a bug: setDist() is missing from the method table. I’ll post a fix to the python list.

In the meantime, you can use the dist attribute

myLamp.dist=20.0

Great, thanks for your help.

myLamp.dist = 20.0 worked wonderfully.