vse_toolbox/constants.py

40 lines
1.0 KiB
Python

from vse_toolbox import appdirs
import bpy
import bpy.utils.previews
import os
from pathlib import Path
from tempfile import gettempdir
MODULE_DIR = Path(__file__).parent
TRACKERS_DIR = MODULE_DIR / 'resources' / 'trackers'
TRACKERS = []
PROJECTS = []
EDITS = [('NONE', 'None', '', 0)]
MOVIES = [('NONE', 'None', '', 0)]
SOUNDS = [('NONE', 'None', '', 0)]
# ASSETS = [('NONE', 'None', '', 0)]
EDIT_SUFFIXES = ['.xml', '.edl']
MOVIE_SUFFIXES = ['.mov', '.mp4']
SOUND_SUFFIXES = ['.eac3', '.mka', '.ogg', '.mp3', '.oga', '.ac3', '.flac', '.aiff', '.wav', '.wma', '.aac', '.m4a', '.aif', '.mp2']
ASSET_ITEMS = []
PROJECT_ITEMS = []
EPISODE_ITEMS = []
CONFIG_DIR = Path(appdirs.user_config_dir(__package__.split('.')[0]))
APP_TEMPLATES_DIR = Path(MODULE_DIR, 'resources', 'app_templates')
REVIEW_TEMPLATE_BLEND = Path(APP_TEMPLATES_DIR, 'Review', 'startup.blend')
PREVIEWS_DIR = CONFIG_DIR / 'thumbnails'
TASK_ITEMS = []
ASSET_PREVIEWS = bpy.utils.previews.new()
CASTING_BUFFER = CONFIG_DIR / 'casting.json'
SPREADSHEET = []