Page 1 of 1

earth to moon

Posted: 24.01.2011, 22:48
by ELF
hi..I want to travel from earth to the moon but don't know how to make a script to do it....can someone can post the script here to help me????... it would be appreciated..

i also need to know where all the objects get copied to...the folders...
i want my camera to follow a craft..any craft will do...the craft should be fully visable but not too far from the camera...here it is..

At a altitude of 100 miles follow craft with camera to moon...duration 3 minutes..
At a altitude of 100 miles do a complete revolution of the moon ...duration 1 minute
return back to earth..duration 3 minutes..
at a altitude of 100 miles do a complete revolution of earth..duration 1 minute

if i can get this basic script to do this, then i have the basics to go further...

Also is there a wait/pause statement ?? loop statement? do in order statement? do together statement?

ED

Re: earth to moon

Posted: 24.01.2011, 23:35
by Fenerit
Here http://www.shatters.net/forum/viewtopic.php?f=9&t=16165 you can find a script maker of scripts; it will record your action into another that will be the your.

As for learning about scripting language, you can explore the SCRIPTING subforum, there are several examples, methods and solutions. For its directives, take a look here: http://en.wikibooks.org/wiki/Celestia#Scripting

Re: earth to moon

Posted: 25.01.2011, 00:17
by ELF
naw..no thanks..i want the info here on this thread..i don't want to wade through a mountain of jibberish to achieve a simple goal that can be posted here...

I already waded through all those web pages and so i ended up here...Joining the forum...asking a simple question...if anyones out there that write my script please help...i dont ask for much..

ED

Re: earth to moon

Posted: 25.01.2011, 01:06
by Reiko
With that attitude you'll be waiting a very long time.

Re: earth to moon

Posted: 25.01.2011, 01:46
by ELF
All i ask for is a simple script..is that too much to ask?

Re: earth to moon

Posted: 25.01.2011, 13:08
by selden
A single once-through Cel script probably wouldn't be too hard, but the setup probably would be substantial. First you need to specify the spacecraft's orbit. That would be a project in itself. Perhaps replicating something like the Apollo 8 flight would be easiest.

Cel scripts do not have loops. They're only a sequence of commands, one after the other. Most Cel commands tell Celestia to view things in a particular way. The pseudo-code that you provided can be translated almost directly into Cel commands, but the spacecraft's orbit must already have been defined in an SSC catalog file.

CelX scripts are written in Lua, which is a complete programming language. They can be quite complex and sometimes hard to debug.

Re: earth to moon

Posted: 25.01.2011, 14:20
by t00fri
ELF wrote:All i ask for is a simple script..is that too much to ask?

As Selden already emphasized, that script will NOT be that simple...

I have another suggestion:
there are quite a number of working scripts available both in Cel and in Celx (Lua). Why don't you try to understand these first, thereby learning the scripting language of your choice. Most users have learned Celestia scripting precisely this way.

Then it will be way more satisfactory to try writing the desired script yourself. I can see no reason why you might only be able to learn Celestia's scripting languages from a particular script .

Fridger

Re: earth to moon

Posted: 25.01.2011, 18:38
by ELF
okee dokee...i would like to say this..if you have a move toward statement ..it would benefit everyone..also if you could show the script running in a box in real time...along with the world running..you would save time to make adjustments to the script...a calculator is a must have item to make changes to the script..

the commands..move to..copy..paste..pause...wait..move...turn..roll..resize..do together...loop.. could be clicked on and edited with the calculator???...drag and drop commands already installed in the interface would be of great benefit to users...

i can understand the complexity of programming this baby..its almost like when the world starts...wheres earth at? where am i at ...and where's my models at??

Thanks..
ED