seturl instruction

All about writing scripts for Celestia in Lua and the .cel system
Avatar
Topic author
gironde M
Posts: 850
Joined: 16.12.2016
Age: 72
With us: 7 years 11 months
Location: Montigny-Les-Metz, 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
Forum Admin
Posts: 437
Joined: 10.08.2016
With us: 8 years 3 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:
Creator of the GUI "Lua Universal Tools"
25/V/1947 - 30/III/2019

Avatar
Goofy
Posts: 280
Joined: 30.08.2011
With us: 13 years 2 months
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!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

Avatar
Topic author
gironde M
Posts: 850
Joined: 16.12.2016
Age: 72
With us: 7 years 11 months
Location: Montigny-Les-Metz, France

Post #4by gironde » 16.07.2018, 16:23

It's good Goofy, you just reported it

thank !


:biggrin:

Avatar
Croc M
Forum Admin
Posts: 437
Joined: 10.08.2016
With us: 8 years 3 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
Creator of the GUI "Lua Universal Tools"
25/V/1947 - 30/III/2019


Return to “Scripting”