asset_library/constants.py

15 lines
499 B
Python

from pathlib import Path
DATA_TYPE_ITEMS = [
("ACTION", "Action", "", "ACTION", 1),
("COLLECTION", "Collection", "", "OUTLINER_OB_GROUP_INSTANCE", 2),
("FILE", "File", "", "FILE", 3)
]
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'
ADAPTER_DIR = MODULE_DIR / 'adapters'