sun animation

Dear all!

… does blender provide the possibility to animate the sun reffering to geographical coordinates? Or do I have to use a python script for that?

Has anyone experience in this field?

For a short message I will be thankful looking forward to hearing from you soon.


Well, I think blender doesn’t have a built-in feature like this but you can always fake it.

It shouldn’t be that hard!

Take a look at this python script, it should do what you need.

… thank you all! The script seems to be perfect. I will give it a try.

… unfortunately I get following error working with Blender 2.45 and Python 2.5

Traceback (most recent call last):
File ", line 464, in <module>
NameError: name ‘sun’ is not defined

Has anyone experience how to fix that?

For any hint I will be thankful, looking forward to hearing from you soon.

The script sun_py-GUI from the Wiki should only be 461 lines. I think you included extra stuff when you copied and pasted the text.

There should be 2 separate scripts in your scripts directory, and

… you were right. Unfortunately I copied extra stuff in it. But now it works fine!

Thanks a lot!