andyli / pyextern

Extern generator for the Haxe Python target.
The Unlicense
61 stars 8 forks source link

How about add blender python api extern? #8

Closed sonygod closed 4 years ago

sonygod commented 6 years ago

how about add blender python api extern?

melMass commented 4 years ago

Here is my untested attempt, I'm testing it soon but if you want to try and report :) blender-2.82.zip

sonygod commented 4 years ago

@melMass ,thank you for your work!

I used blender as a render engine for my Unity app before,I'll check if I had time.

MolassesLover commented 3 months ago

Here is my untested attempt, I'm testing it soon but if you want to try and report :) blender-2.82.zip

Hiya, how did you go about making this?

melMass commented 3 months ago

Hiya, how did you go about making this?

Hey, it was 4 years ago so hard to tell, but your poke made me realize Haxe was still a thing 😅 . So I just tried following the readme's instruction, roughly:


# python venv
uv venv -p 3.11 --seed
overlay use .venv/bin/activate.nu

# install python deps
uv pip install -r requirements.txt
uv pip install bpy

# install haxe dependencies
haxelib build.hxml

# build it
haxe build.hxml

# you now have the bindings generator as Main.py
python Main.py bpy out
# saved in out/bpy

Here is 4.2.0 (Still not tested):

MolassesLover commented 3 months ago

Oh that makes a lot of sense! I didn't know Blender was available through PyPi. Thank you so much for the help!