What does this error mean?

hello, i get this Werd error when running a set mist script

PYTHON SCRIPT ERROR:
SystemError: C:\Code\python\dist\src\Objects\frameobject.c:127: bad argument to internal function

i sometimes get this error on some scripts.
what does it mean? The script dosent work, i dont know why?
here is the script

import Rasterizer as r
r.setBackgroundColor(0,0,0)
r.setMistColor(0,0,0)
r.setMistStart(0)
r.setMistEnd(24)

And i have no world set up.

how bout using floats instead of ints?

hrm, 2.34 complains about setMistColor and setBackgroundColor taking 1 arg, not 3 [it takes a list, of the rgb components]

it takes floats for colors from [0.0,0.0,0.0] (black) to [1.0,1.0,1.0] (white)

this works good in 2.34 but in 2.25 it just dosent work anny more, i got a ATI card, mehbe that is the problem :frowning: . Can you give me an example that works in 2.25? i have dont it a million times, but not when i got the new ATI card.

seems to work just fine

import Rasterizer
#print dir(Rasterizer)
Rasterizer.setBackgroundColor([1.0,0.0,0.0])
Rasterizer.setMistStart(0.0)
Rasterizer.setMistEnd(2.0)
Rasterizer.setMistColor([0.0,0.0,1.0])

Thanks z3r0 d :slight_smile: