Since the last update to the commands was quite a while ago and there are now a lot more CEL/CELX commands available an update was long overdue.
Since Celestia version 1.6.0 the original listing of only 35 CEL commands has been expanded to 51 CEL commands and for some commands, new arguments have been added.
Marco Klunder was so kind to provide this new complied information.
The Document will be organized into subsections to be easily updated in case new functions are included:
New CEL commands
Version 1.6.0
Version 1.6.1
Version 1.7.0
New CELX commands:
Version 1.5.0
Version 1.6.0
Version 1.6.1
Version 1.7.0
Regards,
Guckytos
New CEL and CELX commands available in Celestia
New CEL and CELX commands available in Celestia
Last edited by Alexell on 28.03.2017, 21:41, edited 1 time in total.
Reason: Update links
Reason: Update links
CEL commands added in 1.6.0
The detailed explanation and examples of these commands and arguments can be accessed by clicking on the corresponding link.
- capture
Take a screenshot and save it to disk. - constellationcolor
Set the colour of individual constellations. - constellations
Set the rendering of individual constellations. - deleteview
Delete a specific view in Multiview mode. - exit
Shutdown Celestia. - labels
Additional labelflag arguments:- i18nconstellations
- openclusters
- nebulae
- dwarfplanets
- minormoons
- globulars
- orbitflags
Set or clear the rendering of specific orbits. - Renderflags
Additional renderflag arguments:- cloudshadows
- ecliptic
- eclipticgrid
- equatorialgrid
- galacticgrid
- horizontalgrid.
- renderpath
Choose for specific Vertex Shading. - setactiveview
Make a specific view the active view in Multiview mode. - setambientlight
Set brightness level of Ambient Light. - setgalaxylightgain
Set the level of Galaxy light gain (brightness). - setlabelcolor
Set the colour of specific label types. - setlinecolor
Set the colour of specific line types. - setradius
Set the new radius of an object. - settextureresolution
Set the texture resolution. - singleview
Return to single view, when in Multiview mode. - splitview
Split the view horizontal or vertical.
CEL commands added in 1.6.1
The detailed explanation and examples of these commands and arguments can be accessed by clicking on the corresponding link.
- settextcolor
Set the colour of text and messages.
CELX commands added with 1.5.0
Here are the new CELX scripting features that have been added to Celestia 1.5.0.
The detailed explanation and examples of these commands and arguments can be accessed by clicking on the corresponding link.
The detailed explanation and examples of these commands and arguments can be accessed by clicking on the corresponding link.
- celestia:setrenderflags()
Additional renderflag arguments:- cloudshadows
- nebulae
- openclusters
- celestia:setlabelflags()
Additional labelflag arguments:- i18nconstellations
- openclusters
- nebulae.
- celestia:getdsocount()
Return the total number of Deep Space Objects in the DSO catalogue. - celestia:getdso()
Return a specific DSO Object. - celestia:utctotdb()
Convert a UTC calendar date/time to a TDB Julian date.
Starting with version 1.5.0, although Celestia still displays UTC on the screen, it uses the TDB time scale internally for everything else. - celestia:tdbtoutc()
Convert a TDB Julian date to a UTC calendar date/time.
Starting with version 1.5.0, although Celestia still displays UTC on the screen, it uses the TDB time scale internally for everything else. - celestia:stars()
Return an iterator to enumerate all stars in the Celestia Catalogue. - celestia:dsos()
Return an iterator to enumerate all DSOs in the Celestia Catalogue. - celestia:gettextwidth()
Return the width in pixels of a text string. - celestia:getaltazimuthmode()
Return indication if alt-azimuth mode is enabled or disabled. - celestia:setaltazimuthmode()
Enable or disable alt-azimuth mode. - celestia:getoverlayelements()
- Return an indication whether specific overlay elements in the corners of your screen are rendered or not.
- Overlay elements is a table which contains Time, Velocity, Selection, Frame.
- celestia:setoverlayelements()
- Enable or disable the rendering of overlay elements in the corners of your screen.
- Overlay elements is a table which contains Time, Velocity, Selection, Frame.
- celestia:getgalaxylightgain()
Return the current level of Galaxy light gain (brightness). - celestia:setgalaxylightgain()
Set the level of Galaxy light gain (brightness). - celestia:log()
Write text to the Celestia log file. - celestia:registereventhandler()
Replace Celestia's default event handling with behavior, defined in a function. - celestia:geteventhandler()
Return an indicator whether or not Celestia's default event handling for a specified event type is replaced. - celetia:setlabelcolor()
Set the colour of specific label types. - celestia:setlinecolor()
Set the colour of specific line types. - observer:gettrackedobject()
Return the current tracked object for this observer. - object:type()
Return type of the object: galaxy, nebula or opencluster, instead of the generic deepsky previously returned. - object:getinfo()
Return Type of DSO among galaxy, nebula or opencluster, instead of the generic deepsky previously returned.
Also return hubbleType of galaxies, catalogNumber of DSO and absoluteMagnitude of DSO. - object:mark()
- New symbols to use as markers:
- circle
- disk
- filledsquare
- uparrow
- downarrow
- leftarrow
- rightarrow
- New alpha argument to set transparency and new label argument to add labels to markers.
- New symbols to use as markers:
- object:setradius()
Return the radius of the object. - object:localname()
Return the localized name for the object.
CELX commands added with 1.6.0
And here are the new CELX scripting features that have been added to Celestia 1.6.0.
The detailed explanation and examples of these commands and arguments can be accessed by clicking on the corresponding link
The detailed explanation and examples of these commands and arguments can be accessed by clicking on the corresponding link
- celestia:setrenderflags()
Additional renderflag arguments:- globulars
- ecliptic
- equatorialgrid
- galacticgrid
- eclipticgrid
- horizontalgrid.
- celestia:setlabelflags()
Additional labelflag arguments:- dwarfplanets
- minormoons
- globulars.
- celestia:setorbitflags()
Additional orbitflag arguments:- DwarfPlanet
- MinorMoon
- Star
- celestia:newframe()
Additional frame argument: bodyfixed. - celestia:getlabelcolor()
Return the colour of specific label types. - celestia:getlinecolor()
Return the colour of specific line types. - celestia:getsystemtime()
Return the current system time. - celestia:showconstellations()
Enable the rendering of one or many constellations. - celestia:hideconstellations()
Disable the rendering of one or many constellations. - celestia:setconstellationcolor()
Set the colour of specific constellations. - celestia:ispaused()
Return an indicator whether time is paused or not. - celestia:gettextureresolution()
Return the current texture resolution. - celestia:settextureresolution()
Set the texture resolution. - celestia:windowbordersvisible()
Return an indicator whether or not the window borders are visible around each view in case of a Multiview scene. - celestia:setwindowbordersvisible()
Set the visibility of window borders are visible around each view in case of a Multiview scene. - observer:makeactiveview()
Make the view of this observer the current active view. - object:type()
Return additional type of the object: surfacefeature, component, dwarfplanet, minormoon. - object:mark()
New occludable argument indicating whether the marker will be hidden by objects in front of it. - object:visible()
Return an indicator whether or not the object is visible. - object:setvisible()
Set the object visibility on or off. - object:setorbitcolor()
Set a specific orbit color for this object. - object:orbitcoloroverridden()
Return an indicator whether or not the object orbit color may be overridden. - object:setorbitcoloroverridden()
Determine whether or not the default orbit colour of the object may be replaced with another colour. - object:orbitvisibility()
Return the object's orbit visibility setting. - object:setorbitvisibility()
Set the orbit visibility policy for this object. - object:addreferencemark()
Display a variety of informational graphics for the object. - object:removereferencemark()
Remove the informational graphics for the object. - object:catalognumber()
Return the catalog number for a star in the specified catalog. - object:locations()
Return an iterator over all the locations associated with the object. - object:bodyfixedframe()
Return the body-fixed frame for the object. - object:equatorialframe()
Return the equatorial frame for the object. - object:orbitframe()
Return the frame in which the orbit for the object is defined at a particular time. - object:bodyframe()
Return the frame in which the orientation for the object is defined at a particular time. - object:getphase()
Get the active timeline phase for the object at the specified time. - object:phases()
Return an iterator over all the phases in the object's timeline. - frame:getcoordinatesystem()
Additional type bodyfixed may be returned as coordinate system of the frame, which replaces planetographic. - phase:timespan()
Return the start and end times for this timeline phase. - phase:orbitframe()
Return the orbit frame for this timeline phase. - phase:bodyframe()
Return the body frame for this timeline phase. - phase:getposition()
Return the position in frame coordinates at the specified time. - phase:getorientation()
Return the orientation in frame coordinates at the specified time.
CELX commands added with 1.6.1
Here are the new CELX scripting features that have been added to Celestia 1.6.1.
The detailed explanation and examples of these commands and arguments can be accessed by clicking on the corresponding link.
The detailed explanation and examples of these commands and arguments can be accessed by clicking on the corresponding link.
- celestia:synchronizetime()
Set whether time is synchronized or not between all views, in case of a Multiview scene. - celestia:istimesynchronized()
Return an indicator whether time is synchronized or not between all views, in case of a Multiview scene. - celestia:seturl()
Make an observer goto the a specified celURL. - celestia:geturl()
Return the position, orientation, time, render options and field of view of the specified observer as a celURL. - celestia:settextcolor()
Set the colour of text and messages. - celestia:gettextcolor()
Return the current colour of text and messages. - celestia:runscript()
Launch another CEL or CELX script. - Observer:orbit()
Orbit the observer around the current reference object.
- Alexell
- Site Admin
- Posts: 303
- Joined: 07.10.2010
- Age: 30
- With us: 14 years 1 month
- Location: Moscow, Russia
- Contact:
CELX commands will be added with 1.7.0
Here are the new CELX scripting features that will be added to Celestia 1.7.0.
- celestia:getstarcolor()
Return the current star color (blackbody_d65 or enhanced). - celestia:setstarcolor()
Set the star color (blackbody_d65 or enhanced). - celestia:play()
Audio file playback - celestia:overlay()
Display external image on screen. - celestia:verbosity()
Controlling the mode of displaying information about selected object on screen.
-------------- - celestia:setlocationflags() - added by Croc 15.11.2018
Additional locationflags arguments:- albedo
- arcus
- cavus
- colles
- eruptive center
- facula
- flexus
- flumen
- fretum
- labes
- labyrinthus
- lacuna
- lacus
- large
- lenticula
- lingula
- macula
- oceanus
- palus
- plume
- promontorium
- satellite
- saxum
- scopulus
- serpens
- sinus
- sulcus
- vastitas
- virga
- volcano - to exclude
- capital
- trench
- historical
- cosmodrom
Admin of celestia.space
PC: Intel Core i7-8700 @ 3.20GHz, SSD, 16 Gb RAM, NVIDIA GeForce GTX 1080, Creative Sound Blaster ZxR. Windows 10 x64.
Phone: iPhone Xs 256 Gb. iOS 14.
PC: Intel Core i7-8700 @ 3.20GHz, SSD, 16 Gb RAM, NVIDIA GeForce GTX 1080, Creative Sound Blaster ZxR. Windows 10 x64.
Phone: iPhone Xs 256 Gb. iOS 14.
- Alexell
- Site Admin
- Posts: 303
- Joined: 07.10.2010
- Age: 30
- With us: 14 years 1 month
- Location: Moscow, Russia
- Contact:
CEL commands will be added with 1.7.0
Here are the new CEL scripting features that will be added to Celestia 1.7.0.
- play
Audio file playback. - overlay
Display external image on screen. - verbosity
Controlling the mode of displaying information about selected object on screen.
Admin of celestia.space
PC: Intel Core i7-8700 @ 3.20GHz, SSD, 16 Gb RAM, NVIDIA GeForce GTX 1080, Creative Sound Blaster ZxR. Windows 10 x64.
Phone: iPhone Xs 256 Gb. iOS 14.
PC: Intel Core i7-8700 @ 3.20GHz, SSD, 16 Gb RAM, NVIDIA GeForce GTX 1080, Creative Sound Blaster ZxR. Windows 10 x64.
Phone: iPhone Xs 256 Gb. iOS 14.
-
- Developer
- Posts: 234
- Joined: 05.01.2018
- Age: 38
- With us: 6 years 10 months
- Location: Wrocław
- Contact:
I think celestia:play won't be implemented in 1.7. Previous implementation (although working) is ugly as hell, while my current attempt using OpenAL is still buggy. I think we shoul waait with sound support until plugins architecture will be ready.
Still formally developer, but too tired to develop. I feel sad, but Celestia is going forward despite it.
Btw, the universe is ruled by electricity.
Btw, the universe is ruled by electricity.
- Croc
- Forum Admin
- Posts: 437
- Joined: 10.08.2016
- With us: 8 years 3 months
- Location: Udomlya, Tver region, Russia
CELX commands will be added with 1.7.0. Updated list of locationflags arguments.
viewtopic.php?p=135815#p135815
viewtopic.php?p=135815#p135815
Creator of the GUI "Lua Universal Tools"
25/V/1947 - 30/III/2019
25/V/1947 - 30/III/2019