Automation of Celestia?

General discussion about Celestia that doesn't fit into other forums.
Topic author
spacedonkey
Posts: 10
Joined: 29.07.2005
With us: 19 years 3 months

Automation of Celestia?

Post #1by spacedonkey » 29.07.2005, 12:23

Is there a way to control Celestia from another program, (Windows platform)?

I want to make Celestia respond to user inputs in an interactive learning environment. I can not see how you would do this with scripts.

I am hoping there is an API or other automation method available.

Thanks for any tips

Christophe
Developer
Posts: 944
Joined: 18.07.2002
With us: 22 years 4 months
Location: Lyon (France)

Post #2by Christophe » 29.07.2005, 14:47

Sorry, but no, there is currently no way to do this.

Adding a DCOM interface to Celestia can probably be done without too much trouble.
Christophe

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #3by selden » 29.07.2005, 15:56

Yes, Celestia *can* be controlled from another program.

Don't forget that Celestia can be run from another program by sending a "Celestia" command to the system's command interpreter. You can pass the name of a script file on that same command line. That script file could contain only one command or several. (i.e. your controlling program could write a file containing appropriate .CEL or .CELX commands.) If Celestia already is running, then the command line will be passed to that running copy.

Of course, this is clunky and slow, but it does work.
Selden


Return to “Celestia Users”