seturl instruction

All about writing scripts for Celestia in Lua and the .cel system
Avatar
Topic author
gironde M
Posts: 275
Joined: 16.12.2016
Age: 66
With us: 1 year 10 months
Location: Montigny-Les-Metz, Grand Est, Lorraine, Moselle, France

seturl instruction

Post #1by gironde » 16.07.2018, 08:06

discovery or re-discovery of a Celestia feature that can be useful to anyone working with LET and LUT interfaces:

the [ctrl + c] or ctrl + inser] command is used to copy the Celestia environment at the exact moment of the command. The settings are copied as an url into the Windows clipboard.

This url can be reused in a CELX script (in LUA) by the instruction:

celestia: seturl ("...")


This instruction will return Celestia to the same view as in [ctrl + e] (or ctrl + inser).

note: screen orbits, markers, and even pause time are recorded.

With Croc, we tested this instruction to show satellites in a particular configuration (flying over a planet during a trip into the solar system).

The search for the proper view is done with the traditional functions of Celestia, time adjustment, orientation of objects, ...

Avatar
Croc M
Moderator
Posts: 304
Joined: 10.08.2016
Age: 71
With us: 2 years 2 months
Location: Udomlya, Tver region, Russia

Post #2by Croc » 16.07.2018, 08:50

celestia: seturl ("...").
This instruction will return Celestia to the same view as in [ctrl + e] (or ctrl + inser)

:clap: :clap: :clap: :smile: :smile: :smile:

Avatar
Goofy
Posts: 235
Joined: 30.08.2011
With us: 7 years 1 month
Location: Italy

Post #3by Goofy » 16.07.2018, 14:50

You forgot to say that seturl applies to CEL scripts too, this way:

seturl {url "past here what you saved with command [ctrl + c]"}

An example:

seturl {url "cel://Freeflight/2011-12-26T10:47:26.19429?x=AFMIq/p6K+r8/////////w&y=qj6shd38c9r6/////////w&z=wMcnpmoLWsb1/////////w&ow=0.229316&ox=-0.497255&oy=0.82745&oz=-0.124409&select=Sol&fov=48.5035&ts=1&ltd=0&p=0&rf=2366215&lm=2048&tsrc=0&ver=3"}

Bye

Goofy :smile:
"Something is always better than nothing!"
ASUS G75VX4007H- Intel i7 3630QM, 2.4 GHz-SSD 250GB+SSD 1TB, SATA 3-32GB DDR3 1600 MHz- Nvidia GeForce GTX 780MX 3 GB

Avatar
Topic author
gironde M
Posts: 275
Joined: 16.12.2016
Age: 66
With us: 1 year 10 months
Location: Montigny-Les-Metz, Grand Est, Lorraine, Moselle, France

Post #4by gironde » 16.07.2018, 16:23

It's good Goofy, you just reported it

thank !


:biggrin:

Avatar
Croc M
Moderator
Posts: 304
Joined: 10.08.2016
Age: 71
With us: 2 years 2 months
Location: Udomlya, Tver region, Russia

Post #5by Croc » 16.07.2018, 18:04

Celestia has a lot of viewing options.
With the help of the Autopilot (LUT-5 tool) these settings are adjusted very accurately. Celestia: seturl ("...") is followed by the "Follow", "SyncOrbit", "Chase", "PhaseLock" or "Freeflight" navigation commands and the "Track" command

On the screenshot - Voyager-1 at Jupiter on March 5, 1979.
Without a complex script on the screen in the dynamics, you can observe this span Voyager-1. The position of the Voyager-1 is fixed, the device can only rotate around its axis and keep a reference point to the Sun.
Jupiter (on the screen) first approaches Voyager-1, then it is deleted.
About 19 hours UTC on the background of Jupiter sail Io. Fantastic!

Voyager1+Jupiter.jpg


Return to “Scripting”

Who is online

Users browsing this forum: 2 guests