whoehl
(whoehl)
1
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.
whoehl
elclanrs
(elclanrs)
2
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!
CD38
(CD38)
3
Take a look at this python script, it should do what you need.
http://wiki.blender.org/index.php/Sun_py
whoehl
(whoehl)
4
… thank you all! The script seems to be perfect. I will give it a try.
whoehl
(whoehl)
5
… unfortunately I get following error working with Blender 2.45 and Python 2.5
Traceback (most recent call last):
File "sun_gui-D.py, 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.
CD38
(CD38)
6
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, sun-D.py and sun_GUI-D.py.
whoehl
(whoehl)
7
… you were right. Unfortunately I copied extra stuff in it. But now it works fine!
Thanks a lot!