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
|
2013-02-10 10:29:38 +00:00
|
|
|
from bpy.app.translations import pgettext_iface as iface_
|
2013-02-10 09:09:26 +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
|
|
|
|
2012-08-19 15:41:56 +00:00
|
|
|
def draw_color_balance(layout, color_balance):
|
|
|
|
col = layout.column()
|
|
|
|
col.label(text="Lift:")
|
2012-11-09 11:03:53 +00:00
|
|
|
col.template_color_picker(color_balance, "lift", value_slider=True, cubic=True)
|
2012-08-19 15:41:56 +00:00
|
|
|
row = col.row()
|
|
|
|
row.prop(color_balance, "lift", text="")
|
|
|
|
row.prop(color_balance, "invert_lift", text="Inverse")
|
|
|
|
|
|
|
|
col = layout.column()
|
|
|
|
col.label(text="Gamma:")
|
2012-11-09 11:03:53 +00:00
|
|
|
col.template_color_picker(color_balance, "gamma", value_slider=True, lock_luminosity=True, cubic=True)
|
2012-08-19 15:41:56 +00:00
|
|
|
row = col.row()
|
|
|
|
row.prop(color_balance, "gamma", text="")
|
|
|
|
row.prop(color_balance, "invert_gamma", text="Inverse")
|
|
|
|
|
|
|
|
col = layout.column()
|
|
|
|
col.label(text="Gain:")
|
2012-11-09 11:03:53 +00:00
|
|
|
col.template_color_picker(color_balance, "gain", value_slider=True, lock_luminosity=True, cubic=True)
|
2012-08-19 15:41:56 +00:00
|
|
|
row = col.row()
|
|
|
|
row.prop(color_balance, "gain", text="")
|
|
|
|
row.prop(color_balance, "invert_gain", text="Inverse")
|
|
|
|
|
|
|
|
|
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
|
2014-09-01 12:22:34 +00:00
|
|
|
scene = context.scene
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
row = layout.row(align=True)
|
|
|
|
row.template_header()
|
|
|
|
|
2014-01-27 07:38:53 +00:00
|
|
|
SEQUENCER_MT_editor_menus.draw_collapsible(context, layout)
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2014-09-01 12:22:34 +00:00
|
|
|
row = layout.row(align=True)
|
|
|
|
row.prop(scene, "use_preview_range", text="", toggle=True)
|
|
|
|
row.prop(scene, "lock_frame_selection_to_range", text="", toggle=True)
|
|
|
|
|
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")
|
2009-10-31 19:31:45 +00:00
|
|
|
else:
|
2012-09-22 17:40:08 +00:00
|
|
|
if st.view_type == 'SEQUENCER_PREVIEW':
|
|
|
|
layout.separator()
|
|
|
|
layout.operator("sequencer.refresh_all")
|
|
|
|
|
2013-02-27 10:26:58 +00:00
|
|
|
layout.prop(st, "preview_channels", expand=True, text="")
|
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="")
|
2013-04-23 07:06:29 +00:00
|
|
|
row.prop(ed, "use_overlay_lock", text="", icon='LOCKED')
|
2010-07-08 10:03:29 +00:00
|
|
|
|
2012-08-12 13:24:29 +00:00
|
|
|
row = layout.row()
|
|
|
|
row.prop(st, "overlay_type", text="")
|
|
|
|
|
2012-09-22 17:40:08 +00:00
|
|
|
row = layout.row(align=True)
|
2013-08-23 20:41:21 +00:00
|
|
|
row.operator("render.opengl", text="", icon='RENDER_STILL').sequencer = True
|
2012-09-22 17:40:08 +00:00
|
|
|
props = row.operator("render.opengl", text="", icon='RENDER_ANIMATION')
|
|
|
|
props.animation = True
|
|
|
|
props.sequencer = True
|
2012-03-29 23:33:50 +00:00
|
|
|
|
2011-10-12 12:49:45 +00:00
|
|
|
layout.template_running_jobs()
|
|
|
|
|
2009-12-16 13:27:30 +00:00
|
|
|
|
2014-01-27 07:38:53 +00:00
|
|
|
class SEQUENCER_MT_editor_menus(Menu):
|
|
|
|
bl_idname = "SEQUENCER_MT_editor_menus"
|
|
|
|
bl_label = ""
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
self.draw_menus(self.layout, context)
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
def draw_menus(layout, context):
|
|
|
|
st = context.space_data
|
|
|
|
|
|
|
|
layout.menu("SEQUENCER_MT_view")
|
|
|
|
|
|
|
|
if st.view_type in {'SEQUENCER', 'SEQUENCER_PREVIEW'}:
|
|
|
|
layout.menu("SEQUENCER_MT_select")
|
|
|
|
layout.menu("SEQUENCER_MT_marker")
|
|
|
|
layout.menu("SEQUENCER_MT_add")
|
2014-09-01 12:22:34 +00:00
|
|
|
layout.menu("SEQUENCER_MT_frame")
|
2014-01-27 07:38:53 +00:00
|
|
|
layout.menu("SEQUENCER_MT_strip")
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2012-09-21 13:29:38 +00:00
|
|
|
if st.view_type in {'PREVIEW'}:
|
|
|
|
# Specifying the REGION_PREVIEW context is needed in preview-only
|
|
|
|
# mode, else the lookup for the shortcut will fail in
|
|
|
|
# wm_keymap_item_find_props() (see #32595).
|
|
|
|
layout.operator_context = 'INVOKE_REGION_PREVIEW'
|
2010-07-30 14:56:17 +00:00
|
|
|
layout.operator("sequencer.properties", icon='MENU_PANEL')
|
2012-09-21 13:29:38 +00:00
|
|
|
layout.operator_context = 'INVOKE_DEFAULT'
|
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")
|
2012-09-21 13:29:38 +00:00
|
|
|
layout.operator("sequencer.view_selected")
|
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")
|
2014-07-22 02:03:15 +00:00
|
|
|
|
2014-04-27 20:59:30 +00:00
|
|
|
layout.separator()
|
2014-07-22 02:03:15 +00:00
|
|
|
|
2014-04-27 20:59:30 +00:00
|
|
|
ratios = ((1, 8), (1, 4), (1, 2), (1, 1), (2, 1), (4, 1), (8, 1))
|
|
|
|
|
|
|
|
for a, b in ratios:
|
|
|
|
layout.operator("sequencer.view_zoom_ratio", text=iface_("Zoom %d:%d") % (a, b), translate=False).ratio = a / b
|
2014-07-22 02:03:15 +00:00
|
|
|
|
2014-04-27 20:59:30 +00:00
|
|
|
layout.separator()
|
|
|
|
|
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
|
2012-07-04 21:41:05 +00:00
|
|
|
# layout.operator("sequencer.view_ghost_border", text="Overlay Border")
|
2010-07-08 10:03:29 +00:00
|
|
|
|
2012-09-21 15:19:26 +00:00
|
|
|
if st.view_type in {'SEQUENCER', 'SEQUENCER_PREVIEW'}:
|
|
|
|
layout.prop(st, "show_seconds")
|
|
|
|
layout.prop(st, "show_frame_indicator")
|
2011-07-22 11:20:14 +00:00
|
|
|
|
2012-09-21 15:19:26 +00:00
|
|
|
if st.view_type in {'PREVIEW', 'SEQUENCER_PREVIEW'}:
|
|
|
|
if st.display_mode == 'IMAGE':
|
|
|
|
layout.prop(st, "show_safe_margin")
|
|
|
|
elif st.display_mode == 'WAVEFORM':
|
|
|
|
layout.prop(st, "show_separate_color")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-12-03 16:28:50 +00:00
|
|
|
layout.separator()
|
2012-09-21 15:19:26 +00:00
|
|
|
|
|
|
|
if st.view_type in {'SEQUENCER', 'SEQUENCER_PREVIEW'}:
|
|
|
|
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'
|
2014-09-03 09:18:30 +00:00
|
|
|
op = layout.operator("sequencer.select", text="All strips to the Left")
|
|
|
|
op.left_right = 'LEFT'
|
|
|
|
op.linked_time = True
|
|
|
|
op = layout.operator("sequencer.select", text="All strips to the Right")
|
|
|
|
op.left_right = 'RIGHT'
|
|
|
|
op.linked_time = True
|
|
|
|
|
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()
|
2012-03-26 13:45:06 +00:00
|
|
|
layout.operator_menu_enum("sequencer.select_grouped", "type", text="Grouped")
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("sequencer.select_linked")
|
2012-01-14 07:23:57 +00:00
|
|
|
layout.operator("sequencer.select_all").action = 'TOGGLE'
|
2012-05-20 15:52:24 +00:00
|
|
|
layout.operator("sequencer.select_all", text="Inverse").action = 'INVERT'
|
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
|
|
|
|
|
2012-04-04 14:39:52 +00:00
|
|
|
from bl_ui.space_time import marker_menu_generic
|
2011-11-03 12:47:39 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
2014-09-01 12:22:34 +00:00
|
|
|
class SEQUENCER_MT_frame(Menu):
|
|
|
|
bl_label = "Frame"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
layout.operator("anim.previewrange_clear")
|
|
|
|
layout.operator("anim.previewrange_set")
|
|
|
|
|
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
|
2012-07-29 12:07:06 +00:00
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
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
|
|
|
|
2012-03-21 18:02:29 +00:00
|
|
|
if len(bpy.data.movieclips) > 10:
|
|
|
|
layout.operator_context = 'INVOKE_DEFAULT'
|
|
|
|
layout.operator("sequencer.movieclip_strip_add", text="Clips...")
|
|
|
|
else:
|
|
|
|
layout.operator_menu_enum("sequencer.movieclip_strip_add", "clip", text="Clip...")
|
|
|
|
|
2012-06-07 18:24:36 +00:00
|
|
|
if len(bpy.data.masks) > 10:
|
|
|
|
layout.operator_context = 'INVOKE_DEFAULT'
|
|
|
|
layout.operator("sequencer.mask_strip_add", text="Masks...")
|
|
|
|
else:
|
|
|
|
layout.operator_menu_enum("sequencer.mask_strip_add", "mask", text="Mask...")
|
|
|
|
|
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
|
2012-07-29 12:07:06 +00:00
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
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'
|
2014-07-19 16:16:10 +00:00
|
|
|
layout.operator("sequencer.effect_strip_add", text="Gaussian Blur").type = 'GAUSSIAN_BLUR'
|
2011-09-21 15:18:38 +00:00
|
|
|
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="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'
|
2013-03-27 20:27:07 +00:00
|
|
|
layout.operator("sequencer.gap_remove")
|
|
|
|
layout.operator("sequencer.gap_insert")
|
2013-03-26 15:00:56 +00:00
|
|
|
|
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
|
|
|
|
2012-06-20 14:20:03 +00:00
|
|
|
layout.operator("sequencer.duplicate_move")
|
2009-11-23 00:27:30 +00:00
|
|
|
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")
|
2012-02-29 11:23:27 +00:00
|
|
|
elif stype == 'SOUND':
|
|
|
|
layout.separator()
|
|
|
|
layout.operator("sequencer.crossfade_sounds")
|
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()
|
2013-08-23 20:41:21 +00:00
|
|
|
layout.operator("sequencer.reload", text="Reload Strips").adjust_length = False
|
|
|
|
layout.operator("sequencer.reload", text="Reload Strips and Adjust Length").adjust_length = True
|
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")
|
2013-08-23 20:41:21 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
|
|
|
layout.operator("sequencer.lock")
|
|
|
|
layout.operator("sequencer.unlock")
|
2012-01-14 06:30:27 +00:00
|
|
|
layout.operator("sequencer.mute").unselected = False
|
2009-11-23 00:27:30 +00:00
|
|
|
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
|
2012-06-19 22:17:19 +00:00
|
|
|
|
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
|
|
|
|
2013-08-18 15:48:51 +00:00
|
|
|
if strip.type not in {'SOUND'}:
|
|
|
|
split = layout.split(percentage=0.3)
|
|
|
|
split.label(text="Blend:")
|
|
|
|
split.prop(strip, "blend_type", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2013-08-18 15:48:51 +00:00
|
|
|
row = layout.row(align=True)
|
2013-08-23 20:41:21 +00:00
|
|
|
sub = row.row(align=True)
|
2013-08-18 15:48:51 +00:00
|
|
|
sub.active = (not strip.mute)
|
|
|
|
sub.prop(strip, "blend_alpha", text="Opacity", slider=True)
|
2014-01-30 05:24:51 +00:00
|
|
|
row.prop(strip, "mute", toggle=True, icon_only=True)
|
|
|
|
row.prop(strip, "lock", toggle=True, icon_only=True)
|
2013-11-12 07:02:04 +00:00
|
|
|
else:
|
|
|
|
row = layout.row(align=True)
|
2014-01-30 05:24:51 +00:00
|
|
|
row.prop(strip, "mute", toggle=True, icon_only=True)
|
|
|
|
row.prop(strip, "lock", toggle=True, icon_only=True)
|
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)
|
2013-08-23 20:41:21 +00:00
|
|
|
row = col.row(align=True)
|
2013-02-10 10:29:38 +00:00
|
|
|
row.label(text=iface_("Final Length: %s") % bpy.utils.smpte_from_frame(strip.frame_final_duration),
|
|
|
|
translate=False)
|
2013-08-23 20:41:21 +00:00
|
|
|
row = col.row(align=True)
|
2010-08-18 08:26:18 +00:00
|
|
|
row.active = (frame_current >= strip.frame_start and frame_current <= strip.frame_start + strip.frame_duration)
|
2013-02-10 10:29:38 +00:00
|
|
|
row.label(text=iface_("Playhead: %d") % (frame_current - strip.frame_start), translate=False)
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2013-02-10 10:29:38 +00:00
|
|
|
col.label(text=iface_("Frame Offset %d:%d") % (strip.frame_offset_start, strip.frame_offset_end),
|
|
|
|
translate=False)
|
|
|
|
col.label(text=iface_("Frame Still %d:%d") % (strip.frame_still_start, strip.frame_still_end), translate=False)
|
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':
|
2013-01-02 16:15:45 +00:00
|
|
|
elem = strip.strip_elem_from_frame(frame_current)
|
2010-11-28 18:23:21 +00:00
|
|
|
elif strip.type == 'MOVIE':
|
|
|
|
elem = strip.elements[0]
|
|
|
|
|
|
|
|
if elem and elem.orig_width > 0 and elem.orig_height > 0:
|
2013-02-10 10:29:38 +00:00
|
|
|
col.label(text=iface_("Original Dimension: %dx%d") % (elem.orig_width, elem.orig_height), translate=False)
|
2011-08-14 03:59:22 +00:00
|
|
|
else:
|
2012-05-20 15:52:24 +00:00
|
|
|
col.label(text="Original Dimension: 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',
|
2011-10-03 03:23:50 +00:00
|
|
|
'WIPE', 'GLOW', 'TRANSFORM', 'COLOR', 'SPEED',
|
2014-07-19 16:16:10 +00:00
|
|
|
'MULTICAM', 'GAUSSIAN_BLUR'}
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
strip = act_strip(context)
|
2012-08-11 14:37:58 +00:00
|
|
|
|
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")
|
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
|
|
|
|
|
|
|
elif strip.type == 'TRANSFORM':
|
2012-05-20 00:34:54 +00:00
|
|
|
layout = self.layout
|
|
|
|
col = layout.column()
|
2012-06-19 22:17:19 +00:00
|
|
|
|
2012-05-20 00:34:54 +00:00
|
|
|
col.prop(strip, "interpolation")
|
|
|
|
col.prop(strip, "translation_unit")
|
|
|
|
col = layout.column(align=True)
|
|
|
|
col.label(text="Position:")
|
|
|
|
col.prop(strip, "translate_start_x", text="X")
|
|
|
|
col.prop(strip, "translate_start_y", text="Y")
|
|
|
|
|
|
|
|
layout.separator()
|
2012-06-19 22:17:19 +00:00
|
|
|
|
2012-05-20 00:34:54 +00:00
|
|
|
col = layout.column(align=True)
|
|
|
|
col.prop(strip, "use_uniform_scale")
|
2012-08-17 18:36:20 +00:00
|
|
|
if strip.use_uniform_scale:
|
2012-05-20 00:34:54 +00:00
|
|
|
col = layout.column(align=True)
|
|
|
|
col.prop(strip, "scale_start_x", text="Scale")
|
|
|
|
else:
|
|
|
|
col = layout.column(align=True)
|
|
|
|
col.label(text="Scale:")
|
|
|
|
col.prop(strip, "scale_start_x", text="X")
|
|
|
|
col.prop(strip, "scale_start_y", text="Y")
|
|
|
|
|
|
|
|
layout.separator()
|
|
|
|
|
|
|
|
col = layout.column(align=True)
|
|
|
|
col.label(text="Rotation:")
|
|
|
|
col.prop(strip, "rotation_start", text="Rotation")
|
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)
|
2013-08-23 20:41:21 +00:00
|
|
|
sub = row.row(align=True)
|
2010-05-02 17:36:38 +00:00
|
|
|
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):
|
2013-04-20 13:23:53 +00:00
|
|
|
row.operator("sequencer.cut_multicam", text="%d" % i).camera = i
|
2010-05-02 17:36:38 +00:00
|
|
|
|
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")
|
2012-04-28 08:27:09 +00:00
|
|
|
elif strip.type in {'CROSS', 'GAMMA_CROSS', '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")
|
2014-07-19 16:16:10 +00:00
|
|
|
elif strip.type == 'GAUSSIAN_BLUR':
|
|
|
|
col.prop(strip, "size_x")
|
|
|
|
col.prop(strip, "size_y")
|
2010-09-07 15:17:42 +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
|
|
|
|
|
2012-03-21 18:02:29 +00:00
|
|
|
return strip.type in {'MOVIE', 'IMAGE', 'SCENE', 'MOVIECLIP', 'META',
|
2010-04-18 13:05:17 +00:00
|
|
|
'ADD', 'SUBTRACT', 'ALPHA_OVER', 'ALPHA_UNDER',
|
|
|
|
'CROSS', 'GAMMA_CROSS', 'MULTIPLY', 'OVER_DROP',
|
2012-05-20 00:34:54 +00:00
|
|
|
'WIPE', 'GLOW', 'TRANSFORM', 'COLOR',
|
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)
|
2012-05-20 00:34:54 +00:00
|
|
|
split.label(text="Path:")
|
|
|
|
split.prop(strip, "directory", text="")
|
2010-08-02 04:10:16 +00:00
|
|
|
|
|
|
|
# Current element for the filename
|
|
|
|
|
2013-01-02 16:15:45 +00:00
|
|
|
elem = strip.strip_elem_from_frame(context.scene.frame_current)
|
2010-08-02 04:10:16 +00:00
|
|
|
if elem:
|
|
|
|
split = layout.split(percentage=0.2)
|
2012-05-20 00:34:54 +00:00
|
|
|
split.label(text="File:")
|
|
|
|
split.prop(elem, "filename", text="") # strip.elements[0] could be a fallback
|
2010-08-02 04:10:16 +00:00
|
|
|
|
2012-11-05 14:44:29 +00:00
|
|
|
layout.prop(strip.colorspace_settings, "name")
|
2012-12-31 13:52:13 +00:00
|
|
|
layout.prop(strip, "alpha_mode")
|
2012-11-05 14:44:29 +00:00
|
|
|
|
2011-08-14 03:59:22 +00:00
|
|
|
layout.operator("sequencer.change_path")
|
|
|
|
|
2010-08-02 04:10:16 +00:00
|
|
|
elif seq_type == 'MOVIE':
|
|
|
|
split = layout.split(percentage=0.2)
|
2012-05-20 00:34:54 +00:00
|
|
|
split.label(text="Path:")
|
|
|
|
split.prop(strip, "filepath", text="")
|
2012-06-19 22:17:19 +00:00
|
|
|
|
2012-11-05 14:44:29 +00:00
|
|
|
layout.prop(strip.colorspace_settings, "name")
|
|
|
|
|
2012-05-20 00:34:54 +00:00
|
|
|
layout.prop(strip, "mpeg_preseek")
|
|
|
|
layout.prop(strip, "stream_index")
|
2012-06-19 22:17:19 +00:00
|
|
|
|
2012-05-20 00:34:54 +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
|
|
|
|
2012-05-20 00:34:54 +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)
|
2012-01-14 06:30:27 +00:00
|
|
|
sound = strip.sound
|
2009-10-31 19:31:45 +00:00
|
|
|
|
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
|
|
|
|
2013-07-24 06:51:04 +00:00
|
|
|
if sound is not None:
|
|
|
|
row = layout.row()
|
|
|
|
if sound.packed_file:
|
|
|
|
row.operator("sound.unpack", icon='PACKAGE', text="Unpack")
|
|
|
|
else:
|
|
|
|
row.operator("sound.pack", icon='UGLYPACKAGE', text="Pack")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2013-07-24 06:51:04 +00:00
|
|
|
row.prop(sound, "use_memory_cache")
|
2009-11-21 00:05:43 +00:00
|
|
|
|
2012-05-10 15:32:01 +00:00
|
|
|
layout.prop(strip, "show_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)
|
2013-09-30 20:53:53 +00:00
|
|
|
col.label(text="Trim Duration (hard):")
|
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
|
|
|
|
2013-09-30 20:53:53 +00:00
|
|
|
col = layout.column(align=True)
|
|
|
|
col.label(text="Trim Duration (soft):")
|
|
|
|
col.prop(strip, "frame_offset_start", text="Start")
|
|
|
|
col.prop(strip, "frame_offset_end", text="End")
|
|
|
|
|
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
|
|
|
|
|
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:
|
2014-02-06 07:50:42 +00:00
|
|
|
layout.prop(scene, "audio_volume", text="Audio Volume")
|
|
|
|
|
2011-06-24 03:30:50 +00:00
|
|
|
sta = scene.frame_start
|
|
|
|
end = scene.frame_end
|
2013-02-10 10:29:38 +00:00
|
|
|
layout.label(text=iface_("Original frame range: %d-%d (%d)") % (sta, end, end - sta + 1), translate=False)
|
2010-10-30 13:09:31 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2012-06-07 18:24:36 +00:00
|
|
|
class SEQUENCER_PT_mask(SequencerButtonsPanel, Panel):
|
|
|
|
bl_label = "Mask"
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
|
|
|
if not cls.has_sequencer(context):
|
|
|
|
return False
|
|
|
|
|
|
|
|
strip = act_strip(context)
|
|
|
|
if not strip:
|
|
|
|
return False
|
|
|
|
|
|
|
|
return (strip.type == 'MASK')
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
strip = act_strip(context)
|
|
|
|
|
|
|
|
layout.template_ID(strip, "mask")
|
|
|
|
|
|
|
|
mask = strip.mask
|
|
|
|
|
|
|
|
if mask:
|
|
|
|
sta = mask.frame_start
|
|
|
|
end = mask.frame_end
|
2013-02-10 10:29:38 +00:00
|
|
|
layout.label(text=iface_("Original frame range: %d-%d (%d)") % (sta, end, end - sta + 1), translate=False)
|
2012-06-07 18:24:36 +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
|
|
|
|
|
2012-06-07 18:24:36 +00:00
|
|
|
return strip.type in {'MOVIE', 'IMAGE', 'SCENE', 'MOVIECLIP', 'MASK',
|
|
|
|
'META', 'ADD', 'SUBTRACT', 'ALPHA_OVER',
|
|
|
|
'ALPHA_UNDER', 'CROSS', 'GAMMA_CROSS', 'MULTIPLY',
|
|
|
|
'OVER_DROP', '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
|
|
|
|
2012-03-21 18:02:29 +00:00
|
|
|
if strip.type == 'MOVIECLIP':
|
|
|
|
col = layout.column()
|
|
|
|
col.label(text="Tracker:")
|
|
|
|
col.prop(strip, "stabilize2d")
|
|
|
|
|
|
|
|
col = layout.column()
|
|
|
|
col.label(text="Distortion:")
|
|
|
|
col.prop(strip, "undistort")
|
2012-06-19 22:17:19 +00:00
|
|
|
|
2012-05-20 00:34:54 +00:00
|
|
|
split = layout.split(percentage=0.65)
|
2012-03-24 07:36:32 +00:00
|
|
|
|
2012-05-20 00:34:54 +00:00
|
|
|
col = split.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")
|
2012-06-19 22:17:19 +00:00
|
|
|
|
2012-05-20 00:34:54 +00:00
|
|
|
col = split.column()
|
|
|
|
col.label(text="Flip:")
|
|
|
|
col.prop(strip, "use_flip_x", text="X")
|
|
|
|
col.prop(strip, "use_flip_y", text="Y")
|
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_float")
|
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_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")
|
|
|
|
|
2012-07-04 21:41:05 +00:00
|
|
|
if strip.type == 'MOVIE':
|
== 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 = 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
|
2012-07-29 12:07:06 +00:00
|
|
|
|
2010-07-28 07:52:05 +00:00
|
|
|
render = context.scene.render
|
|
|
|
|
|
|
|
col = layout.column()
|
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="")
|
|
|
|
|
2012-12-12 12:42:12 +00:00
|
|
|
row = col.row()
|
|
|
|
row.active = render.sequencer_gl_preview == 'SOLID'
|
|
|
|
row.prop(render, "use_sequencer_gl_textured_solid")
|
|
|
|
|
2010-07-28 07:52:05 +00:00
|
|
|
|
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':
|
2012-05-20 00:34:54 +00:00
|
|
|
col.prop(st, "draw_overexposed")
|
2010-08-17 07:49:53 +00:00
|
|
|
col.prop(st, "show_safe_margin")
|
2012-05-20 00:34:54 +00:00
|
|
|
elif 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
|
|
|
|
2012-08-19 15:41:56 +00:00
|
|
|
|
|
|
|
class SEQUENCER_PT_modifiers(SequencerButtonsPanel, Panel):
|
|
|
|
bl_label = "Modifiers"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
strip = act_strip(context)
|
|
|
|
sequencer = context.scene.sequence_editor
|
|
|
|
|
Color Management, Stage 2: Switch color pipeline to use OpenColorIO
Replace old color pipeline which was supporting linear/sRGB color spaces
only with OpenColorIO-based pipeline.
This introduces two configurable color spaces:
- Input color space for images and movie clips. This space is used to convert
images/movies from color space in which file is saved to Blender's linear
space (for float images, byte images are not internally converted, only input
space is stored for such images and used later).
This setting could be found in image/clip data block settings.
- Display color space which defines space in which particular display is working.
This settings could be found in scene's Color Management panel.
When render result is being displayed on the screen, apart from converting image
to display space, some additional conversions could happen.
This conversions are:
- View, which defines tone curve applying before display transformation.
These are different ways to view the image on the same display device.
For example it could be used to emulate film view on sRGB display.
- Exposure affects on image exposure before tone map is applied.
- Gamma is post-display gamma correction, could be used to match particular
display gamma.
- RGB curves are user-defined curves which are applying before display
transformation, could be used for different purposes.
All this settings by default are only applying on render result and does not
affect on other images. If some particular image needs to be affected by this
transformation, "View as Render" setting of image data block should be set to
truth. Movie clips are always affected by all display transformations.
This commit also introduces configurable color space in which sequencer is
working. This setting could be found in scene's Color Management panel and
it should be used if such stuff as grading needs to be done in color space
different from sRGB (i.e. when Film view on sRGB display is use, using VD16
space as sequencer's internal space would make grading working in space
which is close to the space using for display).
Some technical notes:
- Image buffer's float buffer is now always in linear space, even if it was
created from 16bit byte images.
- Space of byte buffer is stored in image buffer's rect_colorspace property.
- Profile of image buffer was removed since it's not longer meaningful.
- OpenGL and GLSL is supposed to always work in sRGB space. It is possible
to support other spaces, but it's quite large project which isn't so
much important.
- Legacy Color Management option disabled is emulated by using None display.
It could have some regressions, but there's no clear way to avoid them.
- If OpenColorIO is disabled on build time, it should make blender behaving
in the same way as previous release with color management enabled.
More details could be found at this page (more details would be added soon):
http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.64/Color_Management
--
Thanks to Xavier Thomas, Lukas Toene for initial work on OpenColorIO
integration and to Brecht van Lommel for some further development and code/
usecase review!
2012-09-15 10:05:07 +00:00
|
|
|
layout.prop(strip, "use_linear_modifiers")
|
|
|
|
|
2012-08-19 15:41:56 +00:00
|
|
|
layout.operator_menu_enum("sequencer.strip_modifier_add", "type")
|
|
|
|
|
|
|
|
for mod in strip.modifiers:
|
|
|
|
box = layout.box()
|
|
|
|
|
|
|
|
row = box.row()
|
|
|
|
row.prop(mod, "show_expanded", text="", emboss=False)
|
2012-08-23 09:04:30 +00:00
|
|
|
row.prop(mod, "name", text="")
|
2012-08-19 15:41:56 +00:00
|
|
|
|
|
|
|
row.prop(mod, "mute", text="")
|
2012-08-23 09:04:30 +00:00
|
|
|
|
|
|
|
sub = row.row(align=True)
|
|
|
|
props = sub.operator("sequencer.strip_modifier_move", text="", icon='TRIA_UP')
|
|
|
|
props.name = mod.name
|
|
|
|
props.direction = 'UP'
|
|
|
|
props = sub.operator("sequencer.strip_modifier_move", text="", icon='TRIA_DOWN')
|
|
|
|
props.name = mod.name
|
|
|
|
props.direction = 'DOWN'
|
|
|
|
|
2013-08-23 20:41:21 +00:00
|
|
|
row.operator("sequencer.strip_modifier_remove", text="", icon='X', emboss=False).name = mod.name
|
2012-08-19 15:41:56 +00:00
|
|
|
|
|
|
|
if mod.show_expanded:
|
|
|
|
row = box.row()
|
|
|
|
row.prop(mod, "input_mask_type", expand=True)
|
|
|
|
|
|
|
|
if mod.input_mask_type == 'STRIP':
|
2014-02-18 10:01:16 +00:00
|
|
|
sequences_object = sequencer
|
2014-02-18 13:05:31 +00:00
|
|
|
if sequencer.meta_stack:
|
2014-02-18 10:01:16 +00:00
|
|
|
sequences_object = sequencer.meta_stack[-1]
|
|
|
|
box.prop_search(mod, "input_mask_strip", sequences_object, "sequences", text="Mask")
|
2012-08-19 15:41:56 +00:00
|
|
|
else:
|
|
|
|
box.prop(mod, "input_mask_id")
|
|
|
|
|
|
|
|
if mod.type == 'COLOR_BALANCE':
|
|
|
|
box.prop(mod, "color_multiply")
|
|
|
|
draw_color_balance(box, mod.color_balance)
|
|
|
|
elif mod.type == 'CURVES':
|
|
|
|
box.template_curve_mapping(mod, "curve_mapping", type='COLOR')
|
|
|
|
elif mod.type == 'HUE_CORRECT':
|
|
|
|
box.template_curve_mapping(mod, "curve_mapping", type='HUE')
|
2012-08-24 09:07:04 +00:00
|
|
|
elif mod.type == 'BRIGHT_CONTRAST':
|
|
|
|
col = box.column()
|
|
|
|
col.prop(mod, "bright")
|
|
|
|
col.prop(mod, "contrast")
|
2012-08-19 15:41:56 +00:00
|
|
|
|
|
|
|
|
2011-04-04 10:13:04 +00:00
|
|
|
if __name__ == "__main__": # only for live edit.
|
|
|
|
bpy.utils.register_module(__name__)
|