Celestia/Celx Scripting/CELX Lua Methods/CEL command orbitflags

orbitflags
orbitflags { set|clear  } 

Set (turn on) or clear (turn off) rendering of specific orbits, when orbits are turned on using the renderflags command.

CELX equivalent:

Based on the celestia:setorbitflags method.

Multiple features can be enabled at once by giving multiple arguments to this method, separated with a comma ",".
 * Use the celestia:setorbitflags {  = boolean } method to enable or disable the rendering of orbitss. Note the curly braces.  is a table which contains the orbitflags as keys and booleans as values for each key. The orbitflag keys must be one of:
 * Planet, Moon, Asteroid, Comet, Spacecraft, Invisible, Unknown, DwarfPlanet, MinorMoon, Star.

celestia:setorbitflags{  = false,  = true }

Example: Enable the rendering of the orbits of planets and dwarfplanets.

CEL:

orbitflags { set "Planet|DwarfPlanet" } renderflags { set "orbits" }

CELX

orbitflagstable = { } orbitflagstable.Planet = true orbitflagstable.DwarfPlanet = true celestia:setorbitflags(orbitflagstable) renderflagstable = { } renderflagstable.orbits = true celestia:setrenderflags(renderflagstable)

-- OR --

-- Shorter notation, but note the curly braces. celestia:setorbitflags{ Planet = true, DwarfPlanet = true } celestia:setrenderflags{ orbits = true }

Back to CEL command index