Can it work in reverse too, from SE to US2?
I would like to do that in the future, but it doesn't right now. It's more complicated than US2 to SE for a number of reasons, the biggest being the math, and the second being that US2 .simulation files are HUGE and have a lot of information that can't be "calculated" from a .sc file. I'm sure I could come up with something. Maybe while we're in quarantine I'll start looking at this.
Wow SFGameZ64, this is great! Do you think this can be used to implement spacecraft orbits into SpaceEngine?
Hmm it depends on what you mean by this question. I guess if you put a small object in US2 that represents a "spacecraft" (they don't have spacecraft in the game), you could use this to convert it's orbit to SE, then if you have a spacecraft model you could edit the .sc file to show the model.
Actually my solar system generator can generate spacecraft around planets. This is what it looks like in a .sc file if you're interested:
Spacecraft "Ship Name"
Model "file path leading to .sss file"
ParentBody "Parent Name"
Normal Orbit Stuff