generated from stilobique/BlenderTemplate
Make a very basic plugin setup
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user