I'm grateful you want to donate and help out but I don't want it. You can keep the money. A Thanks is good enough. :have a nice day:
And I updated the addon to v0.1.1 which fixes some importing issues and adds some more features in Blenders UI. Next up is the last big step of handling exporting.
from turok_export_model import save
or import turok_object. turok_export
import bpy
from turok_export_model import save
def export_bin_model(filepath):
# Set export options
exportSettings = {
"filepath": filepath,
"use_selection": True,
"global_matrix": None,
"path_mode": "AUTO",
"exportMaterials": False,
"copyTextures": False,
"copyTextureSets": False,
"exportAnim": False,
"animNLATracks": False,
"useModelsDir": True
}
# Call the TurokEXBlenderTools export_models operator with the export settings
bpy.ops.turok_object.export_model(**exportSettings)
selected_obj = bpy.context.object
# Set the export path and filename
export_path = "C:/Users/raule/Desktop/junk"
export_filename = selected_obj.name + ".bin"
filepath = export_path + export_filename
export_bin_model(filepath)