This commit is contained in:
2024-04-09 22:19:38 +08:00
commit 00a69e11e8
15 changed files with 1382 additions and 0 deletions

23
mednodes/preferences.py Normal file
View File

@@ -0,0 +1,23 @@
import bpy
from pathlib import Path
from .external_package import ExternalPackagePreferences
class MedNodesPreferences(bpy.types.AddonPreferences, ExternalPackagePreferences):
bl_idname = __package__
cache_dir: bpy.props.StringProperty(
name="Python Log Directory",
subtype='DIR_PATH',
default=Path(Path.home(), '.mednodes').as_posix()
) # type: ignore
def draw(self, context):
layout = self.layout
layout.label(text="Configuration")
layout.prop(self, 'cache_dir', text='Set Cache Directory')
# ExternalPackagePreferences Config
self.requirements_dir = Path(__file__).parent.as_posix()
super().draw(context)