Page 1 of 1

Disabling Orbit Flags in .cel Scripts

Posted: 04.05.2007, 16:58
by starforce84
Probably a stupid question, but ...

I have a .cel script I've written, and I want to show the planet orbits but not the orbits of spacecraft, comets, and asteroids.

I can manually go into View Options and turn on and off the orbits I want displayed. I can do

Code: Select all

renderflags {clear "orbits"}
to clear ALL of the orbits and "set" to turn back on the ones I have selected in View Options, and I can clear labels with the

Code: Select all

labels {clear ""}
command.

But is there a way, within a .cel script, to turn off individual orbit options like you can manually do in the View Options window?

Thank you!

Posted: 04.05.2007, 17:58
by Vincent
As an example, you can use the following code to display orbits for planets and moons in a CEL script:

Code: Select all

{
orbitflags { set "Planet|Moon" }
}


Here are all the orbitflags that are currently available:
Planet
Moon
Asteroid
Comet
Spacecraft
Invisible
Unknown

Posted: 04.05.2007, 18:40
by starforce84
I'd never heard of that flag, nor had I seen it anywhere in any of the "help" I read. That's exactly what I was after, though.

Thank you!