2009-11-01 15:21:20 +00:00
|
|
|
# ##### BEGIN GPL LICENSE BLOCK #####
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
2009-11-03 07:23:02 +00:00
|
|
|
#
|
2009-11-01 15:21:20 +00:00
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
2009-11-03 07:23:02 +00:00
|
|
|
#
|
2009-11-01 15:21:20 +00:00
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software Foundation,
|
2010-02-12 13:34:04 +00:00
|
|
|
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2009-11-01 15:21:20 +00:00
|
|
|
#
|
|
|
|
# ##### END GPL LICENSE BLOCK #####
|
2009-10-31 20:16:59 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
# <pep8 compliant>
|
2009-06-08 16:48:12 +00:00
|
|
|
import bpy
|
2011-08-12 06:57:00 +00:00
|
|
|
from bpy.types import Header, Menu, Panel
|
2009-06-08 16:48:12 +00:00
|
|
|
|
2010-05-16 12:15:04 +00:00
|
|
|
|
2009-06-08 16:48:12 +00:00
|
|
|
def act_strip(context):
|
2009-10-31 23:35:56 +00:00
|
|
|
try:
|
|
|
|
return context.scene.sequence_editor.active_strip
|
2009-11-21 00:05:43 +00:00
|
|
|
except AttributeError:
|
2009-10-31 23:35:56 +00:00
|
|
|
return None
|
|
|
|
|
2009-06-08 16:48:12 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class SEQUENCER_HT_header(Header):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_space_type = 'SEQUENCE_EDITOR'
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
st = context.space_data
|
|
|
|
|
|
|
|
row = layout.row(align=True)
|
|
|
|
row.template_header()
|
|
|
|
|
|
|
|
if context.area.show_menus:
|
2011-08-13 17:52:13 +00:00
|
|
|
row.menu("SEQUENCER_MT_view")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-06-24 03:30:50 +00:00
|
|
|
if st.view_type in {'SEQUENCER', 'SEQUENCER_PREVIEW'}:
|
2011-08-13 17:52:13 +00:00
|
|
|
row.menu("SEQUENCER_MT_select")
|
|
|
|
row.menu("SEQUENCER_MT_marker")
|
|
|
|
row.menu("SEQUENCER_MT_add")
|
|
|
|
row.menu("SEQUENCER_MT_strip")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-04-18 18:46:16 +00:00
|
|
|
layout.prop(st, "view_type", expand=True, text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-06-24 03:30:50 +00:00
|
|
|
if st.view_type in {'PREVIEW', 'SEQUENCER_PREVIEW'}:
|
2010-04-18 18:46:16 +00:00
|
|
|
layout.prop(st, "display_mode", expand=True, text="")
|
2009-12-14 21:42:25 +00:00
|
|
|
|
2011-06-24 03:30:50 +00:00
|
|
|
if st.view_type == 'SEQUENCER':
|
2009-12-17 14:45:47 +00:00
|
|
|
row = layout.row(align=True)
|
|
|
|
row.operator("sequencer.copy", text="", icon='COPYDOWN')
|
|
|
|
row.operator("sequencer.paste", text="", icon='PASTEDOWN')
|
|
|
|
|
2009-12-14 21:42:25 +00:00
|
|
|
layout.separator()
|
|
|
|
layout.operator("sequencer.refresh_all")
|
2011-06-24 03:30:50 +00:00
|
|
|
elif st.view_type == 'SEQUENCER_PREVIEW':
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
|
|
|
layout.operator("sequencer.refresh_all")
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.prop(st, "display_channel", text="Channel")
|
2009-10-31 19:31:45 +00:00
|
|
|
else:
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.prop(st, "display_channel", text="Channel")
|
2009-06-08 16:48:12 +00:00
|
|
|
|
2010-07-08 10:03:29 +00:00
|
|
|
ed = context.scene.sequence_editor
|
|
|
|
if ed:
|
|
|
|
row = layout.row(align=True)
|
|
|
|
row.prop(ed, "show_overlay", text="", icon='GHOST_ENABLED')
|
|
|
|
if ed.show_overlay:
|
|
|
|
row.prop(ed, "overlay_frame", text="")
|
|
|
|
row.prop(ed, "overlay_lock", text="", icon='LOCKED')
|
|
|
|
|
2011-10-12 12:49:45 +00:00
|
|
|
layout.template_running_jobs()
|
|
|
|
|
2009-12-16 13:27:30 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class SEQUENCER_MT_view_toggle(Menu):
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "View Type"
|
2009-12-14 21:42:25 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2009-12-16 13:27:30 +00:00
|
|
|
|
2009-12-14 21:42:25 +00:00
|
|
|
layout.operator("sequencer.view_toggle").type = 'SEQUENCER'
|
|
|
|
layout.operator("sequencer.view_toggle").type = 'PREVIEW'
|
|
|
|
layout.operator("sequencer.view_toggle").type = 'SEQUENCER_PREVIEW'
|
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class SEQUENCER_MT_view(Menu):
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "View"
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
st = context.space_data
|
|
|
|
|
2010-07-30 14:56:17 +00:00
|
|
|
layout.operator("sequencer.properties", icon='MENU_PANEL')
|
2010-09-07 15:17:42 +00:00
|
|
|
|
2010-07-30 14:56:17 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-06-24 03:30:50 +00:00
|
|
|
if st.view_type in {'SEQUENCER', 'SEQUENCER_PREVIEW'}:
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.operator("sequencer.view_all", text="View all Sequences")
|
2011-06-24 03:30:50 +00:00
|
|
|
if st.view_type in {'PREVIEW', 'SEQUENCER_PREVIEW'}:
|
2010-02-07 23:39:44 +00:00
|
|
|
layout.operator_context = 'INVOKE_REGION_PREVIEW'
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.operator("sequencer.view_all_preview", text="Fit preview in window")
|
|
|
|
layout.operator("sequencer.view_zoom_ratio", text="Show preview 1:1").ratio = 1.0
|
2010-02-07 23:39:44 +00:00
|
|
|
layout.operator_context = 'INVOKE_DEFAULT'
|
2010-07-08 10:03:29 +00:00
|
|
|
|
|
|
|
# # XXX, invokes in the header view
|
|
|
|
# layout.operator("sequencer.view_ghost_border", text='Overlay Border')
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("sequencer.view_selected")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-07-22 11:20:14 +00:00
|
|
|
if st.show_frames:
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.operator("anim.time_toggle", text="Show Seconds")
|
2011-07-22 11:20:14 +00:00
|
|
|
else:
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.operator("anim.time_toggle", text="Show Frames")
|
2011-07-22 11:20:14 +00:00
|
|
|
|
2010-08-17 07:49:53 +00:00
|
|
|
layout.prop(st, "show_frame_indicator")
|
2009-10-31 19:31:45 +00:00
|
|
|
if st.display_mode == 'IMAGE':
|
2010-08-17 07:49:53 +00:00
|
|
|
layout.prop(st, "show_safe_margin")
|
2009-10-31 19:31:45 +00:00
|
|
|
if st.display_mode == 'WAVEFORM':
|
2010-08-17 07:49:53 +00:00
|
|
|
layout.prop(st, "show_separate_color")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-12-03 16:28:50 +00:00
|
|
|
layout.separator()
|
2010-03-16 18:01:22 +00:00
|
|
|
layout.prop(st, "use_marker_sync")
|
|
|
|
layout.separator()
|
2009-12-04 17:54:48 +00:00
|
|
|
|
2009-12-03 16:28:50 +00:00
|
|
|
layout.operator("screen.area_dupli")
|
|
|
|
layout.operator("screen.screen_full_area")
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-12-04 17:54:48 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class SEQUENCER_MT_select(Menu):
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Select"
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.operator("sequencer.select_active_side", text="Strips to the Left").side = 'LEFT'
|
|
|
|
layout.operator("sequencer.select_active_side", text="Strips to the Right").side = 'RIGHT'
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.operator("sequencer.select_handles", text="Surrounding Handles").side = 'BOTH'
|
|
|
|
layout.operator("sequencer.select_handles", text="Left Handle").side = 'LEFT'
|
|
|
|
layout.operator("sequencer.select_handles", text="Right Handle").side = 'RIGHT'
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2011-09-28 14:12:27 +00:00
|
|
|
layout.operator_menu_enum("object.select_grouped", "type", text="Grouped")
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("sequencer.select_linked")
|
|
|
|
layout.operator("sequencer.select_all_toggle")
|
|
|
|
layout.operator("sequencer.select_inverse")
|
2009-06-08 16:48:12 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class SEQUENCER_MT_marker(Menu):
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Marker"
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2011-11-03 12:47:39 +00:00
|
|
|
from .space_time import marker_menu_generic
|
|
|
|
marker_menu_generic(layout)
|
2009-06-08 16:48:12 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class SEQUENCER_MT_change(Menu):
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Change"
|
2011-08-12 06:08:22 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
layout.operator_context = 'INVOKE_REGION_WIN'
|
|
|
|
|
|
|
|
layout.operator_menu_enum("sequencer.change_effect_input", "swap")
|
|
|
|
layout.operator_menu_enum("sequencer.change_effect_type", "type")
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.operator("sequencer.change_path", text="Path/Files")
|
2011-08-12 06:08:22 +00:00
|
|
|
|
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class SEQUENCER_MT_add(Menu):
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Add"
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
layout.operator_context = 'INVOKE_REGION_WIN'
|
|
|
|
|
2010-12-02 22:58:23 +00:00
|
|
|
if len(bpy.data.scenes) > 10:
|
|
|
|
layout.operator_context = 'INVOKE_DEFAULT'
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.operator("sequencer.scene_strip_add", text="Scene...")
|
2010-12-02 22:58:23 +00:00
|
|
|
else:
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.operator_menu_enum("sequencer.scene_strip_add", "scene", text="Scene...")
|
2010-12-02 22:58:23 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.operator("sequencer.movie_strip_add", text="Movie")
|
|
|
|
layout.operator("sequencer.image_strip_add", text="Image")
|
|
|
|
layout.operator("sequencer.sound_strip_add", text="Sound")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("SEQUENCER_MT_add_effect")
|
2009-06-08 16:48:12 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class SEQUENCER_MT_add_effect(Menu):
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Effect Strip..."
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
layout.operator_context = 'INVOKE_REGION_WIN'
|
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.operator("sequencer.effect_strip_add", text="Add").type = 'ADD'
|
|
|
|
layout.operator("sequencer.effect_strip_add", text="Subtract").type = 'SUBTRACT'
|
|
|
|
layout.operator("sequencer.effect_strip_add", text="Alpha Over").type = 'ALPHA_OVER'
|
|
|
|
layout.operator("sequencer.effect_strip_add", text="Alpha Under").type = 'ALPHA_UNDER'
|
|
|
|
layout.operator("sequencer.effect_strip_add", text="Cross").type = 'CROSS'
|
|
|
|
layout.operator("sequencer.effect_strip_add", text="Gamma Cross").type = 'GAMMA_CROSS'
|
|
|
|
layout.operator("sequencer.effect_strip_add", text="Multiply").type = 'MULTIPLY'
|
|
|
|
layout.operator("sequencer.effect_strip_add", text="Over Drop").type = 'OVER_DROP'
|
|
|
|
layout.operator("sequencer.effect_strip_add", text="Plugin").type = 'PLUGIN'
|
|
|
|
layout.operator("sequencer.effect_strip_add", text="Wipe").type = 'WIPE'
|
|
|
|
layout.operator("sequencer.effect_strip_add", text="Glow").type = 'GLOW'
|
|
|
|
layout.operator("sequencer.effect_strip_add", text="Transform").type = 'TRANSFORM'
|
|
|
|
layout.operator("sequencer.effect_strip_add", text="Color").type = 'COLOR'
|
|
|
|
layout.operator("sequencer.effect_strip_add", text="Speed Control").type = 'SPEED'
|
|
|
|
layout.operator("sequencer.effect_strip_add", text="Multicam Selector").type = 'MULTICAM'
|
|
|
|
layout.operator("sequencer.effect_strip_add", text="Adjustment Layer").type = 'ADJUSTMENT'
|
2009-06-08 16:48:12 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class SEQUENCER_MT_strip(Menu):
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Strip"
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
layout.operator_context = 'INVOKE_REGION_WIN'
|
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.operator("transform.transform", text="Grab/Move").mode = 'TRANSLATION'
|
|
|
|
layout.operator("transform.transform", text="Grab/Extend from frame").mode = 'TIME_EXTEND'
|
2009-10-31 19:31:45 +00:00
|
|
|
# uiItemO(layout, NULL, 0, "sequencer.strip_snap"); // TODO - add this operator
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.operator("sequencer.cut", text="Cut (hard) at frame").type = 'HARD'
|
|
|
|
layout.operator("sequencer.cut", text="Cut (soft) at frame").type = 'SOFT'
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("sequencer.images_separate")
|
2011-08-14 03:59:22 +00:00
|
|
|
layout.operator("sequencer.offset_clear")
|
2010-05-03 22:17:05 +00:00
|
|
|
layout.operator("sequencer.deinterlace_selected_movies")
|
== Sequencer ==
This patch adds:
* support for proxy building again (missing feature from Blender 2.49)
additionally to the way, Blender 2.49 worked, you can select several
strips at once and make Blender build proxies in the background (using
the job system)
Also a new thing: movie proxies are now build into AVI files, and
the proxy system is moved into ImBuf-library, so that other parts
of blender can also benefit from it.
* Timecode support: to fix seeking issues with files, that have
a) varying frame rates
b) very large GOP lengths
c) are broken inbetween
d) use different time code tracks
the proxy builder can now also build timecode indices, which are
used (optionally) for seeking.
For the first time, it is possible, to do frame exact seeking on
all file types.
* Support for different video-streams in one video file (can be
selected in sequencer, other parts of blender can also use it,
but UI has to be added accordingly)
* IMPORTANT: this patch *requires* ffmpeg 0.7 or newer, since
older versions don't support the pkt_pts field, that is essential
for building timecode indices.
Windows and Mac libs are already updated, Linux-users have to build
their own ffmpeg verions until distros keep up.
2011-08-28 14:46:03 +00:00
|
|
|
layout.operator("sequencer.rebuild_proxy")
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("sequencer.duplicate")
|
|
|
|
layout.operator("sequencer.delete")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
strip = act_strip(context)
|
|
|
|
|
|
|
|
if strip:
|
|
|
|
stype = strip.type
|
2010-04-17 19:05:53 +00:00
|
|
|
|
2010-04-04 18:56:03 +00:00
|
|
|
# XXX note strip.type is never equal to 'EFFECT', look at seq_type_items within rna_sequencer.c
|
|
|
|
if stype == 'EFFECT':
|
|
|
|
pass
|
|
|
|
# layout.separator()
|
|
|
|
# layout.operator("sequencer.effect_change")
|
|
|
|
# layout.operator("sequencer.effect_reassign_inputs")
|
2009-10-31 23:35:56 +00:00
|
|
|
elif stype == 'IMAGE':
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-12-08 18:09:08 +00:00
|
|
|
# layout.operator("sequencer.image_change")
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("sequencer.rendersize")
|
2009-10-31 23:35:56 +00:00
|
|
|
elif stype == 'SCENE':
|
2010-04-04 18:56:03 +00:00
|
|
|
pass
|
|
|
|
# layout.separator()
|
|
|
|
# layout.operator("sequencer.scene_change", text="Change Scene")
|
2009-10-31 23:35:56 +00:00
|
|
|
elif stype == 'MOVIE':
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2010-04-04 18:56:03 +00:00
|
|
|
# layout.operator("sequencer.movie_change")
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("sequencer.rendersize")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("sequencer.meta_make")
|
|
|
|
layout.operator("sequencer.meta_separate")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
#if (ed && (ed->metastack.first || (ed->act_seq && ed->act_seq->type == SEQ_META))) {
|
|
|
|
# uiItemS(layout);
|
|
|
|
# uiItemO(layout, NULL, 0, "sequencer.meta_toggle");
|
|
|
|
#}
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
|
|
|
layout.operator("sequencer.reload")
|
2010-07-03 22:25:22 +00:00
|
|
|
layout.operator("sequencer.reassign_inputs")
|
2010-10-30 12:04:00 +00:00
|
|
|
layout.operator("sequencer.swap_inputs")
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
|
|
|
layout.operator("sequencer.lock")
|
|
|
|
layout.operator("sequencer.unlock")
|
|
|
|
layout.operator("sequencer.mute")
|
|
|
|
layout.operator("sequencer.unmute")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.operator("sequencer.mute", text="Mute Deselected Strips").unselected = True
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("sequencer.snap")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-12-15 10:35:50 +00:00
|
|
|
layout.operator_menu_enum("sequencer.swap", "side")
|
2009-06-08 16:48:12 +00:00
|
|
|
|
2010-06-21 17:37:50 +00:00
|
|
|
layout.separator()
|
|
|
|
|
|
|
|
layout.operator("sequencer.swap_data")
|
2011-08-12 06:08:22 +00:00
|
|
|
layout.menu("SEQUENCER_MT_change")
|
2010-06-21 17:37:50 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2010-08-02 02:55:12 +00:00
|
|
|
class SequencerButtonsPanel():
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_space_type = 'SEQUENCE_EDITOR'
|
|
|
|
bl_region_type = 'UI'
|
2009-12-16 13:27:30 +00:00
|
|
|
|
2010-08-05 21:58:57 +00:00
|
|
|
@staticmethod
|
|
|
|
def has_sequencer(context):
|
2011-06-24 03:30:50 +00:00
|
|
|
return (context.space_data.view_type in {'SEQUENCER', 'SEQUENCER_PREVIEW'})
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-09 01:37:09 +00:00
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
|
|
|
return cls.has_sequencer(context) and (act_strip(context) is not None)
|
2009-06-08 16:48:12 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2010-08-02 02:55:12 +00:00
|
|
|
class SequencerButtonsPanel_Output():
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_space_type = 'SEQUENCE_EDITOR'
|
|
|
|
bl_region_type = 'UI'
|
2009-06-09 16:19:34 +00:00
|
|
|
|
2010-08-05 21:58:57 +00:00
|
|
|
@staticmethod
|
|
|
|
def has_preview(context):
|
2011-06-24 03:30:50 +00:00
|
|
|
return (context.space_data.view_type in {'PREVIEW', 'SEQUENCER_PREVIEW'})
|
2009-12-14 21:42:25 +00:00
|
|
|
|
2010-08-09 01:37:09 +00:00
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
|
|
|
return cls.has_preview(context)
|
2009-06-08 16:48:12 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class SEQUENCER_PT_edit(SequencerButtonsPanel, Panel):
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Edit Strip"
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2010-07-13 08:20:34 +00:00
|
|
|
scene = context.scene
|
|
|
|
frame_current = scene.frame_current
|
2009-10-31 19:31:45 +00:00
|
|
|
strip = act_strip(context)
|
|
|
|
|
|
|
|
split = layout.split(percentage=0.3)
|
2011-09-21 15:18:38 +00:00
|
|
|
split.label(text="Name:")
|
2009-11-23 00:27:30 +00:00
|
|
|
split.prop(strip, "name", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
split = layout.split(percentage=0.3)
|
2011-09-21 15:18:38 +00:00
|
|
|
split.label(text="Type:")
|
2009-11-23 00:27:30 +00:00
|
|
|
split.prop(strip, "type", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
split = layout.split(percentage=0.3)
|
2011-09-21 15:18:38 +00:00
|
|
|
split.label(text="Blend:")
|
2010-08-20 06:09:58 +00:00
|
|
|
split.prop(strip, "blend_type", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-07-13 08:20:34 +00:00
|
|
|
row = layout.row(align=True)
|
2009-10-31 19:31:45 +00:00
|
|
|
sub = row.row()
|
|
|
|
sub.active = (not strip.mute)
|
2011-09-21 15:18:38 +00:00
|
|
|
sub.prop(strip, "blend_alpha", text="Opacity", slider=True)
|
2010-07-13 08:20:34 +00:00
|
|
|
row.prop(strip, "mute", toggle=True, icon='RESTRICT_VIEW_ON' if strip.mute else 'RESTRICT_VIEW_OFF', text="")
|
|
|
|
row.prop(strip, "lock", toggle=True, icon='LOCKED' if strip.lock else 'UNLOCKED', text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
col = layout.column()
|
2010-07-13 08:20:34 +00:00
|
|
|
sub = col.column()
|
|
|
|
sub.enabled = not strip.lock
|
|
|
|
sub.prop(strip, "channel")
|
|
|
|
sub.prop(strip, "frame_start")
|
2010-08-20 06:09:58 +00:00
|
|
|
sub.prop(strip, "frame_final_duration")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
col = layout.column(align=True)
|
2010-07-13 08:20:34 +00:00
|
|
|
row = col.row()
|
2011-09-21 15:18:38 +00:00
|
|
|
row.label(text="Final Length" + ": %s" % bpy.utils.smpte_from_frame(strip.frame_final_duration))
|
2010-07-13 08:20:34 +00:00
|
|
|
row = col.row()
|
2010-08-18 08:26:18 +00:00
|
|
|
row.active = (frame_current >= strip.frame_start and frame_current <= strip.frame_start + strip.frame_duration)
|
2011-09-21 15:18:38 +00:00
|
|
|
row.label(text="Playhead" + ": %d" % (frame_current - strip.frame_start))
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Frame Offset" + " %d:%d" % (strip.frame_offset_start, strip.frame_offset_end))
|
|
|
|
col.label(text="Frame Still" + " %d:%d" % (strip.frame_still_start, strip.frame_still_end))
|
2010-11-28 18:23:21 +00:00
|
|
|
|
|
|
|
elem = False
|
2011-01-01 07:20:34 +00:00
|
|
|
|
2010-11-28 18:23:21 +00:00
|
|
|
if strip.type == 'IMAGE':
|
|
|
|
elem = strip.getStripElem(frame_current)
|
|
|
|
elif strip.type == 'MOVIE':
|
|
|
|
elem = strip.elements[0]
|
|
|
|
|
|
|
|
if elem and elem.orig_width > 0 and elem.orig_height > 0:
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Orig Dim" + ": %dx%d" % (elem.orig_width, elem.orig_height))
|
2011-08-14 03:59:22 +00:00
|
|
|
else:
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Orig Dim: None")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel):
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Effect Strip"
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-09 01:37:09 +00:00
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
|
|
|
if not cls.has_sequencer(context):
|
2009-10-31 19:31:45 +00:00
|
|
|
return False
|
|
|
|
|
|
|
|
strip = act_strip(context)
|
|
|
|
if not strip:
|
|
|
|
return False
|
|
|
|
|
2011-03-07 13:23:45 +00:00
|
|
|
return strip.type in {'ADD', 'SUBTRACT', 'ALPHA_OVER', 'ALPHA_UNDER',
|
2009-12-08 00:57:14 +00:00
|
|
|
'CROSS', 'GAMMA_CROSS', 'MULTIPLY', 'OVER_DROP',
|
2009-11-29 18:14:16 +00:00
|
|
|
'PLUGIN',
|
2011-10-03 03:23:50 +00:00
|
|
|
'WIPE', 'GLOW', 'TRANSFORM', 'COLOR', 'SPEED',
|
2011-05-16 17:14:47 +00:00
|
|
|
'MULTICAM', 'ADJUSTMENT'}
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
strip = act_strip(context)
|
2010-10-30 12:04:00 +00:00
|
|
|
if strip.input_count > 0:
|
|
|
|
col = layout.column()
|
|
|
|
col.prop(strip, "input_1")
|
|
|
|
if strip.input_count > 1:
|
|
|
|
col.prop(strip, "input_2")
|
|
|
|
if strip.input_count > 2:
|
|
|
|
col.prop(strip, "input_3")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
if strip.type == 'COLOR':
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.prop(strip, "color")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
elif strip.type == 'WIPE':
|
|
|
|
|
|
|
|
col = layout.column()
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(strip, "transition_type")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Direction:")
|
2009-11-23 00:27:30 +00:00
|
|
|
col.row().prop(strip, "direction", expand=True)
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
col = layout.column()
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(strip, "blur_width", slider=True)
|
2011-03-07 13:23:45 +00:00
|
|
|
if strip.transition_type in {'SINGLE', 'DOUBLE'}:
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(strip, "angle")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
elif strip.type == 'GLOW':
|
|
|
|
flow = layout.column_flow()
|
2009-11-23 00:27:30 +00:00
|
|
|
flow.prop(strip, "threshold", slider=True)
|
|
|
|
flow.prop(strip, "clamp", slider=True)
|
|
|
|
flow.prop(strip, "boost_factor")
|
2010-08-20 06:09:58 +00:00
|
|
|
flow.prop(strip, "blur_radius")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
row = layout.row()
|
2009-11-23 00:27:30 +00:00
|
|
|
row.prop(strip, "quality", slider=True)
|
2010-08-20 06:09:58 +00:00
|
|
|
row.prop(strip, "use_only_boost")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
elif strip.type == 'SPEED':
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.prop(strip, "use_default_fade", "Stretch to input strip length")
|
2010-11-21 20:00:31 +00:00
|
|
|
if not strip.use_default_fade:
|
|
|
|
layout.prop(strip, "use_as_speed")
|
|
|
|
if strip.use_as_speed:
|
|
|
|
layout.prop(strip, "speed_factor")
|
|
|
|
else:
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.prop(strip, "speed_factor", text="Frame number")
|
2010-11-21 20:00:31 +00:00
|
|
|
layout.prop(strip, "scale_to_length")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-09-29 13:38:43 +00:00
|
|
|
#doesn't work currently
|
|
|
|
#layout.prop(strip, "use_frame_blend")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
elif strip.type == 'TRANSFORM':
|
2009-12-11 22:51:53 +00:00
|
|
|
self.draw_panel_transform(strip)
|
2010-05-03 16:00:42 +00:00
|
|
|
|
2011-11-11 03:28:46 +00:00
|
|
|
elif strip.type == 'MULTICAM':
|
2010-04-25 15:39:04 +00:00
|
|
|
layout.prop(strip, "multicam_source")
|
2009-06-08 16:48:12 +00:00
|
|
|
|
2010-05-02 17:36:38 +00:00
|
|
|
row = layout.row(align=True)
|
|
|
|
sub = row.row()
|
|
|
|
sub.scale_x = 2.0
|
2010-06-09 19:12:03 +00:00
|
|
|
|
2010-08-18 07:14:10 +00:00
|
|
|
sub.operator("screen.animation_play", text="", icon='PAUSE' if context.screen.is_animation_playing else 'PLAY')
|
2010-05-02 17:36:38 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
row.label("Cut To")
|
2010-05-02 17:36:38 +00:00
|
|
|
for i in range(1, strip.channel):
|
|
|
|
row.operator("sequencer.cut_multicam", text=str(i)).camera = i
|
|
|
|
|
2009-11-14 14:58:19 +00:00
|
|
|
col = layout.column(align=True)
|
2009-11-22 20:22:35 +00:00
|
|
|
if strip.type == 'SPEED':
|
2010-09-29 13:38:43 +00:00
|
|
|
col.prop(strip, "multiply_speed")
|
2011-03-07 13:23:45 +00:00
|
|
|
elif strip.type in {'CROSS', 'GAMMA_CROSS', 'PLUGIN', 'WIPE'}:
|
2011-11-19 16:17:35 +00:00
|
|
|
col.prop(strip, "use_default_fade", "Default fade")
|
|
|
|
if not strip.use_default_fade:
|
|
|
|
col.prop(strip, "effect_fader", text="Effect fader")
|
2010-09-07 15:17:42 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.prop(strip, "use_translation", text="Image Offset:")
|
2010-07-23 17:09:33 +00:00
|
|
|
if strip.use_translation:
|
|
|
|
col = layout.column(align=True)
|
|
|
|
col.prop(strip.transform, "offset_x", text="X")
|
|
|
|
col.prop(strip.transform, "offset_y", text="Y")
|
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.prop(strip, "use_crop", text="Image Crop:")
|
2010-07-23 17:09:33 +00:00
|
|
|
if strip.use_crop:
|
|
|
|
col = layout.column(align=True)
|
2010-08-21 04:51:00 +00:00
|
|
|
col.prop(strip.crop, "max_y")
|
|
|
|
col.prop(strip.crop, "min_x")
|
|
|
|
col.prop(strip.crop, "min_y")
|
|
|
|
col.prop(strip.crop, "max_x")
|
2009-12-13 13:59:16 +00:00
|
|
|
|
2009-12-11 22:51:53 +00:00
|
|
|
def draw_panel_transform(self, strip):
|
|
|
|
layout = self.layout
|
|
|
|
col = layout.column()
|
2009-12-13 13:59:16 +00:00
|
|
|
|
2009-12-11 22:51:53 +00:00
|
|
|
col.prop(strip, "interpolation")
|
|
|
|
col.prop(strip, "translation_unit")
|
|
|
|
col = layout.column(align=True)
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Position:")
|
2009-12-11 22:51:53 +00:00
|
|
|
col.prop(strip, "translate_start_x", text="X")
|
|
|
|
col.prop(strip, "translate_start_y", text="Y")
|
|
|
|
|
|
|
|
layout.separator()
|
|
|
|
|
|
|
|
col = layout.column(align=True)
|
2010-08-20 06:09:58 +00:00
|
|
|
col.prop(strip, "use_uniform_scale")
|
|
|
|
if (strip.use_uniform_scale):
|
2009-12-11 22:51:53 +00:00
|
|
|
col = layout.column(align=True)
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(strip, "scale_start_x", text="Scale")
|
2009-12-11 22:51:53 +00:00
|
|
|
else:
|
|
|
|
col = layout.column(align=True)
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Scale:")
|
2009-12-11 22:51:53 +00:00
|
|
|
col.prop(strip, "scale_start_x", text="X")
|
|
|
|
col.prop(strip, "scale_start_y", text="Y")
|
|
|
|
|
|
|
|
layout.separator()
|
|
|
|
|
|
|
|
col = layout.column(align=True)
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Rotation:")
|
|
|
|
col.prop(strip, "rotation_start", text="Rotation")
|
2009-11-14 14:58:19 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class SEQUENCER_PT_input(SequencerButtonsPanel, Panel):
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Strip Input"
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-09 01:37:09 +00:00
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
|
|
|
if not cls.has_sequencer(context):
|
2009-10-31 19:31:45 +00:00
|
|
|
return False
|
|
|
|
|
|
|
|
strip = act_strip(context)
|
|
|
|
if not strip:
|
|
|
|
return False
|
|
|
|
|
2011-03-07 13:23:45 +00:00
|
|
|
return strip.type in {'MOVIE', 'IMAGE', 'SCENE', 'META',
|
2010-04-18 13:05:17 +00:00
|
|
|
'ADD', 'SUBTRACT', 'ALPHA_OVER', 'ALPHA_UNDER',
|
|
|
|
'CROSS', 'GAMMA_CROSS', 'MULTIPLY', 'OVER_DROP',
|
|
|
|
'PLUGIN',
|
2011-10-03 03:23:50 +00:00
|
|
|
'WIPE', 'GLOW', 'TRANSFORM',
|
2011-05-16 17:14:47 +00:00
|
|
|
'MULTICAM', 'SPEED', 'ADJUSTMENT'}
|
2010-03-06 01:40:29 +00:00
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
strip = act_strip(context)
|
|
|
|
|
2010-08-02 04:10:16 +00:00
|
|
|
seq_type = strip.type
|
|
|
|
|
|
|
|
# draw a filename if we have one
|
|
|
|
if seq_type == 'IMAGE':
|
|
|
|
split = layout.split(percentage=0.2)
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Path:")
|
2010-08-02 04:10:16 +00:00
|
|
|
col = split.column()
|
|
|
|
col.prop(strip, "directory", text="")
|
|
|
|
|
|
|
|
# Current element for the filename
|
|
|
|
|
|
|
|
elem = strip.getStripElem(context.scene.frame_current)
|
|
|
|
if elem:
|
|
|
|
split = layout.split(percentage=0.2)
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="File:")
|
2010-08-02 04:10:16 +00:00
|
|
|
col = split.column()
|
2010-09-07 15:17:42 +00:00
|
|
|
col.prop(elem, "filename", text="") # strip.elements[0] could be a fallback
|
2010-08-02 04:10:16 +00:00
|
|
|
|
2011-08-14 03:59:22 +00:00
|
|
|
# also accessible from the menu
|
|
|
|
layout.operator("sequencer.change_path")
|
|
|
|
|
2010-08-02 04:10:16 +00:00
|
|
|
elif seq_type == 'MOVIE':
|
|
|
|
split = layout.split(percentage=0.2)
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Path:")
|
2010-08-02 04:10:16 +00:00
|
|
|
col = split.column()
|
|
|
|
col.prop(strip, "filepath", text="")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(strip, "mpeg_preseek", text="MPEG Preseek")
|
2011-09-25 02:49:46 +00:00
|
|
|
col.prop(strip, "stream_index", text="Stream Index")
|
2010-11-21 20:00:31 +00:00
|
|
|
|
2010-08-02 04:10:16 +00:00
|
|
|
# TODO, sound???
|
|
|
|
# end drawing filename
|
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.prop(strip, "use_translation", text="Image Offset:")
|
2010-07-13 08:20:34 +00:00
|
|
|
if strip.use_translation:
|
2009-10-31 19:31:45 +00:00
|
|
|
col = layout.column(align=True)
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(strip.transform, "offset_x", text="X")
|
|
|
|
col.prop(strip.transform, "offset_y", text="Y")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.prop(strip, "use_crop", text="Image Crop:")
|
2010-07-13 08:20:34 +00:00
|
|
|
if strip.use_crop:
|
2009-10-31 19:31:45 +00:00
|
|
|
col = layout.column(align=True)
|
2010-08-21 04:51:00 +00:00
|
|
|
col.prop(strip.crop, "max_y")
|
|
|
|
col.prop(strip.crop, "min_x")
|
|
|
|
col.prop(strip.crop, "min_y")
|
|
|
|
col.prop(strip.crop, "max_x")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-01-20 23:05:25 +00:00
|
|
|
if not isinstance(strip, bpy.types.EffectSequence):
|
|
|
|
col = layout.column(align=True)
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Trim Duration (hard):")
|
|
|
|
col.prop(strip, "animation_offset_start", text="Start")
|
|
|
|
col.prop(strip, "animation_offset_end", text="End")
|
2010-12-31 22:44:17 +00:00
|
|
|
|
|
|
|
col = layout.column(align=True)
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Trim Duration (soft):")
|
|
|
|
col.prop(strip, "frame_offset_start", text="Start")
|
|
|
|
col.prop(strip, "frame_offset_end", text="End")
|
2010-03-06 01:40:29 +00:00
|
|
|
|
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class SEQUENCER_PT_sound(SequencerButtonsPanel, Panel):
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Sound"
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-09 01:37:09 +00:00
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
|
|
|
if not cls.has_sequencer(context):
|
2009-10-31 19:31:45 +00:00
|
|
|
return False
|
|
|
|
|
|
|
|
strip = act_strip(context)
|
|
|
|
if not strip:
|
|
|
|
return False
|
|
|
|
|
2009-11-22 21:47:55 +00:00
|
|
|
return (strip.type == 'SOUND')
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
strip = act_strip(context)
|
|
|
|
|
2009-11-22 00:11:53 +00:00
|
|
|
layout.template_ID(strip, "sound", open="sound.open")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2010-03-17 21:38:53 +00:00
|
|
|
layout.prop(strip, "filepath", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
row = layout.row()
|
|
|
|
if strip.sound.packed_file:
|
2011-09-21 15:18:38 +00:00
|
|
|
row.operator("sound.unpack", icon='PACKAGE', text="Unpack")
|
2009-10-31 19:31:45 +00:00
|
|
|
else:
|
2011-09-21 15:18:38 +00:00
|
|
|
row.operator("sound.pack", icon='UGLYPACKAGE', text="Pack")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-18 07:14:10 +00:00
|
|
|
row.prop(strip.sound, "use_memory_cache")
|
2009-11-21 00:05:43 +00:00
|
|
|
|
2011-08-09 14:10:32 +00:00
|
|
|
layout.prop(strip, "waveform")
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.prop(strip, "volume")
|
3D Audio GSoC:
Implemented basic audio animation.
* AnimatableProperty: Propper cache writing and spline interpolation for reading (the solution for stair steps in audio animation)
* Animatable properties so far are: volume, pitch, panning
* Users note: Changing the pitch of a sound results in wrong seeking, due to the resulting playback length difference.
* Users note: Panning only works for mono sources, values are in the range [-2..2], this basically controls the angle of the sound, 0 is front, -1 left, 1 right and 2 and -2 are back. Typical stereo panning only supports [-1..1].
* Disabled animation of audio related ffmpeg output parameters.
* Scene Audio Panel: 3D Listener settings also for Renderer, new Volume property (animatable!), Update/Bake buttons for animation problems, moved sampling rate and channel count here
2011-07-28 13:58:59 +00:00
|
|
|
layout.prop(strip, "pitch")
|
|
|
|
layout.prop(strip, "pan")
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2010-05-30 19:33:26 +00:00
|
|
|
col = layout.column(align=True)
|
|
|
|
col.label(text="Trim Duration:")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(strip, "animation_offset_start", text="Start")
|
|
|
|
col.prop(strip, "animation_offset_end", text="End")
|
2010-05-30 19:33:26 +00:00
|
|
|
|
2009-11-22 21:16:04 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class SEQUENCER_PT_scene(SequencerButtonsPanel, Panel):
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Scene"
|
2009-11-22 21:16:04 +00:00
|
|
|
|
2010-08-09 01:37:09 +00:00
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
|
|
|
if not cls.has_sequencer(context):
|
2009-11-22 21:16:04 +00:00
|
|
|
return False
|
|
|
|
|
|
|
|
strip = act_strip(context)
|
|
|
|
if not strip:
|
|
|
|
return False
|
|
|
|
|
2009-11-22 21:47:55 +00:00
|
|
|
return (strip.type == 'SCENE')
|
2009-11-22 21:16:04 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
strip = act_strip(context)
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-11-22 21:16:04 +00:00
|
|
|
layout.template_ID(strip, "scene")
|
2010-03-09 13:52:52 +00:00
|
|
|
|
2011-06-24 03:30:50 +00:00
|
|
|
scene = strip.scene
|
|
|
|
if scene:
|
|
|
|
layout.prop(scene.render, "use_sequencer")
|
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.label(text="Camera Override")
|
2010-03-09 13:52:52 +00:00
|
|
|
layout.template_ID(strip, "scene_camera")
|
|
|
|
|
2011-06-24 03:30:50 +00:00
|
|
|
if scene:
|
|
|
|
sta = scene.frame_start
|
|
|
|
end = scene.frame_end
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.label(text="Original frame range" + ": %d-%d (%d)" % (sta, end, end - sta + 1))
|
2010-10-30 13:09:31 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class SEQUENCER_PT_filter(SequencerButtonsPanel, Panel):
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Filter"
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-09 01:37:09 +00:00
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
|
|
|
if not cls.has_sequencer(context):
|
2009-10-31 19:31:45 +00:00
|
|
|
return False
|
|
|
|
|
|
|
|
strip = act_strip(context)
|
|
|
|
if not strip:
|
|
|
|
return False
|
|
|
|
|
2011-03-07 13:23:45 +00:00
|
|
|
return strip.type in {'MOVIE', 'IMAGE', 'SCENE', 'META',
|
2010-04-18 13:05:17 +00:00
|
|
|
'ADD', 'SUBTRACT', 'ALPHA_OVER', 'ALPHA_UNDER',
|
|
|
|
'CROSS', 'GAMMA_CROSS', 'MULTIPLY', 'OVER_DROP',
|
|
|
|
'PLUGIN',
|
2010-04-25 15:39:04 +00:00
|
|
|
'WIPE', 'GLOW', 'TRANSFORM', 'COLOR',
|
2011-05-16 17:14:47 +00:00
|
|
|
'MULTICAM', 'SPEED', 'ADJUSTMENT'}
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
strip = act_strip(context)
|
|
|
|
|
|
|
|
col = layout.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Video:")
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(strip, "strobe")
|
2010-04-18 13:05:17 +00:00
|
|
|
|
|
|
|
row = layout.row()
|
2011-09-21 15:18:38 +00:00
|
|
|
row.label(text="Flip:")
|
2010-08-20 06:09:58 +00:00
|
|
|
row.prop(strip, "use_flip_x", text="X")
|
|
|
|
row.prop(strip, "use_flip_y", text="Y")
|
2010-04-18 13:05:17 +00:00
|
|
|
|
|
|
|
col = layout.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(strip, "use_reverse_frames", text="Backwards")
|
2010-08-20 06:09:58 +00:00
|
|
|
col.prop(strip, "use_deinterlace")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
col = layout.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Colors:")
|
|
|
|
col.prop(strip, "color_saturation", text="Saturation")
|
|
|
|
col.prop(strip, "color_multiply", text="Multiply")
|
2010-08-20 06:09:58 +00:00
|
|
|
col.prop(strip, "use_premultiply")
|
|
|
|
col.prop(strip, "use_float")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.prop(strip, "use_color_balance")
|
2010-09-07 15:17:42 +00:00
|
|
|
if strip.use_color_balance and strip.color_balance: # TODO - need to add this somehow
|
2009-10-31 19:31:45 +00:00
|
|
|
row = layout.row()
|
|
|
|
row.active = strip.use_color_balance
|
|
|
|
col = row.column()
|
2010-07-05 15:52:25 +00:00
|
|
|
col.template_color_wheel(strip.color_balance, "lift", value_slider=False, cubic=True)
|
2010-01-07 09:55:11 +00:00
|
|
|
col.row().prop(strip.color_balance, "lift")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(strip.color_balance, "invert_lift", text="Inverse")
|
2009-10-31 19:31:45 +00:00
|
|
|
col = row.column()
|
2010-07-05 15:52:25 +00:00
|
|
|
col.template_color_wheel(strip.color_balance, "gamma", value_slider=False, lock_luminosity=True, cubic=True)
|
2010-01-07 09:55:11 +00:00
|
|
|
col.row().prop(strip.color_balance, "gamma")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(strip.color_balance, "invert_gamma", text="Inverse")
|
2009-10-31 19:31:45 +00:00
|
|
|
col = row.column()
|
2010-07-05 15:52:25 +00:00
|
|
|
col.template_color_wheel(strip.color_balance, "gain", value_slider=False, lock_luminosity=True, cubic=True)
|
2010-01-07 09:55:11 +00:00
|
|
|
col.row().prop(strip.color_balance, "gain")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(strip.color_balance, "invert_gain", text="Inverse")
|
2009-06-08 16:48:12 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class SEQUENCER_PT_proxy(SequencerButtonsPanel, Panel):
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Proxy / Timecode"
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-09 01:37:09 +00:00
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
|
|
|
if not cls.has_sequencer(context):
|
2009-10-31 19:31:45 +00:00
|
|
|
return False
|
|
|
|
|
|
|
|
strip = act_strip(context)
|
|
|
|
if not strip:
|
|
|
|
return False
|
|
|
|
|
2011-03-07 13:23:45 +00:00
|
|
|
return strip.type in {'MOVIE', 'IMAGE', 'SCENE', 'META', 'MULTICAM'}
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
def draw_header(self, context):
|
|
|
|
strip = act_strip(context)
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
self.layout.prop(strip, "use_proxy", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
strip = act_strip(context)
|
|
|
|
|
|
|
|
flow = layout.column_flow()
|
2010-08-20 06:09:58 +00:00
|
|
|
flow.prop(strip, "use_proxy_custom_directory")
|
|
|
|
flow.prop(strip, "use_proxy_custom_file")
|
== Sequencer ==
This patch adds:
* support for proxy building again (missing feature from Blender 2.49)
additionally to the way, Blender 2.49 worked, you can select several
strips at once and make Blender build proxies in the background (using
the job system)
Also a new thing: movie proxies are now build into AVI files, and
the proxy system is moved into ImBuf-library, so that other parts
of blender can also benefit from it.
* Timecode support: to fix seeking issues with files, that have
a) varying frame rates
b) very large GOP lengths
c) are broken inbetween
d) use different time code tracks
the proxy builder can now also build timecode indices, which are
used (optionally) for seeking.
For the first time, it is possible, to do frame exact seeking on
all file types.
* Support for different video-streams in one video file (can be
selected in sequencer, other parts of blender can also use it,
but UI has to be added accordingly)
* IMPORTANT: this patch *requires* ffmpeg 0.7 or newer, since
older versions don't support the pkt_pts field, that is essential
for building timecode indices.
Windows and Mac libs are already updated, Linux-users have to build
their own ffmpeg verions until distros keep up.
2011-08-28 14:46:03 +00:00
|
|
|
if strip.proxy:
|
2010-08-27 22:12:59 +00:00
|
|
|
if strip.use_proxy_custom_directory and not strip.use_proxy_custom_file:
|
2010-04-11 19:26:46 +00:00
|
|
|
flow.prop(strip.proxy, "directory")
|
2010-08-20 06:09:58 +00:00
|
|
|
if strip.use_proxy_custom_file:
|
2010-04-11 19:26:46 +00:00
|
|
|
flow.prop(strip.proxy, "filepath")
|
2009-06-08 16:48:12 +00:00
|
|
|
|
== Sequencer ==
This patch adds:
* support for proxy building again (missing feature from Blender 2.49)
additionally to the way, Blender 2.49 worked, you can select several
strips at once and make Blender build proxies in the background (using
the job system)
Also a new thing: movie proxies are now build into AVI files, and
the proxy system is moved into ImBuf-library, so that other parts
of blender can also benefit from it.
* Timecode support: to fix seeking issues with files, that have
a) varying frame rates
b) very large GOP lengths
c) are broken inbetween
d) use different time code tracks
the proxy builder can now also build timecode indices, which are
used (optionally) for seeking.
For the first time, it is possible, to do frame exact seeking on
all file types.
* Support for different video-streams in one video file (can be
selected in sequencer, other parts of blender can also use it,
but UI has to be added accordingly)
* IMPORTANT: this patch *requires* ffmpeg 0.7 or newer, since
older versions don't support the pkt_pts field, that is essential
for building timecode indices.
Windows and Mac libs are already updated, Linux-users have to build
their own ffmpeg verions until distros keep up.
2011-08-28 14:46:03 +00:00
|
|
|
row = layout.row()
|
|
|
|
row.prop(strip.proxy, "build_25")
|
|
|
|
row.prop(strip.proxy, "build_50")
|
|
|
|
row.prop(strip.proxy, "build_75")
|
|
|
|
row.prop(strip.proxy, "build_100")
|
|
|
|
|
|
|
|
col = layout.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Build JPEG quality")
|
== Sequencer ==
This patch adds:
* support for proxy building again (missing feature from Blender 2.49)
additionally to the way, Blender 2.49 worked, you can select several
strips at once and make Blender build proxies in the background (using
the job system)
Also a new thing: movie proxies are now build into AVI files, and
the proxy system is moved into ImBuf-library, so that other parts
of blender can also benefit from it.
* Timecode support: to fix seeking issues with files, that have
a) varying frame rates
b) very large GOP lengths
c) are broken inbetween
d) use different time code tracks
the proxy builder can now also build timecode indices, which are
used (optionally) for seeking.
For the first time, it is possible, to do frame exact seeking on
all file types.
* Support for different video-streams in one video file (can be
selected in sequencer, other parts of blender can also use it,
but UI has to be added accordingly)
* IMPORTANT: this patch *requires* ffmpeg 0.7 or newer, since
older versions don't support the pkt_pts field, that is essential
for building timecode indices.
Windows and Mac libs are already updated, Linux-users have to build
their own ffmpeg verions until distros keep up.
2011-08-28 14:46:03 +00:00
|
|
|
col.prop(strip.proxy, "quality")
|
|
|
|
|
|
|
|
if strip.type == "MOVIE":
|
|
|
|
col = layout.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Use timecode index:")
|
== Sequencer ==
This patch adds:
* support for proxy building again (missing feature from Blender 2.49)
additionally to the way, Blender 2.49 worked, you can select several
strips at once and make Blender build proxies in the background (using
the job system)
Also a new thing: movie proxies are now build into AVI files, and
the proxy system is moved into ImBuf-library, so that other parts
of blender can also benefit from it.
* Timecode support: to fix seeking issues with files, that have
a) varying frame rates
b) very large GOP lengths
c) are broken inbetween
d) use different time code tracks
the proxy builder can now also build timecode indices, which are
used (optionally) for seeking.
For the first time, it is possible, to do frame exact seeking on
all file types.
* Support for different video-streams in one video file (can be
selected in sequencer, other parts of blender can also use it,
but UI has to be added accordingly)
* IMPORTANT: this patch *requires* ffmpeg 0.7 or newer, since
older versions don't support the pkt_pts field, that is essential
for building timecode indices.
Windows and Mac libs are already updated, Linux-users have to build
their own ffmpeg verions until distros keep up.
2011-08-28 14:46:03 +00:00
|
|
|
|
|
|
|
col.prop(strip.proxy, "timecode")
|
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class SEQUENCER_PT_preview(SequencerButtonsPanel_Output, Panel):
|
2011-09-21 15:18:38 +00:00
|
|
|
bl_label = "Scene Preview/Render"
|
2010-07-28 07:52:05 +00:00
|
|
|
bl_space_type = 'SEQUENCE_EDITOR'
|
|
|
|
bl_region_type = 'UI'
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
render = context.scene.render
|
|
|
|
|
|
|
|
col = layout.column()
|
2011-01-01 07:20:34 +00:00
|
|
|
col.active = False # Currently only opengl preview works!
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(render, "use_sequencer_gl_preview", text="Open GL Preview")
|
2010-07-28 07:52:05 +00:00
|
|
|
col = layout.column()
|
2010-10-21 17:00:38 +00:00
|
|
|
#col.active = render.use_sequencer_gl_preview
|
2010-07-28 07:52:05 +00:00
|
|
|
col.prop(render, "sequencer_gl_preview", text="")
|
|
|
|
|
|
|
|
'''
|
|
|
|
col = layout.column()
|
|
|
|
col.prop(render, "use_sequencer_gl_render", text="Open GL Render")
|
|
|
|
col = layout.column()
|
|
|
|
col.active = render.use_sequencer_gl_render
|
|
|
|
col.prop(render, "sequencer_gl_render", text="")
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class SEQUENCER_PT_view(SequencerButtonsPanel_Output, Panel):
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "View Settings"
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2009-06-09 16:19:34 +00:00
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
st = context.space_data
|
2009-06-09 16:19:34 +00:00
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
col = layout.column()
|
2010-04-11 18:37:49 +00:00
|
|
|
if st.display_mode == 'IMAGE':
|
2010-09-07 15:17:42 +00:00
|
|
|
col.prop(st, "draw_overexposed") # text="Zebra"
|
2010-08-17 07:49:53 +00:00
|
|
|
col.prop(st, "show_safe_margin")
|
2010-04-11 18:37:49 +00:00
|
|
|
if st.display_mode == 'WAVEFORM':
|
2010-08-17 07:49:53 +00:00
|
|
|
col.prop(st, "show_separate_color")
|
2010-04-17 19:05:53 +00:00
|
|
|
col.prop(st, "proxy_render_size")
|
2011-04-04 10:13:04 +00:00
|
|
|
|
|
|
|
if __name__ == "__main__": # only for live edit.
|
|
|
|
bpy.utils.register_module(__name__)
|