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

constellations
constellations { set|clear   } 

Set the rendering of individual constellations defined in , -- OR -- Clear the rendering of individual constellations defined in .

Notes:
 * 1) Besides setting or clearing the rendering of the constellation(s), this command also takes effect on the constellation name(s).
 * 2) The renderflags { set "constellations" } command must be given prior to this command to enable rendering of constellations.

CELX equivalent:

Based on the celestia:showconstellations and  celestia:hideconstellations methods.


 * Define a table containing the name(s)  of the constellation(s) on which the rendering change must be applied.

table = {"name1", "name2"}


 * Use celestia:showconstellations method to enable rendering of the constellation name(s) table.

celestia:showconstellations(table)


 * Use celestia:hideconstellations method to disable rendering of the constellation name(s) table.

celestia:hideconstellations(table)

Summarized:

table = {"name1", "name2"} celestia:showconstellations(table)

-- OR --

table = {"name1", "name2"} celestia:hideconstellations(table)

Example: Only show the zodiacal constellations.

CEL:

renderflags { set "constellations" } constellations { clear "all"} constellations { set "Pisces Aries Taurus Gemini Cancer Leo Virgo Libra                       Scorpius Ophiuchus Sagittarius Capricornus Aquarius"}

CELX:

celestia:setrenderflags{constellations = true} zodiac = {"Pisces", "Aries", "Taurus", "Gemini", "Cancer", "Leo", "Virgo", "Libra", "Scorpius", "Ophiuchus", "Sagittarius", "Capricornus", "Aquarius"} celestia:hideconstellations celestia:showconstellations(zodiac)

Back to CEL command index