import movie replace and fix
This commit is contained in:
+6
-4
@@ -8,6 +8,7 @@ import bpy
|
||||
from bpy.app.handlers import persistent
|
||||
|
||||
from vse_toolbox.bl_utils import get_scene_settings, get_strip_settings
|
||||
from vse_toolbox.file_utils import install_module
|
||||
from vse_toolbox.constants import SOUND_SUFFIXES
|
||||
#import multiprocessing
|
||||
#from multiprocessing.pool import ThreadPool
|
||||
@@ -237,9 +238,10 @@ def render_strips(strips, template):
|
||||
scn.frame_end = scene_end
|
||||
scn.render.filepath = render_path
|
||||
|
||||
def import_edit(filepath, adapter="cmx_3600", clear=False):
|
||||
import opentimelineio as otio
|
||||
from opentimelineio.schema import (
|
||||
def import_edit(filepath, adapter="cmx_3600", channel='Shots'):
|
||||
otio = install_module('opentimelineio')
|
||||
|
||||
from otio.schema import (
|
||||
Clip,
|
||||
ExternalReference,
|
||||
Gap,
|
||||
@@ -297,7 +299,7 @@ def import_edit(filepath, adapter="cmx_3600", clear=False):
|
||||
strip.frame_final_start = frame_start
|
||||
strip.frame_final_end = frame_end
|
||||
else:
|
||||
strip = sequences.new_effect(
|
||||
strip = sequencer.new_effect(
|
||||
name=child.name,
|
||||
type='COLOR',
|
||||
channel=channel,
|
||||
|
||||
Reference in New Issue
Block a user