How do I set a mist properties with Python?

How do I set a mist start? I´ve looked into the documentation and found this command, but it´s making nothing… not even an error message.

Import Rasterizer
Rasterizer.SetMistStart(50)

it only works if you don’t have a world set up… delete your world in the world buttons

that means your mist settings will be controlled entirely from python

more rasterizer module stuff [from blender 2.23… probably much updated since then]

Rasterizer.getWindowHeight
   getWindowHeight doc
Rasterizer.getWindowWidth
   getWindowWidth doc
Rasterizer.makeScreenshot
   make Screenshot doc
Rasterizer.setBackgroundColor
   set Background Color (rgb)
Rasterizer.setMistColor
   set Mist Color (rgb)
Rasterizer.setMistEnd
   set Mist End(rgb)
Rasterizer.setMistStart
   set Mist Start(rgb)
Rasterizer.setMousePosition
   setMousePosition(int x,int y)
Rasterizer.showMouse
   showMouse(bool visible)

Yep, you can even control the colors, depth and much more of the mist with timer property. Really handy for use by day and night simulations instead of ipo curves. :smiley:

Works, like a charm! Thank you z3r0 d and JD-multi !

:smiley: