asset_library/constants.py

27 lines
686 B
Python
Raw Normal View History

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 = [
2022-12-25 02:54:50 +01:00
("ACTION", "Action", "", "ACTION", 0),
("COLLECTION", "Collection", "", "OUTLINER_OB_GROUP_INSTANCE", 1),
("FILE", "File", "", "FILE", 2)
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
LIBRARY_TYPE_DIR = MODULE_DIR / 'library_types'
LIBRARY_TYPES = []
2022-12-25 02:54:50 +01:00
ADAPTER_DIR = MODULE_DIR / 'adapters'
2022-12-27 23:49:57 +01:00
ADAPTERS = []
2023-01-17 18:05:22 +01:00
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 = {}