Page 1 of 1

arange a celestial body...

Posted: 18.02.2005, 15:07
by rifl
Hi, I've a question (once more :D)

Also... fore example I write in a celscript this:

select { object "Sol/Mercury" }
follow { }
gotoloc { time 3 position [ 0 0 20000 ] xrot 0 yrot 0 zrot 0 }
print { text "Watch the sun, while we orbiting mercury" origin "bottomleft" row -3 column 0 duration 3 }
orbit { axis [ 0 1 0 ] rate 30 duration 16 }
wait { duration 2 }


so the planet is in center Is it possible to move the planet for example in the right or left corner? (ore somewhere else)

Please write me the commands -. i think its possible with setposition(), but thats time based, i think - when im in another year I wouldn't found the planet....

Propably its the gotoloc() command, but i didn't know how to use it. right....

And... when I want to use the setposition(), how can I find out my actual position in celestia to use it then in the script??

Please help, thanks rifl

Posted: 19.02.2005, 03:54
by Bob Hegwood
rifl,

My computer's acting *really* strange of late, but the following code is
what you want, I think...

Play around with the "xrot" value until you see the Sun revolving around
Mercury while you're orbiting it.

I had this working fine, but I'm afraid that my computer is just about to
die now, so I can't be certain that this will work on your system.

Also, if you'd like a better description of the cel scripting commands, you
can find very helpful manuals on the Motherlode.

Hope this helps.

Take care, Bob

{
select {object "Sol/Mercury"}
goto {time 5.0 distance 10.0}
wait {duration 5.0}
follow {}
gotoloc {time 10.0 position [12440 12440 12440] xrot 36 yrot -55 zrot -35}
wait {duration 10.0}
follow {}
print {text "Watch the sun, while we're orbiting Mercury" row -3 column 1 duration 4.0}
wait {duration 4.0}
orbit {axis [ 0 1 0 ] rate 30 duration 25.0}
wait {duration 25.0}
timerate {rate 1.0}
}

Posted: 05.03.2005, 04:49
by DoubleAught
Thanks Mr. Hegwood.
I don't know if it was what the original poster was looking to for,
but it certainly helped me.
I'm struggling with scripting, and in absence of a VERY high
programming language or GUI .....(yes, I'm a 'drag & drop' imbecile)
I am reduced to 'cut, copy and pasting' bits and pieces of other people's
scripts, taking no credit for their creation of course.
AutoPilot is a respectable effort but seems to be fixated on the horizon
whenever movement is involved. CtrlCScript is a little unwieldy, but still infinitely better than anything I could ever come up with.
In the meantime.......
thanks again

Posted: 05.03.2005, 15:37
by Bob Hegwood
Well, I'm glad it helped somebody...

Thanks for the thanks. :wink:

Take care, Bob