Of course, as it turns out, it's so trivially easy that it's usually overlooked. I know I didn't think of it. It took Runar complaining that .celx InfoURLs had stopped working for him to cause my AHA!
When you specify an InfoURL in an SSC file, Celestia tells the operating system to open the specified file using the program associated with its filetype. If it's of type .html, your default Web browser is run. If it's of type .celx, Celestia is run. If it's of type .txt, your default text editor is run. If it has a filetype that's associated with an encryption program, well, I think you get the picture.
Hiding the file is more difficult. Hiding the object in Celestia's 3D space is easy, but isn't particularly effective by itself. After all, it does have to be specified using an InfoURL in an SSC file. And that URL does point to a file that's on the computer's disk, so the file can be found using standard search utilities. Hiding it in plain sight is probably the best recourse.
So, anyhow, here's an SSC file which hides a bright yellow diary in the center of the Sun. Call it something else and include it in your largest Addon
Code: Select all
"MyDiary" "Sol" {
Radius 1000
Color [ 1 1 0 ]
Emissive true
EllipticalOrbit { SemiMajorAxis 1e-32 Period 1e32}
InfoURL "mydiary.txt"
}
At least an empty mydiary.txt must already exist.