Page 1 of 1

gotoloc from cel url

Posted: 19.01.2007, 03:12
by abourov
Hi,

I am writing a .cel script and am trying to use the gotoloc command to go to a position I recorded from a cel url.

The url is: cel://Follow/Earth/2007-02-06T02:14:25. ... 7&lm=49152

However every time I try to write the script, the camera moves to a random point and simply does NOT go where I want it to!

The script I have written is:

Code: Select all

{
time { utc "2007-02-06T02:14:25.0000" }

timerate { rate 1 }

select { object "Sol/Earth" }
center { }
follow { }
setframe { coordsys "universal"}
gotoloc {
time 5
x "gPAn/7pUbUyyDA"
y "D0beK1NwgP7//////////w"
z "TmzXcLoWYlX1/////////w"
ow 0.662127
ox -0.352722
oy 0.642429
oz 0.156393
}
}


Can anyone recognise what is wrong with the script? Have I taken the wrong values from the cel url? Have I forgotten to put in some parameters ? Any help much appreciated!

Posted: 29.01.2007, 11:28
by Adirondack
abourov,

delete the 'setframe' line (universal is Celestia's default) or replace the line with:

Code: Select all

setframe { ref "Sol/Earth"
           coordsys "universal" }


Does this help?

Adirondack

Posted: 29.01.2007, 23:29
by abourov
Yes, thank you!

new problem :?:

Posted: 12.02.2007, 01:03
by abourov
Hi, there is now a new problem though.

The gotoloc command works fine, but when I use it to go to a view in space with a spacecraft it loads in a dodgy manner. I.e. when I load a view of saturn with Voyager II in the foreground, what happens is that the view of saturn loads fine, then about 1.5 second later Voyager II just zooms into its position.

Would there be any way to make it any smoother? I have tried preloading Voyager2 but it is still a really fast zoom effect. Would any other factors be influencing the way in which the url position is loaded with the gotoloc command?

Thanks heaps...