Yes! I hate scripts, but I love cel;//URLs
Recently I made a “script” for the topic about Cruithne and Cham asked:
Tu parles !Cham wrote:EDIT : Is there a way to simplify the first part of the script, to use CELX only ?
The only reason why I wrote the script was because markers are not recorded within urls!
And now I have a similar problem with this little script:
Code: Select all
function CEL(source)
local script = celestia:createcelscript(source)
while script:tick() do
wait(0)
end
end
CEL([[
{
seturl { url "cel://SyncOrbit/Sol:Earth/2008-06-21T13:21:05.18439?x=fbeWQgCMEQ&y=fg7E0iILKA&z=PMj5mKdiBg&ow=-0.573595&ox=-5.80523e-006&oy=-0.819139&oz=-3.23302e-006&select=Sol:Earth&fov=60&ts=0<d=0&p=0&rf=18470279&lm=2017986560&tsrc=0&ver=3
" }
}
]])
wait(2)
temps = celestia:gettime()
while (true) do
wait(0.02)
temps = temps +1
celestia:settime(temps)
end
This script works ONLY with Celestia 1.6.0 because I wanted the horizontal grid to be active.
Its aim is to see the graceful Anna Lemma in the sky of the Earth.
So, the URL lets me initialize my position, time, timescale, observer’s mode and the render options with no effort. (Ctrl-C in Celestia and Ctrl-V in my script).
But I realize that it’s not a universal solution and particularly there is no way to do here some special effects.
No difficulty to set the flags and the position (here in Iceland).
The real problem for me is: how do I orient myself?
In this case facing the south and looking up with an angle = 25°. Moreover I want the ground not doing a funny angle with the horizontal. (At this place it may be ice…)
Thank you for your help.