Script Doctor, help! I know it's imple but?€¦
Posted: 26.01.2007, 23:16
Hi evreyone!
I'm quiet new in wrting scripts so I'm biginning with something very simple. I spend a lot of time in readins forum and testing scripts to understand how it works but I can't do what I'd like to. Coud somebody help me?
The idea is simple: we're watching the earth (orbit around) go to Hubble, look the machine and then go down to Marseilles/France as close as possible. Easy isn't it? I'm always having "jumps" or can't fin Hubble anymore or can't get closer. It's getting late here and I tried and tried, when I find something, something else is going wrong?€¦ Could somebody help me?
thanks in advance
sam
{
# INITIALIZATION
cancel {}
cls {}
renderflags { clear "automag|boundaries|comettails|constellations|grid|orbits|markers"}
renderflags { set "atmospheres|cloudmaps|galaxies" }
labels { clear "asteroids|comets|constellations|galaxies|moons|planets|spacecraft|stars"}
unmarkall {}
set { name "AmbientLightLevel" value 0.30 }
set { name "FOV" value 30.0 }
timerate { rate 1000.0 }
time { utc "2007-06-21T06:00:00.0000" }
# ------------------
# Earth
# ------------------
# Select the Earth
select { object "Sol/Earth" }
track {time 5 }
follow {time 5 }
goto{
time 5
distance 15
upframe "chase"
}
orbit{duration 19
rate 20
axis [0 1 0]
}
timerate { rate 100.0 }
gotolonglat { time 20
distance 5
longitude 5.22580
latitude 43.174 }
print { text "Now Tracking Earth."
row -3
column 25
duration 3 }
wait { duration 10 }
# ------------------
# Hubble
# ------------------
# Select Hubble
select { object "Hubble" }
goto { time 20
distance 7
upframe "chase"
}
center {time 5}
wait {duration 10}
changedistance {duration 11 rate -3}
wait {duration 10}
# ------------------
# Earth / Marseille
# ------------------
# Select the Cours Ju...
select { object "Sol/Earth" }
track {time 10 }
goto{
time 5
distance 5
upframe "chase"
}
gotolonglat { time 20
distance 2
longitude 5.22580
latitude 43.174 }
track {time 5 }
follow {time 5 }
print { text "Now Tracking Marseilles"
row -3
column 25
duration 3 }
wait { duration 20 }
print { text "The script is finished."
row -3
column 25
duration 5 }
wait { duration 5 }
}
I'm quiet new in wrting scripts so I'm biginning with something very simple. I spend a lot of time in readins forum and testing scripts to understand how it works but I can't do what I'd like to. Coud somebody help me?
The idea is simple: we're watching the earth (orbit around) go to Hubble, look the machine and then go down to Marseilles/France as close as possible. Easy isn't it? I'm always having "jumps" or can't fin Hubble anymore or can't get closer. It's getting late here and I tried and tried, when I find something, something else is going wrong?€¦ Could somebody help me?
thanks in advance
sam
{
# INITIALIZATION
cancel {}
cls {}
renderflags { clear "automag|boundaries|comettails|constellations|grid|orbits|markers"}
renderflags { set "atmospheres|cloudmaps|galaxies" }
labels { clear "asteroids|comets|constellations|galaxies|moons|planets|spacecraft|stars"}
unmarkall {}
set { name "AmbientLightLevel" value 0.30 }
set { name "FOV" value 30.0 }
timerate { rate 1000.0 }
time { utc "2007-06-21T06:00:00.0000" }
# ------------------
# Earth
# ------------------
# Select the Earth
select { object "Sol/Earth" }
track {time 5 }
follow {time 5 }
goto{
time 5
distance 15
upframe "chase"
}
orbit{duration 19
rate 20
axis [0 1 0]
}
timerate { rate 100.0 }
gotolonglat { time 20
distance 5
longitude 5.22580
latitude 43.174 }
print { text "Now Tracking Earth."
row -3
column 25
duration 3 }
wait { duration 10 }
# ------------------
# Hubble
# ------------------
# Select Hubble
select { object "Hubble" }
goto { time 20
distance 7
upframe "chase"
}
center {time 5}
wait {duration 10}
changedistance {duration 11 rate -3}
wait {duration 10}
# ------------------
# Earth / Marseille
# ------------------
# Select the Cours Ju...
select { object "Sol/Earth" }
track {time 10 }
goto{
time 5
distance 5
upframe "chase"
}
gotolonglat { time 20
distance 2
longitude 5.22580
latitude 43.174 }
track {time 5 }
follow {time 5 }
print { text "Now Tracking Marseilles"
row -3
column 25
duration 3 }
wait { duration 20 }
print { text "The script is finished."
row -3
column 25
duration 5 }
wait { duration 5 }
}