|
|
Paolo Angeli Personal Website |
Celestia Feature requests: Group 6 FR35 URL through scripts |
URL loads script file automatically Is requested the capability of running CEL or CELX scripts using URLs.
Description: Actually it is not possible to define an URL with multiview. So it is not possible to click over an Hyperlink in an HTML document and open Celestia with 3-4 (or even more) different views. I was asking me if should be very difficult to implement a different kind of Celestia URL. Instead of a URL in semi-binary format like the following:
cel://Follow/Sol:Mercury/2003-08-01T13:15:51.15898? x=AMBAWebCUuPkDA& y=Cpuhlugs9C4e& z=VQr63TfoNIgc& ow=0.863894& ox=0.258879& oy=-0.420347& oz=-0.099883& select=HD%2075318& fov=45.000000& ts=0.000000& rf=40375& lm=1244162
a simple reference to a CEL script.
Using URL CEL script commands should be somewhat easy
to operate with Celestia URLs. The HTML code should be something like this:
<a href="http://www.myweb.com/myfolder/myURLScript.cel">
The script file called in the url is saved in a web site. The multiview script commands implementation is described in FR37.
Obviously the current URL capture mechanism is very very handy. It is not suitable that Users creates a script from scratch to configure all the things. Instead Celestia should create a script with all the current view settings, included.
So instead of an URL in Semi-Binary format, a plain text script file should be generated and prompted for saving by Celestia. Something like the Don’s standard startup CEL Script plus a Gotolonglat and a Time script commands.
Another useful feature should be the capability of running a sob script called from the main script.
So the final script called by "the URL should be something like this:
#set the subscripts folder SetPath {name "http://www.myweb.com/myfolder/URL1"} #call the sub script for initial settings CallScript {name "../generalscripts/Initial.cel"} #call the sub script for video splitting CallScript {name "../generalscripts/panelsplit9.cel"} #set active pane SelectPane {ID 1} #call sub script. CallScript {name "pane1.cel"} #set active pane SelectPane {ID 2} #call sub script. CallScript {name "pane2.cel"} #etc. ...
For instance one of the sub scripts captured directly by Celestia (see FR34) should be:
#pane 1 initial settings and preferences select {object "Mars"} time {jd 2452862.89542}
gotolonglat {
#set final preferences ... #etc ...
The porting of the URL cel scripts in celx Lua script format should be surely easy.
Required/Suggested: FR34 Script recording.
Further related improvements: (...)
Related Newsgroup Threads:
Reference Celestia Version: 1.3.0
Status: (19-09-03) Submitted to forum attention. (19-09-03) Waiting.
Subscribers (Subscribe this item) Paolo Angeli.
Back
to
Group
6.
|
Last update: 20-09-03