I primarily program in Python and would rather use it with Armory than Haxe. Can I do that? It makes sense to use Python because it’s already part of Blender and is used for just about everything as far as extensions is concerned. Python works for my workflow the best (and I’m sure many others). Is it possible? If not would it be possible in a later release?
The short answer is that you cannot use Python to program Armory games, and you probably won’t be able to in the future, but here is a more in-depth explanation:
Armory is built on Kha, which is a platform abstraction layer for making graphics programs in Haxe. Kha is designed to be ultra portable, and was built on Haxe because it is the only language that has such a robust ability to publish to multiple platforms. Haxe and Kha is the secret to how Armory can publish to all of the platforms that it can publish to and it is an integral part of Armory that isn’t going to change in the future.
These guys have done some pretty good work converting Python to Haxe:https://github.com/nightblade9/dragon. It doesn’t work for KHA and is still newly under development but it shows what could be done. But I guess using nodes and a small amount of Haxe won’t kill me either.
I’m interested in using python as well.
I tried this program, and did a successful run, with no errors, but no file was generated.
@Philip_Koreski were you able to get a haxe file from this?
Have a look at the date.
Saw it. What, are the posters dead and buried?
Or did you mean the date of dragon?
Hi, looks like Koreski is not active anymore.
I guess he didn’t outlive armory. Or maybe a python got him.