Page 1 of 1
New CEL and CELX commands available in Celestia
Posted: 06.03.2011, 10:37
by Guckytos
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.0Version 1.6.1Version 1.7.0New CELX commands:
Version 1.5.0Version 1.6.0Version 1.6.1Version 1.7.0Regards,
Guckytos
CEL commands added in 1.6.0
Posted: 06.03.2011, 10:41
by Guckytos
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
Posted: 06.03.2011, 10:42
by Guckytos
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
Posted: 06.03.2011, 10:43
by Guckytos
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.
- celestia:setrenderflags()
Additional renderflag arguments:
- cloudshadows
- nebulae
- openclusters
Also valid for celestia:getrenderflags(), celestia:show(), celestia:hide() methods. - celestia:setlabelflags()
Additional labelflag arguments:
- i18nconstellations
- openclusters
- nebulae.
Also valid for celestia:getlabelflags(), celestia:showlabel(), celestia:hidelabel() methods. - 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.
- object:setradius()
Return the radius of the object. - object:localname()
Return the localized name for the object.
CELX commands added with 1.6.0
Posted: 06.03.2011, 10:45
by Guckytos
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
- celestia:setrenderflags()
Additional renderflag arguments:
- globulars
- ecliptic
- equatorialgrid
- galacticgrid
- eclipticgrid
- horizontalgrid.
Also valid for celestia:getrenderflags(), celestia:show(), celestia:hide() methods. - celestia:setlabelflags()
Additional labelflag arguments:
- dwarfplanets
- minormoons
- globulars.
Also valid for celestia:getlabelflags(), celestia:showlabel(), celestia:hidelabel() methods. - celestia:setorbitflags()
Additional orbitflag arguments:
Also valid for celestia:getorbitflags() method. - 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
Posted: 06.03.2011, 10:46
by Guckytos
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.
- 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.
CELX commands will be added with 1.7.0
Posted: 04.03.2017, 15:05
by Alexell
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
Enable or disable the labeling of specific location types.
CEL commands will be added with 1.7.0
Posted: 20.03.2017, 15:03
by Alexell
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.
Posted: 12.11.2018, 09:06
by pirogronian
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.
Posted: 15.11.2018, 05:55
by Croc
CELX commands will be added with 1.7.0. Updated list of locationflags arguments.
viewtopic.php?p=135815#p135815