Asteroid Cel Script question

All about writing scripts for Celestia in Lua and the .cel system
Topic author
Sky Guy
Posts: 13
Joined: 14.11.2006
With us: 18 years
Location: Palomar Mountain

Asteroid Cel Script question

Post #1by Sky Guy » 16.11.2006, 18:03

I am writing a Cel script. If I want asteroid orbits to be suddenly rendered in my script, what is the command to turn them on?

Thanks.

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Re: Asteroid Cel Script question

Post #2by t00fri » 16.11.2006, 18:19

Sky Guy wrote:I am writing a Cel script. If I want asteroid orbits to be suddenly rendered in my script, what is the command to turn them on?

Thanks.


Instead of asking people for every single Cel command, how about turning to the much more modern and powerful Celx scripting language and referring e.g. to

http://celestia.h-schmidt.net/celx-summary-latest.html

Bye Fridger
Image

Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 2 months

Post #3by Malenfant » 16.11.2006, 21:33

Or to actually be directly helpful :roll:, there's a fairly lengthy list of cel script commands here:
http://www.donandcarla.com/Celestia/cel ... _v1_0g.htm

To view asteroid orbits I think you need to use: renderflags {set "asteroids"}
To clear them I think you need to use: renderflags {clear "asteroids"}

I think that's the right general format anyway, now that I look at the entry for renderflags there though I'm not sure if you can do that with just asteroid orbits. In which case, this might be something you can only do with celx.
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system


Return to “Scripting”