Refactor and Copy Paste Casting
This commit is contained in:
+5
-4
@@ -5,7 +5,7 @@ import re
|
||||
|
||||
from bpy.app.handlers import persistent
|
||||
from pathlib import Path
|
||||
from vse_toolbox.bl_utils import get_settings
|
||||
from vse_toolbox.bl_utils import get_scene_settings, get_strip_settings
|
||||
|
||||
|
||||
def get_strips(channel=0, selected_only=False):
|
||||
@@ -38,7 +38,7 @@ def get_shot_sequence(shot):
|
||||
def rename_strips(
|
||||
strips, template, increment=10, start_number=0, by_sequence=False):
|
||||
scn = bpy.context.scene
|
||||
settings = get_settings()
|
||||
settings = get_scene_settings()
|
||||
|
||||
project = settings.active_project
|
||||
episode = settings.active_episode
|
||||
@@ -70,7 +70,7 @@ def rename_strips(
|
||||
|
||||
def set_channels():
|
||||
scn = bpy.context.scene
|
||||
settings = get_settings()
|
||||
settings = get_scene_settings()
|
||||
items = settings.rna_type.bl_rna.properties['channel'].enum_items
|
||||
|
||||
for i, c in enumerate(items.keys(), start=1):
|
||||
@@ -146,6 +146,7 @@ def import_edit(filepath, adapter="cmx_3600", clean_sequencer=False):
|
||||
)
|
||||
strip.blend_alpha = 0.0
|
||||
strip.select = False
|
||||
strip.vsetb_strip_settings.source_name = child.name
|
||||
|
||||
except Exception as e:
|
||||
print('e: ', e)
|
||||
@@ -213,7 +214,7 @@ def clean_sequencer(edit=False, movie=False, sound=False):
|
||||
@persistent
|
||||
def get_active_strip(scene):
|
||||
scn = bpy.context.scene
|
||||
settings = get_settings()
|
||||
settings = get_scene_settings()
|
||||
|
||||
if settings.auto_select_strip == False:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user