| 
									
										
										
										
											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 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							|  |  |  | class SEQUENCER_HT_header(bpy.types.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: | 
					
						
							|  |  |  |             sub = row.row(align=True) | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             sub.menu("SEQUENCER_MT_view") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             row.separator() | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-12-14 21:42:25 +00:00
										 |  |  |             if (st.view_type == 'SEQUENCER') or (st.view_type == 'SEQUENCER_PREVIEW'): | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |                 sub.menu("SEQUENCER_MT_select") | 
					
						
							|  |  |  |                 sub.menu("SEQUENCER_MT_marker") | 
					
						
							|  |  |  |                 sub.menu("SEQUENCER_MT_add") | 
					
						
							|  |  |  |                 sub.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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-12-14 21:42:25 +00:00
										 |  |  |         if (st.view_type == 'PREVIEW') or (st.view_type == '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
										 |  |  | 
 | 
					
						
							|  |  |  |         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") | 
					
						
							|  |  |  |         elif (st.view_type == 'SEQUENCER_PREVIEW'): | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             layout.separator() | 
					
						
							|  |  |  |             layout.operator("sequencer.refresh_all") | 
					
						
							| 
									
										
										
										
											2009-12-14 21:42:25 +00:00
										 |  |  |             layout.prop(st, "display_channel", text="Channel") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |         else: | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +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') | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-12-16 13:27:30 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-12-14 21:42:25 +00:00
										 |  |  | class SEQUENCER_MT_view_toggle(bpy.types.Menu): | 
					
						
							|  |  |  |     bl_label = "View Type" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-06-08 16:48:12 +00:00
										 |  |  | class SEQUENCER_MT_view(bpy.types.Menu): | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |     bl_label = "View" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def draw(self, context): | 
					
						
							|  |  |  |         layout = self.layout | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         st = context.space_data | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         layout.column() | 
					
						
							| 
									
										
										
										
											2010-07-30 14:56:17 +00:00
										 |  |  |          | 
					
						
							|  |  |  |         layout.operator("sequencer.properties", icon='MENU_PANEL') | 
					
						
							|  |  |  |          | 
					
						
							|  |  |  |         layout.separator() | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |     uiBlock *block= uiBeginBlock(C, ar, "seq_viewmenu", UI_EMBOSSP); | 
					
						
							|  |  |  |     short yco= 0, menuwidth=120; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     if (sseq->mainb == SEQ_DRAW_SEQUENCE) { | 
					
						
							|  |  |  |         uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, | 
					
						
							|  |  |  |                  "Play Back Animation " | 
					
						
							|  |  |  |                  "in all Sequence Areas|Alt A", 0, yco-=20, | 
					
						
							|  |  |  |                  menuwidth, 19, NULL, 0.0, 0.0, 1, 1, ""); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     else { | 
					
						
							|  |  |  |         uiDefIconTextBut(block, BUTM, 1, ICON_MENU_PANEL, | 
					
						
							|  |  |  |                  "Grease Pencil...", 0, yco-=20, | 
					
						
							|  |  |  |                  menuwidth, 19, NULL, 0.0, 0.0, 1, 7, ""); | 
					
						
							|  |  |  |         uiDefMenuSep(block); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, | 
					
						
							|  |  |  |                  "Play Back Animation " | 
					
						
							|  |  |  |                  "in this window|Alt A", 0, yco-=20, | 
					
						
							|  |  |  |                  menuwidth, 19, NULL, 0.0, 0.0, 1, 1, ""); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, | 
					
						
							|  |  |  |              "Play Back Animation in all " | 
					
						
							|  |  |  |              "3D Views and Sequence Areas|Alt Shift A", | 
					
						
							|  |  |  |              0, yco-=20, | 
					
						
							|  |  |  |              menuwidth, 19, NULL, 0.0, 0.0, 1, 2, ""); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         """
 | 
					
						
							| 
									
										
										
										
											2009-12-14 21:42:25 +00:00
										 |  |  |         if (st.view_type == 'SEQUENCER') or (st.view_type == 'SEQUENCER_PREVIEW'): | 
					
						
							|  |  |  |             layout.operator("sequencer.view_all", text='View all Sequences') | 
					
						
							|  |  |  |         if (st.view_type == 'PREVIEW') or (st.view_type == 'SEQUENCER_PREVIEW'): | 
					
						
							| 
									
										
										
										
											2010-02-07 23:39:44 +00:00
										 |  |  |             layout.operator_context = 'INVOKE_REGION_PREVIEW' | 
					
						
							| 
									
										
										
										
											2009-12-14 21:42:25 +00:00
										 |  |  |             layout.operator("sequencer.view_all_preview", text='Fit preview in window') | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-08-17 07:49:53 +00:00
										 |  |  |         layout.prop(st, "show_frames") | 
					
						
							|  |  |  |         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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-06-08 16:48:12 +00:00
										 |  |  | class SEQUENCER_MT_select(bpy.types.Menu): | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |     bl_label = "Select" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def draw(self, context): | 
					
						
							|  |  |  |         layout = self.layout | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         layout.column() | 
					
						
							| 
									
										
										
										
											2009-11-23 11:43: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() | 
					
						
							| 
									
										
										
										
											2009-11-23 11:43: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() | 
					
						
							|  |  |  |         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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-06-08 16:48:12 +00:00
										 |  |  | class SEQUENCER_MT_marker(bpy.types.Menu): | 
					
						
							| 
									
										
										
										
											2009-12-13 13:59:16 +00:00
										 |  |  |     bl_label = "Marker" | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     def draw(self, context): | 
					
						
							|  |  |  |         layout = self.layout | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         layout.column() | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         layout.operator("marker.add", text="Add Marker") | 
					
						
							|  |  |  |         layout.operator("marker.duplicate", text="Duplicate Marker") | 
					
						
							|  |  |  |         layout.operator("marker.move", text="Grab/Move Marker") | 
					
						
							|  |  |  |         layout.operator("marker.delete", text="Delete Marker") | 
					
						
							|  |  |  |         layout.separator() | 
					
						
							|  |  |  |         layout.label(text="ToDo: Name Marker") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         #layout.operator("sequencer.sound_strip_add", text="Transform Markers") # toggle, will be rna - (sseq->flag & SEQ_MARKER_TRANS) | 
					
						
							| 
									
										
										
										
											2009-06-08 16:48:12 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-31 23:35:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-06-08 16:48:12 +00:00
										 |  |  | class SEQUENCER_MT_add(bpy.types.Menu): | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |     bl_label = "Add" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def draw(self, context): | 
					
						
							|  |  |  |         layout = self.layout | 
					
						
							|  |  |  |         layout.operator_context = 'INVOKE_REGION_WIN' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         layout.column() | 
					
						
							| 
									
										
										
										
											2010-03-16 17:23:20 +00:00
										 |  |  |         layout.operator_menu_enum("sequencer.scene_strip_add", "scene", text="Scene...") | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-06-08 16:48:12 +00:00
										 |  |  | class SEQUENCER_MT_add_effect(bpy.types.Menu): | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |     bl_label = "Effect Strip..." | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def draw(self, context): | 
					
						
							|  |  |  |         layout = self.layout | 
					
						
							|  |  |  |         layout.operator_context = 'INVOKE_REGION_WIN' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         layout.column() | 
					
						
							| 
									
										
										
										
											2009-11-25 13:17:09 +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' | 
					
						
							| 
									
										
										
										
											2009-12-08 00:57:14 +00:00
										 |  |  |         layout.operator("sequencer.effect_strip_add", text="Cross").type = 'CROSS' | 
					
						
							| 
									
										
										
										
											2009-11-25 13:17:09 +00:00
										 |  |  |         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' | 
					
						
							| 
									
										
										
										
											2010-04-25 15:39:04 +00:00
										 |  |  |         layout.operator("sequencer.effect_strip_add", text="Multicam Selector").type = 'MULTICAM' | 
					
						
							| 
									
										
										
										
											2009-06-08 16:48:12 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-31 23:35:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-06-08 16:48:12 +00:00
										 |  |  | class SEQUENCER_MT_strip(bpy.types.Menu): | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |     bl_label = "Strip" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def draw(self, context): | 
					
						
							|  |  |  |         layout = self.layout | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         layout.operator_context = 'INVOKE_REGION_WIN' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         layout.column() | 
					
						
							| 
									
										
										
										
											2009-12-10 10:36:32 +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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-23 11:43: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") | 
					
						
							| 
									
										
										
										
											2010-05-03 22:17:05 +00:00
										 |  |  |         layout.operator("sequencer.deinterlace_selected_movies") | 
					
						
							| 
									
										
										
										
											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") | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-23 11:43: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") | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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): | 
					
						
							| 
									
										
										
										
											2009-12-14 21:42:25 +00:00
										 |  |  |         return (context.space_data.view_type == 'SEQUENCER') or (context.space_data.view_type == '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): | 
					
						
							| 
									
										
										
										
											2009-12-14 21:42:25 +00:00
										 |  |  |         return (context.space_data.view_type == 'PREVIEW') or (context.space_data.view_type == 'SEQUENCER_PREVIEW') | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-08-02 02:55:12 +00:00
										 |  |  | class SEQUENCER_PT_edit(SequencerButtonsPanel, bpy.types.Panel): | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |     bl_label = "Edit Strip" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def draw(self, context): | 
					
						
							|  |  |  |         layout = self.layout | 
					
						
							| 
									
										
										
										
											2010-07-13 08:20:34 +00:00
										 |  |  |         scene = context.scene | 
					
						
							| 
									
										
										
										
											2010-02-23 12:48:35 +00:00
										 |  |  |         render = context.scene.render | 
					
						
							| 
									
										
										
										
											2010-07-13 08:20:34 +00:00
										 |  |  |         frame_current = scene.frame_current | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |         strip = act_strip(context) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         split = layout.split(percentage=0.3) | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         split.label(text="Name:") | 
					
						
							|  |  |  |         split.prop(strip, "name", text="") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         split = layout.split(percentage=0.3) | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         split.label(text="Type:") | 
					
						
							|  |  |  |         split.prop(strip, "type", text="") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         split = layout.split(percentage=0.3) | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +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) | 
					
						
							| 
									
										
										
										
											2010-08-20 06:09:58 +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() | 
					
						
							| 
									
										
										
										
											2010-08-20 06:09:58 +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) | 
					
						
							| 
									
										
										
										
											2010-07-13 22:21:59 +00:00
										 |  |  |         row.label(text="Playhead: %d" % (frame_current - strip.frame_start)) | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-07-13 08:20:34 +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)) | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-31 23:35:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-08-02 02:55:12 +00:00
										 |  |  | class SEQUENCER_PT_effect(SequencerButtonsPanel, bpy.types.Panel): | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |     bl_label = "Effect Strip" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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-12-04 17:54:48 +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', | 
					
						
							| 
									
										
										
										
											2010-04-25 15:39:04 +00:00
										 |  |  |                               'WIPE', 'GLOW', 'TRANSFORM', 'COLOR', 'SPEED', | 
					
						
							|  |  |  |                               'MULTICAM') | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     def draw(self, context): | 
					
						
							|  |  |  |         layout = self.layout | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         strip = act_strip(context) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         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") | 
					
						
							|  |  |  |             col.label(text="Direction:") | 
					
						
							|  |  |  |             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) | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31: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': | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             layout.prop(strip, "global_speed") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |             flow = layout.column_flow() | 
					
						
							| 
									
										
										
										
											2010-08-20 06:09:58 +00:00
										 |  |  |             flow.prop(strip, "use_curve_velocity") | 
					
						
							|  |  |  |             flow.prop(strip, "use_curve_compress_y") | 
					
						
							|  |  |  |             flow.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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-04-25 15:39:04 +00:00
										 |  |  |         elif strip.type == "MULTICAM": | 
					
						
							|  |  |  |             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
										 |  |  | 
 | 
					
						
							|  |  |  |             row.label("Cut To") | 
					
						
							|  |  |  |             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': | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             col.prop(strip, "speed_fader", text="Speed fader") | 
					
						
							| 
									
										
										
										
											2009-12-11 22:51:53 +00:00
										 |  |  |         elif strip.type in ('CROSS', 'GAMMA_CROSS', 'PLUGIN', 'WIPE'): | 
					
						
							| 
									
										
										
										
											2010-08-20 06:09:58 +00:00
										 |  |  |                 col.prop(strip, "use_default_fade", "Default fade") | 
					
						
							|  |  |  |                 if not strip.use_default_fade: | 
					
						
							| 
									
										
										
										
											2009-12-09 20:03:08 +00:00
										 |  |  |                     col.prop(strip, "effect_fader", text="Effect fader") | 
					
						
							| 
									
										
										
										
											2010-07-23 17:09:33 +00:00
										 |  |  |          | 
					
						
							|  |  |  |         layout.prop(strip, "use_translation", text="Image Offset:") | 
					
						
							|  |  |  |         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") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         layout.prop(strip, "use_crop", text="Image Crop:") | 
					
						
							|  |  |  |         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) | 
					
						
							|  |  |  |         col.label(text="Position:") | 
					
						
							|  |  |  |         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) | 
					
						
							|  |  |  |             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") | 
					
						
							| 
									
										
										
										
											2009-11-14 14:58:19 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-31 23:35:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-08-02 02:55:12 +00:00
										 |  |  | class SEQUENCER_PT_input(SequencerButtonsPanel, bpy.types.Panel): | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |     bl_label = "Strip Input" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-04-18 13:05:17 +00:00
										 |  |  |         return strip.type in ('MOVIE', 'IMAGE', 'SCENE', 'META', | 
					
						
							|  |  |  |                               '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', | 
					
						
							| 
									
										
										
										
											2010-05-03 16:00:42 +00:00
										 |  |  |                               'MULTICAM', 'SPEED') | 
					
						
							| 
									
										
										
										
											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() | 
					
						
							|  |  |  |             col.label(text="Path:") | 
					
						
							|  |  |  |             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() | 
					
						
							|  |  |  |                 col.label(text="File:") | 
					
						
							|  |  |  |                 col = split.column() | 
					
						
							|  |  |  |                 col.prop(elem, "filename", text="") # strip.elements[0] could be a fallback | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         elif seq_type == 'MOVIE': | 
					
						
							|  |  |  |             split = layout.split(percentage=0.2) | 
					
						
							|  |  |  |             col = split.column() | 
					
						
							|  |  |  |             col.label(text="Path:") | 
					
						
							|  |  |  |             col = split.column() | 
					
						
							|  |  |  |             col.prop(strip, "filepath", text="") | 
					
						
							|  |  |  |             col.prop(strip, "mpeg_preseek", text="MPEG Preseek") | 
					
						
							|  |  |  |         # TODO, sound??? | 
					
						
							|  |  |  |         # end drawing filename | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +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
										 |  |  | 
 | 
					
						
							|  |  |  |         col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         col.label(text="Trim Duration:") | 
					
						
							| 
									
										
										
										
											2010-08-05 21:58:57 +00:00
										 |  |  |         col.prop(strip, "frame_offset_start", text="Start") | 
					
						
							|  |  |  |         col.prop(strip, "frame_offset_end", text="End") | 
					
						
							| 
									
										
										
										
											2010-03-06 01:40:29 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-08-02 02:55:12 +00:00
										 |  |  | class SEQUENCER_PT_sound(SequencerButtonsPanel, bpy.types.Panel): | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |     bl_label = "Sound" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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: | 
					
						
							| 
									
										
										
										
											2009-12-10 10:23:53 +00:00
										 |  |  |             row.operator("sound.unpack", icon='PACKAGE', text="Unpack") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |         else: | 
					
						
							| 
									
										
										
										
											2009-12-10 10:23:53 +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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         layout.prop(strip, "volume") | 
					
						
							| 
									
										
										
										
											2010-05-30 21:17:59 +00:00
										 |  |  |         layout.prop(strip, "attenuation") | 
					
						
							| 
									
										
										
										
											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:") | 
					
						
							| 
									
										
										
										
											2010-08-20 06:09:58 +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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-08-02 02:55:12 +00:00
										 |  |  | class SEQUENCER_PT_scene(SequencerButtonsPanel, bpy.types.Panel): | 
					
						
							| 
									
										
										
										
											2009-11-22 21:16:04 +00:00
										 |  |  |     bl_label = "Scene" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							|  |  |  |         layout.label(text="Camera Override") | 
					
						
							|  |  |  |         layout.template_ID(strip, "scene_camera") | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-31 23:35:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-08-02 02:55:12 +00:00
										 |  |  | class SEQUENCER_PT_filter(SequencerButtonsPanel, bpy.types.Panel): | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |     bl_label = "Filter" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-04-18 13:05:17 +00:00
										 |  |  |         return strip.type in ('MOVIE', 'IMAGE', 'SCENE', 'META', | 
					
						
							|  |  |  |                               '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', | 
					
						
							|  |  |  |                               'MULTICAM', 'SPEED') | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     def draw(self, context): | 
					
						
							|  |  |  |         layout = self.layout | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         strip = act_strip(context) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         col = layout.column() | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         col.label(text="Video:") | 
					
						
							|  |  |  |         col.prop(strip, "strobe") | 
					
						
							| 
									
										
										
										
											2010-04-18 13:05:17 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         row = layout.row() | 
					
						
							|  |  |  |         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() | 
					
						
							| 
									
										
										
										
											2010-08-20 06:09:58 +00:00
										 |  |  |         col.prop(strip, "use_reverse_frames", text="Backwards") | 
					
						
							|  |  |  |         col.prop(strip, "use_deinterlace") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         col = layout.column() | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         col.label(text="Colors:") | 
					
						
							| 
									
										
										
										
											2010-07-13 09:28:01 +00:00
										 |  |  |         col.prop(strip, "color_saturation", text="Saturation") | 
					
						
							| 
									
										
										
										
											2010-08-20 06:09:58 +00:00
										 |  |  |         col.prop(strip, "color_multiply", text="Multiply") | 
					
						
							|  |  |  |         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-07-04 01:56:04 +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") | 
					
						
							| 
									
										
										
										
											2010-08-20 06:09:58 +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") | 
					
						
							| 
									
										
										
										
											2010-08-20 06:09:58 +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") | 
					
						
							| 
									
										
										
										
											2010-08-20 06:09:58 +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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-08-02 02:55:12 +00:00
										 |  |  | class SEQUENCER_PT_proxy(SequencerButtonsPanel, bpy.types.Panel): | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |     bl_label = "Proxy" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-04-25 15:39:04 +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") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |         if strip.proxy: # TODO - need to add this somehow | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-31 23:35:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-08-02 02:55:12 +00:00
										 |  |  | class SEQUENCER_PT_preview(SequencerButtonsPanel_Output, bpy.types.Panel): | 
					
						
							| 
									
										
										
										
											2010-07-28 07:52:05 +00:00
										 |  |  |     bl_label = "Scene Preview/Render" | 
					
						
							|  |  |  |     bl_space_type = 'SEQUENCE_EDITOR' | 
					
						
							|  |  |  |     bl_region_type = 'UI' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def draw(self, context): | 
					
						
							|  |  |  |         layout = self.layout | 
					
						
							|  |  |  |         render = context.scene.render | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         col = layout.column() | 
					
						
							|  |  |  |         col.prop(render, "use_sequencer_gl_preview", text="Open GL Preview") | 
					
						
							|  |  |  |         col = layout.column() | 
					
						
							|  |  |  |         col.active = render.use_sequencer_gl_preview | 
					
						
							|  |  |  |         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="") | 
					
						
							|  |  |  |         '''
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-08-02 02:55:12 +00:00
										 |  |  | class SEQUENCER_PT_view(SequencerButtonsPanel_Output, bpy.types.Panel): | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |     bl_label = "View Settings" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     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': | 
					
						
							|  |  |  |             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") | 
					
						
							| 
									
										
										
										
											2010-02-14 11:21:21 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | def register(): | 
					
						
							| 
									
										
										
										
											2010-08-02 02:55:12 +00:00
										 |  |  |     pass | 
					
						
							| 
									
										
										
										
											2010-02-14 11:21:21 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-02-22 23:32:58 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-02-14 11:21:21 +00:00
										 |  |  | def unregister(): | 
					
						
							| 
									
										
										
										
											2010-08-02 02:55:12 +00:00
										 |  |  |     pass | 
					
						
							| 
									
										
										
										
											2010-02-16 09:55:07 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | if __name__ == "__main__": | 
					
						
							|  |  |  |     register() |