Page 1 of 1

Script Commands v1.2.5

Posted: 26.12.2002, 23:01
by Richie
I'm new to Celestia; about a month. I've been "playing around" with it and recently tried writing my own start.cel script. I've experimented (trial&error) with all the commands I could find. I was able to use and generally understand all the commands except one...

The "MOVE" command wasn't working for me. Help with instruction will be appreciated. Also, I copied the script commands from the shatters page....are there any other commands or interesting suggestions on script writing not included at "http://ennui.celestiaproject.net/celestia/docs/scripting.html"?

below is my first try at a complete startup script. You'd probably want not to use it as a start.cel because It's a bit long. I wanted to try a "cool" fly-by of the Ikeya-Zhang comet on the way to Earth, but I didn't get the results I was hoping for.

I just remembered another question... How to reset the time within a script to "current time"?

How to turn on-off the Celestial-Grid within a script?

Thanks for writing Celestia.

Richard
Las Vegas, NV.


below's the script I tried but was hoping the "MOVE" or any other suggested command would work better as a fly-by of Comets etc...

{
wait { duration 2 }
setvisibilitylimit { magnitude 7.0 }
setambientlight { brightness 0.4 }
timerate { rate 0 }

select { object "sol/jupiter/io" }
follow {}
goto { time 6 distance 4.5 }
wait { durations 6 }
orbit { axis [ 0 1 0 ] rate 25 duration 10 }
wait { duration 1 }
orbit { axis [ 2 0 0 ] rate 18 duration 3 }
wait { duration 0.5 }
changedistance { rate 4.5 duration 3 }
wait { duration 0.5 }

select { object "sol" }
follow {}
center { time 2 }
wait { duration 2 }

renderflags { set "orbits|nightmaps" }
wait { duration 1 }
changedistance { rate -1 duration 2 }

labels { set "planets|moons|asteroids" }
wait { duration 1 }

timerate { rate -1592000 }
wait { duration 13 }

renderflags { clear "nightmaps" }
timerate { rate -796000 }

select { object "ikeya-zhang" }
center {}
follow {}
wait { duration 0.5 }
changedistance { rate -0.1 duration 10 }
wait { duration 0.5 }
timerate { rate 0 }

select { object "Sol/Earth" }
follow {}
center { time 4 }
wait { duration 4 }
changedistance { rate -1 duration 9 }
wait { duration 0.5 }
cancel {}
gotolonglat { time 5 distance 3.5 longitude -115 latitude 36 }
wait { duration 6 }
synchronous {}

labels { clear "planets|moons|asteroids" }
renderflags { clear "orbits" }
timerate { rate 1 }
}