vse_toolbox/constants.py

34 lines
850 B
Python
Raw Normal View History

2023-04-14 18:55:00 +02:00
from vse_toolbox import appdirs
2023-03-20 19:05:22 +01:00
import bpy
import bpy.utils.previews
2023-03-14 13:38:04 +01:00
import os
from pathlib import Path
2023-03-21 18:33:29 +01:00
from tempfile import gettempdir
2023-03-14 13:38:04 +01:00
MODULE_DIR = Path(__file__).parent
TRACKERS_DIR = MODULE_DIR / 'resources' / 'trackers'
TRACKERS = []
PROJECTS = []
2023-03-16 18:32:17 +01:00
EDITS = [('NONE', 'None', '', 0)]
MOVIES = [('NONE', 'None', '', 0)]
SOUNDS = [('NONE', 'None', '', 0)]
2023-03-21 18:33:29 +01:00
# ASSETS = [('NONE', 'None', '', 0)]
2023-03-16 18:32:17 +01:00
EDIT_SUFFIXES = ['.xml', '.edl']
MOVIE_SUFFIXES = ['.mov', '.mp4']
2023-07-18 16:42:16 +02:00
SOUND_SUFFIXES = ['.eac3', '.mka', '.ogg', '.mp3', '.oga', '.ac3', '.flac', '.aiff', '.wav', '.wma', '.aac', '.m4a', '.aif', '.mp2']
2023-03-16 18:32:17 +01:00
2023-05-31 12:52:35 +02:00
ASSET_ITEMS = []
2023-03-20 19:05:22 +01:00
CONFIG_DIR = Path(appdirs.user_config_dir(__package__.split('.')[0]))
PREVIEWS_DIR = CONFIG_DIR / 'thumbnails'
2023-03-16 18:32:17 +01:00
2023-04-20 00:12:39 +02:00
TASK_ITEMS = []
2023-03-21 18:33:29 +01:00
ASSET_PREVIEWS = bpy.utils.previews.new()
2023-05-08 18:25:04 +02:00
CASTING_BUFFER = CONFIG_DIR / 'casting.json'
SPREADSHEET = []