This plugin adds python bindings to the bakkesmod sdk through pybind11.
Inspired by BakkesPython made by @Martinii89.
- Make sure the
BAKKESMODSDK_DIR
value in generate_sdk.py is set to the correct folder. - Generate the bindings with for example
generate_sdk.py bakkesmodplugin.cpp -o out -pybind11-module
- Fix all the errors, most of them should be detailed in bindings.cpp.
- Make sure you have the python libs installed from https://www.python.org/downloads/.
- Compile the PythonPlugin with
PythonPlugin.sln
.
- Change the plugin directory by changing
pp_plugin_dir
, default is${BakkesModFolder}/py
. - Load plugins with
pplugin load ${plugin_name}
.
- see Examples