API Question Python in Orbiter

EarthMoon

The Earth and the Moon
Joined
Jul 12, 2022
Messages
49
Reaction score
35
Points
18
Location
Germany
Website
earthmoon.glitch.me
Preferred Pronouns
He, His, Him or You, Your, Yours
Is there a way to use Python in Orbiter (to load Python modules) and to use the Orbiter API from Python?
I don't want things like "Take Orbiter source code, use a C/C++ lib to load Python and compile Orbiter" or even hacks (Process ID/Name injectors, etc.)
 
Last edited:

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,605
Reaction score
2,326
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
Is there a way to use Python in Orbiter (to load Python modules) and to use the Orbiter API from Python?
I don't want things like "Take Orbiter source code, use a C/C++ lib to load Python and compile Orbiter" or even hacks (Process ID/Name injectors, etc.)

Short answer: Yes.
Longer answer: You could also write a generic vessel DLL that exposes the Vessel API of Orbiter to Python, instead of going the full way and add internal Python Support. Same for generic Plugins or MFDs. There is nothing that prevents you from writing a more or less generic MFD that can be extended by Python.

You could take a look at the Lua support of Orbiter to see how it is done.
 
Top