「Extensions:2.4/Py/Scripts/Misc/Sun Position」の版間の差分

提供: wiki
< Extensions:2.4‎ | Py‎ | Scripts‎ | Misc
移動先: 案内検索
(updating after the ScriptInfo change)
 
(1版 をインポートしました)
 
(相違点なし)

2018年6月29日 (金) 03:36時点における最新版

Sun_Path
calculated sun path for specific locales and times
UI location Menu → Group → Animation
Version D - 2006.09.03 Author(s) Grzegorz Rakoczy (AKA grzybu), Patrick7
Blender 2.42 - 2.46 License GPL


Executable information
File name sun-D.py, sun_gui-D.py


Links Sun_py script wiki repository


Support

Manual-Script-Misc-Sun Path-demo1.gif

Links


Introduction

Description: calculates the sun position based on user input data from the script GUI.

Usage: run via the GUI following the instructions as written there -or- change the default values specifically in this script and run it alt-p.

Usage

Instructions

000. Place the gui & script (sun_gui.py and sun.py)
	into your scripts directory
00. Open the GUI script in your script window or open it 
in your text window and hit ALT + P
----------------------------------------------------
0. Scene is oriented by top view [num7], North is
	up (+y), East is right (+x), if this default is
	changed, then those used may not be the same.
	NOTE: IF THE DEFAULT VALUES ARE CHANGED THIS 
	APPLICATION SAVES A FILE (*.dat) IN THE DIRECTORY 
	YOU ARE WORKING
1.In Top view, create a new Empty at the desired
  sun rotation pivot position	
2.Along X-axis of Empty create lamp for Sun,
  position it so far out as needed
3.Select the sun then Empty and parent [ctrl-P],	
4.Change location, time, etc definitions as needed	
5. {Run} runs the script, linking it to the empty if
			script links are enabled.
	{reset} resets default position, clears link
	{rall} as reset plus it deletes the file
	{exit}/[Qkey]/[ESCKEY] quits gui application


To-Do list

  • fix DayOfTheYear to be exact


Credits

Thanks go to:

  • author Grzegorz Rakoczy (AKA grzybu) for what...
  • author Patrick7
  • all calculation are based on page [1] by Paul Schlyter

History

v1.0 - 2004 by Grzegorz Rakoczy - first release
pb1 - 2006.08.25 - patrick7 -Bugs fixed and features added:
 1. orientation, changed to radians for calculation
 2. orientation, automatic calculation based on transit approximation
 3. notes, included text explaining further the variables
 4. added blender stuff for running via script window	
pb1 - 060826 - script fixes
pb1a/b - 060827 - working in gui.. found out can't
 have scriptlink and gui at the same time, need file
 anyway for defaults, decide to seperate. 
pc1 - 060828 - seperated out of sun-pc1.py
pc2 - 060828 - removed GUI, clean up
pc3 - 060829 - functional reading from file.
c - 060830 - almost release
0c - 060830 - fixing globals trying to fix bug
d - 2006.09.03 - release by patrick7