fix "exclude audio" à l'import
parent
02f374af55
commit
c00041005f
|
@ -18,7 +18,7 @@ SOUNDS = [('NONE', 'None', '', 0)]
|
||||||
|
|
||||||
EDIT_SUFFIXES = ['.xml', '.edl']
|
EDIT_SUFFIXES = ['.xml', '.edl']
|
||||||
MOVIE_SUFFIXES = ['.mov', '.mp4']
|
MOVIE_SUFFIXES = ['.mov', '.mp4']
|
||||||
SOUND_SUFFIXES = ['.mp3', '.aaf', '.flac']
|
SOUND_SUFFIXES = ['.mp3', '.aaf', '.flac', '.wav']
|
||||||
|
|
||||||
CONFIG_DIR = Path(appdirs.user_config_dir(__package__.split('.')[0]))
|
CONFIG_DIR = Path(appdirs.user_config_dir(__package__.split('.')[0]))
|
||||||
PREVIEWS_DIR = CONFIG_DIR / 'thumbnails'
|
PREVIEWS_DIR = CONFIG_DIR / 'thumbnails'
|
||||||
|
|
|
@ -6,6 +6,7 @@ import re
|
||||||
from bpy.app.handlers import persistent
|
from bpy.app.handlers import persistent
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from vse_toolbox.bl_utils import get_scene_settings, get_strip_settings
|
from vse_toolbox.bl_utils import get_scene_settings, get_strip_settings
|
||||||
|
from vse_toolbox.constants import SOUND_SUFFIXES
|
||||||
|
|
||||||
|
|
||||||
def get_strips(channel=0, selected_only=False):
|
def get_strips(channel=0, selected_only=False):
|
||||||
|
@ -124,7 +125,7 @@ def import_edit(filepath, adapter="cmx_3600", clean_sequencer=False):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# FIXME Exclude Audio for now
|
# FIXME Exclude Audio for now
|
||||||
if any(child.name.endswith(ext) for ext in ('.wav', '.mp3')):
|
if any(child.name.lower().endswith(ext) for ext in SOUND_SUFFIXES):
|
||||||
channel = get_channel('Audio')
|
channel = get_channel('Audio')
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue