2022-12-24 15:30:32 +01:00
|
|
|
from pathlib import Path
|
2023-01-17 18:05:22 +01:00
|
|
|
import bpy
|
2022-12-24 15:30:32 +01:00
|
|
|
|
|
|
|
|
|
|
|
DATA_TYPE_ITEMS = [
|
2024-07-04 11:53:58 +02:00
|
|
|
("NodeTree", "Node Group", "", "NODETREE", 0),
|
|
|
|
("Material", "Material", "", "MATERIAL", 1),
|
|
|
|
("Object", "Object", "", "OBJECT_DATA", 2),
|
|
|
|
("Action", "Action", "", "ACTION", 3),
|
|
|
|
("Collection", "Collection", "", "OUTLINER_OB_GROUP_INSTANCE", 4),
|
|
|
|
("File", "File", "", "FILE", 5)
|
2022-12-24 15:30:32 +01:00
|
|
|
]
|
2024-07-04 11:53:58 +02:00
|
|
|
|
|
|
|
DATA_TYPE_GEO_ITEMS = [DATA_TYPE_ITEMS[0], DATA_TYPE_ITEMS[2]]
|
|
|
|
DATA_TYPE_SHADING_ITEMS = [DATA_TYPE_ITEMS[0], DATA_TYPE_ITEMS[1]]
|
|
|
|
|
|
|
|
CATALOG_ITEMS = {}
|
2022-12-24 15:30:32 +01:00
|
|
|
DATA_TYPES = [i[0] for i in DATA_TYPE_ITEMS]
|
|
|
|
ICONS = {identifier: icon for identifier, name, description, icon, number in DATA_TYPE_ITEMS}
|
|
|
|
|
|
|
|
ASSETLIB_FILENAME = "blender_assets.libs.json"
|
|
|
|
MODULE_DIR = Path(__file__).parent
|
|
|
|
RESOURCES_DIR = MODULE_DIR / 'resources'
|
2023-01-17 18:05:22 +01:00
|
|
|
|
2024-05-27 17:22:45 +02:00
|
|
|
PLUGINS_DIR = MODULE_DIR / 'plugins'
|
2024-07-04 11:53:58 +02:00
|
|
|
PLUGINS = {}
|
2024-05-27 17:22:45 +02:00
|
|
|
PLUGINS_ITEMS = [('NONE', 'None', '', 0)]
|
2023-01-17 18:05:22 +01:00
|
|
|
|
2024-07-04 11:53:58 +02:00
|
|
|
LIB_DIR = MODULE_DIR / 'libs'
|
|
|
|
LIB_ITEMS = []
|
|
|
|
|
|
|
|
SCRIPTS_DIR = MODULE_DIR / 'scripts'
|
|
|
|
|
2022-12-27 23:49:57 +01:00
|
|
|
PREVIEW_ASSETS_SCRIPT = MODULE_DIR / 'common' / 'preview_assets.py'
|
2023-01-17 18:05:22 +01:00
|
|
|
|
|
|
|
#ADD_ASSET_DICT = {}
|
|
|
|
|