Script: time step keys
Posted: 15.03.2004, 11:53
Hi,
as an answer to this feature request I have written a script which should change the current time by one solar day, one sidereal day or one year for every keypress.
Have a try:
http://www.h-schmidt.net/celestia/timestepkeys.celx
Start the script, select a planet, and press a/A to change by a year, s/S for a sidereal day, or d/D for a normal day.
Problems:
I had to use a fixed table of day/year-lengths because this information is not (yet) available to scripts. I used the values found in solarsys.ssc, but I don't know how to work with them: how do you compute the normal daylength? And I am not sure about the length of an earth-year either (365.25 is used within celestia) etc. The method I used is good enough to make the script usable, but probably not correct - and I am too lazy to look for information about this.
Harald
as an answer to this feature request I have written a script which should change the current time by one solar day, one sidereal day or one year for every keypress.
Have a try:
http://www.h-schmidt.net/celestia/timestepkeys.celx
Start the script, select a planet, and press a/A to change by a year, s/S for a sidereal day, or d/D for a normal day.
Problems:
I had to use a fixed table of day/year-lengths because this information is not (yet) available to scripts. I used the values found in solarsys.ssc, but I don't know how to work with them: how do you compute the normal daylength? And I am not sure about the length of an earth-year either (365.25 is used within celestia) etc. The method I used is good enough to make the script usable, but probably not correct - and I am too lazy to look for information about this.
Harald