Page 1 of 1

reload .xyz trajectory data

Posted: 22.03.2017, 12:27
by lukass
Dears,

I would like to reload .xyz files via a .celx file while Celestia is running.

Is that anyhow possible? Or is Celestia restricted to only read in orbit/trajectory data when it is launched?

Cheers,
Lukas

Posted: 22.03.2017, 20:17
by selden
Although Celestia's native SampledOrbit and SampledTrajectory xyz files can't be reloaded while Celestia is running, you can define and write your own ScriptedOrbit and ScriptedRotation functions which reload their xyz (or other data) files whenever you want. Since they have to be written in Lua, they can do whatever Lua programming can do, including I/O.

See https://en.wikibooks.org/wiki/Celestia/Trajectories#ScriptedOrbit
https://en.wikibooks.org/wiki/Celestia/Rotation_Models#ScriptedRotation
and
https://en.wikibooks.org/wiki/Celestia/Celx_Scripting/CELX_Lua_Methods