一.Blender静态模型导出TRF文件
trf_mesh_exporter.py
import bpy
trf_meshes = []
trf_contents = []
trf_export_path = 'D:/work/Tool/MB_Bannerlord/BlenderTrfExporter/building.trf'
class TrfMesh:
def __init__(self):
self.mesh_name = ''
self.mesh_materials = []
self.vertex_cnt = 0
self.vertex_fvf_cnt = 0
self.morph_key_cnt = 0
self.bone_cnt = 0
self.face_cnt = 0
self.verts = []
self.vert_fvfs = []
self.faces = []
self.morph_keys = []
self.bones = []
self.bone_weights = []
class TrfVert:
def __init__(self):
self.x = 0
se