[Bf-python] "Lamp.col": it's a bug?
Manuel
manuelbastioni at tin.it
Mon May 19 23:59:09 CEST 2003
About the attribute "Lamp.col".
I've seen this isn't in the bugs tracker.
Sample code:
------------------------------
import Lamp
lampList = Lamp.get()
for lamp in lampList:
print lamp.getType()
print lamp.bias
print lamp.col
-------------------------------
This give me an error (blender 2.26 and 2.27 too, Windows2000), like :
-------------------------------
File "../modules/Blender/shadow.py", line 156, in __getattr__
File "../modules/Blender/shadow.py", line 97, in _getattrEx
AttributeError: col
-------------------------------
In the "new" documentation of python225 I've read
about a Lamp.col attribute, but not Lamp.R or Lamp.G or Lamp.B
(excuse my english!) . However, if I use this code
------------------------------
import Lamp
lampList = Lamp.get()
for lamp in lampList:
print lamp.R
print lamp.G
print lamp.B
-------------------------------
it work !!!
It's a bug, or the "col" attribute will be removed to use the
"classic" R G B attributes?
Cheers,
Manuel
More information about the Bf-python
mailing list