Celestia/Celx Scripting

From Wikibooks, the open-content textbooks collection

Jump to: navigation, search


[edit] CELX Scripting

CELX scripts can be used to interact with the user, change Celestia's viewpoint and what it shows, and to do sophisticated calculations.

CELX first appeared in Celestia v1.3.1. CELX consists of the Lua-programming language combined with a Celestia-specific API - i.e. CELX uses the Lua syntax and most of the basic Lua-libraries, and adds Celestia-specific functionality. The advantage over CEL-scripting is that it's a real programming language, including control structures like functions and loops, and offers a lot more possibilities (e.g. it can be interactive). However this makes CELX harder to learn and use, the main disadvantage over CEL-scripting.

[edit] External Links

A few example Lua scripts for Celestia are available on SourceForge.

A comprehensive list of Celestia's Lua functions is available on Harald Schmidt's Web site. (His document is in the process of being merged into this WikiBook.)

Some helpful .CEL and .CELX scripts for Celestia are available on Don G's Celestia Scripting Resources