Make a very basic plugin setup

This commit is contained in:
2024-05-04 17:33:16 +02:00
parent aec4ee2a99
commit e9858cb55c
5 changed files with 143 additions and 103 deletions
+28
View File
@@ -0,0 +1,28 @@
import bpy
from pathlib import Path
def get_export_preset():
"""
Select a FBX preset you want use.
"""
# TODO Subdir need to be exposed
fbx_preset_paths = bpy.utils.preset_paths(r"operator\export_scene.fbx")
# TODO Preset name need to be exposed
fbx_preset = Path(fbx_preset_paths[0], "sm-unity-building.py")
if fbx_preset_paths:
print(f'[Pipeline] Get the preset path "{fbx_preset}"')
return fbx_preset
else:
print(f'[Pipeline] Preset folder not found')
def apply_mesh_and_join():
"""
This function make a new mesh with all selected asset.
"""
pass