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
earth to moon
Re: earth to moon
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
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
Never at rest.
Massimo
Massimo
-
Topic authorELF
Re: earth to moon
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
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
With that attitude you'll be waiting a very long time.
Re: earth to moon
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.
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.
Selden
- t00fri
- Developer
- Posts: 8772
- Joined: 29.03.2002
- Age: 22
- With us: 22 years 7 months
- Location: Hamburg, Germany
Re: earth to moon
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
-
Topic authorELF
Re: earth to moon
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
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