Page 1 of 1

Marking an object in CELX

Posted: 27.11.2005, 14:13
by rickindy
I know I've missed something covered by the docs, but I'm having problems marking an object. Here's the code I have:

observer = celestia:getobserver()
mars = celestia:find("Sol/Mars")
observer:center(mars)
wait(6)
mars:mark("#FFFF00", "x", 20 )
mars:unmark()

Mars gets selected and centerered.
I have tried what I think are all the combinations of color strings and marking symbols, but Mars doesn't get marked.

What have I missed?

Thanks in advance for the help!

Posted: 27.11.2005, 14:26
by selden
I think you need to insert a "wait" between the mark and unmark calls. As it is, you're immediately removing the mark before Celestia has had a chance to update the screen even once.

Posted: 27.11.2005, 14:55
by rickindy
I am such a DOOFUS!

I knew that if you suggested something, it should work (I am aware of your reputation). I put in the wait and still no marker.

I looked at the rendering options and I had markers turned off.

(smacks forehead)

Thanks so much!