Rename the main folder

This commit is contained in:
2024-05-16 22:12:11 +02:00
parent 814e158eb5
commit 9cbe89e4b8
12 changed files with 10 additions and 0 deletions
+56
View File
@@ -0,0 +1,56 @@
import bpy
from pathlib import Path
def check_game_project():
"""Define the unity game project"""
unity_game_project = Path("W:\\", "Graou Studio", "Game Projects", "Fange Prototype", "Fange Prototype.sln")
if unity_game_project.exists():
return unity_game_project.parent.as_posix()
else:
return ''
class GRAOU_AddonPreference(bpy.types.AddonPreferences):
"""
Configuration about the Fange pipeline
"""
bl_idname = __package__.split(".")[0]
project_path: bpy.props.StringProperty(
name='Fange Unity project',
description='Select your Unity game project',
default=check_game_project(),
subtype='FILE_PATH',
)
subdir_graph: bpy.props.StringProperty(
name='Subdir about assets folder',
default=r'Assets\Graph',
subtype='DIR_PATH',
)
subdir_props: bpy.props.StringProperty(
name='The props subdir',
default='Props',
subtype='DIR_PATH',
)
subdir_buildings: bpy.props.StringProperty(
name='The buildings subdir',
default='Buildings',
subtype='DIR_PATH',
)
subdir_characters: bpy.props.StringProperty(
name='The characters subdir',
default='Characters',
subtype='DIR_PATH',
)
def draw(self, context):
layout = self.layout
layout.label(text='Config all setup about the pipeline.')
layout.prop(self, 'project_path')