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

From Wikibooks, open books for an open world
Jump to navigation Jump to search

setvisibilitylimit[edit | edit source]

setvisibilitylimit { magnitude <number> }

Set the Magnitude of stars to be displayed, when Auto-Magnitude is off.
The Celestia user interface allows a range from about 1.0 to 15.0.

Arguments:

magnitude <number>
Defines the magnitude at which stars will become visible, when Auto-Magnitude is off. Default is 6.0.


CELX equivalent:

Based on the celestia:setrenderflags() and celestia:setfaintestvisible() methods.

  • Disable "AutoMag" and set the faintest visible magnitude.
    <number> is the new faintest magnitude.
celestia:setrenderflags{automag = false}
celestia:setfaintestvisible( <number> )

Example:

CEL:

setvisibilitylimit { magnitude 6.5 }

CELX with the celestia:setrenderflags() and celestia:setfaintestvisible() methods:

celestia:setrenderflags{automag = false}
celestia:setfaintestvisible(6.5)


Back to CEL command index