Refactor and Copy Paste Casting

This commit is contained in:
2023-03-21 18:33:29 +01:00
parent 3cc254bdc9
commit e14dc2136d
9 changed files with 297 additions and 161 deletions
+6 -2
View File
@@ -2,6 +2,8 @@ import appdirs
import bpy
import os
from pathlib import Path
from tempfile import gettempdir
MODULE_DIR = Path(__file__).parent
TRACKERS_DIR = MODULE_DIR / 'resources' / 'trackers'
@@ -11,7 +13,7 @@ PROJECTS = []
EDITS = [('NONE', 'None', '', 0)]
MOVIES = [('NONE', 'None', '', 0)]
SOUNDS = [('NONE', 'None', '', 0)]
ASSETS = [('NONE', 'None', '', 0)]
# ASSETS = [('NONE', 'None', '', 0)]
EDIT_SUFFIXES = ['.xml', '.edl']
MOVIE_SUFFIXES = ['.mov', '.mp4']
@@ -20,4 +22,6 @@ SOUND_SUFFIXES = ['.mp3', '.aaf', '.flac']
CONFIG_DIR = Path(appdirs.user_config_dir(__package__.split('.')[0]))
PREVIEWS_DIR = CONFIG_DIR / 'thumbnails'
ASSET_PREVIEWS = bpy.utils.previews.new()
ASSET_PREVIEWS = bpy.utils.previews.new()
CASTING_BUFFER = CONFIG_DIR / 'casting.json'