On 19/10/2015 at 02:02, xxxxxxxx wrote:
I get an error in my Script which worked fine in R16.
Hence this is one of the parts where I am winging it I need your help.
biglist is a list of c4d.vectors (was a bitmap)
I am stripping duplicated colors of this list.
tahnks in advance
kind regards mogh
def stripduplicates(biglist) :
newlist = [ item for item in biglist if item not in locals()['_[1]'] ]
return newlist
Traceback (most recent call last) :
File "'scriptmanager'", line 374, in <module>
File "'scriptmanager'", line 320, in main
File "'scriptmanager'", line 216, in getpixelcolor
File "'scriptmanager'", line 234, in stripduplicates
KeyError: '_[1]'