| 
									
										
										
										
											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, | 
					
						
							|  |  |  | #  Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # ##### 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 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-31 23:35:56 +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
										 |  |  | 
 | 
					
						
							|  |  |  |             if st.display_mode == 'SEQUENCER': | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         layout.prop(st, "display_mode", text="") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         if st.display_mode == 'SEQUENCER': | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             layout.separator() | 
					
						
							|  |  |  |             layout.operator("sequencer.refresh_all") | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											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() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |     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-11-23 00:27:30 +00:00
										 |  |  |         layout.separator() | 
					
						
							|  |  |  |         layout.operator("sequencer.view_all") | 
					
						
							|  |  |  |         layout.operator("sequencer.view_selected") | 
					
						
							|  |  |  |         layout.separator() | 
					
						
							|  |  |  |         layout.operator("screen.screen_full_area", text="Toggle Full Screen") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |         """
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     /* Lock Time */ | 
					
						
							|  |  |  |     uiDefIconTextBut(block, BUTM, 1, (v2d->flag & V2D_VIEWSYNC_SCREEN_TIME)?ICON_CHECKBOX_HLT:ICON_CHECKBOX_DEHLT, | 
					
						
							|  |  |  |             "Lock Time to Other Windows|", 0, yco-=20, | 
					
						
							|  |  |  |             menuwidth, 19, NULL, 0.0, 0.0, 1, 5, ""); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     /* Draw time or frames.*/ | 
					
						
							|  |  |  |     uiDefMenuSep(block); | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         layout.prop(st, "draw_frames") | 
					
						
							|  |  |  |         layout.prop(st, "show_cframe_indicator") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |         if st.display_mode == 'IMAGE': | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             layout.prop(st, "draw_safe_margin") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |         if st.display_mode == 'WAVEFORM': | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             layout.prop(st, "separate_color_preview") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |     if(!sa->full) uiDefIconTextBut(block, BUTM, B_FULL, ICON_BLANK1, "Maximize Window|Ctrl UpArrow", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0,0, ""); | 
					
						
							|  |  |  |     else uiDefIconTextBut(block, BUTM, B_FULL, ICON_BLANK1, "Tile Window|Ctrl DownArrow", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 0, ""); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         """
 | 
					
						
							| 
									
										
										
										
											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_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-10-31 19:31:45 +00:00
										 |  |  |     bl_label = "Marker (TODO)" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     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() | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         layout.operator("sequencer.scene_strip_add", text="Scene") | 
					
						
							|  |  |  |         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' | 
					
						
							|  |  |  |         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' | 
					
						
							| 
									
										
										
										
											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-11-25 13:17:09 +00:00
										 |  |  |         layout.operator("tfm.transform", text="Grab/Move").mode = 'TRANSLATION' | 
					
						
							|  |  |  |         layout.operator("tfm.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") | 
					
						
							|  |  |  |         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 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-31 23:35:56 +00:00
										 |  |  |             if	stype == 'EFFECT': | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |                 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() | 
					
						
							|  |  |  |                 layout.operator("sequencer.image_change") | 
					
						
							|  |  |  |                 layout.operator("sequencer.rendersize") | 
					
						
							| 
									
										
										
										
											2009-10-31 23:35:56 +00:00
										 |  |  |             elif stype == 'SCENE': | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |                 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() | 
					
						
							|  |  |  |                 layout.operator("sequencer.movie_change") | 
					
						
							|  |  |  |                 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") | 
					
						
							|  |  |  |         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-11-23 00:27:30 +00:00
										 |  |  |         layout.operator("sequencer.swap_right") | 
					
						
							|  |  |  |         layout.operator("sequencer.swap_left") | 
					
						
							| 
									
										
										
										
											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 SequencerButtonsPanel(bpy.types.Panel): | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |     bl_space_type = 'SEQUENCE_EDITOR' | 
					
						
							|  |  |  |     bl_region_type = 'UI' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def poll(self, context): | 
					
						
							| 
									
										
										
										
											2009-11-22 17:41:35 +00:00
										 |  |  |         return (context.space_data.display_mode == 'SEQUENCER') and (act_strip(context) is not None) | 
					
						
							| 
									
										
										
										
											2009-06-08 16:48:12 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-31 23:35:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-06-09 16:19:34 +00:00
										 |  |  | class SequencerButtonsPanel_Output(bpy.types.Panel): | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |     def poll(self, context): | 
					
						
							|  |  |  |         return context.space_data.display_mode != 'SEQUENCER' | 
					
						
							| 
									
										
										
										
											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_PT_edit(SequencerButtonsPanel): | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |     bl_label = "Edit Strip" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def draw(self, context): | 
					
						
							|  |  |  |         layout = self.layout | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         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:") | 
					
						
							|  |  |  |         split.prop(strip, "blend_mode", text="") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         row = layout.row() | 
					
						
							|  |  |  |         if strip.mute == True: | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             row.prop(strip, "mute", toggle=True, icon='ICON_RESTRICT_VIEW_ON', text="") | 
					
						
							| 
									
										
										
										
											2009-11-22 17:41:35 +00:00
										 |  |  |         elif strip.mute is False: | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             row.prop(strip, "mute", toggle=True, icon='ICON_RESTRICT_VIEW_OFF', text="") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         sub = row.row() | 
					
						
							|  |  |  |         sub.active = (not strip.mute) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         sub.prop(strip, "blend_opacity", text="Opacity", slider=True) | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         row = layout.row() | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         row.prop(strip, "lock") | 
					
						
							|  |  |  |         row.prop(strip, "frame_locked", text="Frame Lock") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         col = layout.column() | 
					
						
							|  |  |  |         col.enabled = not strip.lock | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         col.prop(strip, "channel") | 
					
						
							|  |  |  |         col.prop(strip, "start_frame") | 
					
						
							|  |  |  |         col.prop(strip, "length") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         col.label(text="Offset:") | 
					
						
							|  |  |  |         col.prop(strip, "start_offset", text="Start") | 
					
						
							|  |  |  |         col.prop(strip, "end_offset", text="End") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         col.label(text="Still:") | 
					
						
							|  |  |  |         col.prop(strip, "start_still", text="Start") | 
					
						
							|  |  |  |         col.prop(strip, "end_still", text="End") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-31 23:35:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-06-08 16:48:12 +00:00
										 |  |  | class SEQUENCER_PT_effect(SequencerButtonsPanel): | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |     bl_label = "Effect Strip" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def poll(self, context): | 
					
						
							|  |  |  |         if context.space_data.display_mode != 'SEQUENCER': | 
					
						
							|  |  |  |             return False | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         strip = act_strip(context) | 
					
						
							|  |  |  |         if not strip: | 
					
						
							|  |  |  |             return False | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         return strip.type in ('COLOR', 'WIPE', 'GLOW', 'SPEED', 'TRANSFORM') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     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") | 
					
						
							|  |  |  |             flow.prop(strip, "blur_distance") | 
					
						
							| 
									
										
										
										
											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) | 
					
						
							|  |  |  |             row.prop(strip, "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() | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             flow.prop(strip, "curve_velocity") | 
					
						
							|  |  |  |             flow.prop(strip, "curve_compress_y") | 
					
						
							|  |  |  |             flow.prop(strip, "frame_blending") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         elif strip.type == 'TRANSFORM': | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             col = layout.column() | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             col.prop(strip, "interpolation") | 
					
						
							|  |  |  |             col.prop(strip, "translation_unit") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |             col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             col.label(text="Position X:") | 
					
						
							|  |  |  |             col.prop(strip, "translate_start_x", text="Start") | 
					
						
							|  |  |  |             col.prop(strip, "translate_end_x", text="End") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |             col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             col.label(text="Position Y:") | 
					
						
							|  |  |  |             col.prop(strip, "translate_start_y", text="Start") | 
					
						
							|  |  |  |             col.prop(strip, "translate_end_y", text="End") | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							|  |  |  |             col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             col.label(text="Scale X:") | 
					
						
							|  |  |  |             col.prop(strip, "scale_start_x", text="Start") | 
					
						
							|  |  |  |             col.prop(strip, "scale_end_x", text="End") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |             col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             col.label(text="Scale Y:") | 
					
						
							|  |  |  |             col.prop(strip, "scale_start_y", text="Start") | 
					
						
							|  |  |  |             col.prop(strip, "scale_end_y", text="End") | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							|  |  |  |             col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             col.label(text="Rotation:") | 
					
						
							|  |  |  |             col.prop(strip, "rotation_start", text="Start") | 
					
						
							|  |  |  |             col.prop(strip, "rotation_end", text="End") | 
					
						
							| 
									
										
										
										
											2009-06-08 16:48:12 +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': | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             col.prop(strip, "speed_fader", text="Speed fader") | 
					
						
							| 
									
										
										
										
											2009-11-22 20:22:35 +00:00
										 |  |  |         else: | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             col.prop(strip, "effect_fader", text="Effect fader") | 
					
						
							| 
									
										
										
										
											2009-11-14 14:58:19 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-31 23:35:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-06-08 16:48:12 +00:00
										 |  |  | class SEQUENCER_PT_input(SequencerButtonsPanel): | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |     bl_label = "Strip Input" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def poll(self, context): | 
					
						
							|  |  |  |         if context.space_data.display_mode != 'SEQUENCER': | 
					
						
							|  |  |  |             return False | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         strip = act_strip(context) | 
					
						
							|  |  |  |         if not strip: | 
					
						
							|  |  |  |             return False | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         return strip.type in ('MOVIE', 'IMAGE') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def draw(self, context): | 
					
						
							|  |  |  |         layout = self.layout | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         strip = act_strip(context) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         split = layout.split(percentage=0.2) | 
					
						
							|  |  |  |         col = split.column() | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         col.label(text="Path:") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |         col = split.column() | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         col.prop(strip, "directory", text="") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         # Current element for the filename | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         elem = strip.getStripElem(context.scene.current_frame) | 
					
						
							|  |  |  |         if elem: | 
					
						
							|  |  |  |             split = layout.split(percentage=0.2) | 
					
						
							|  |  |  |             col = split.column() | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             col.label(text="File:") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |             col = split.column() | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             col.prop(elem, "filename", text="") # strip.elements[0] could be a fallback | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         layout.prop(strip, "use_translation", text="Image Offset:") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |         if strip.transform: | 
					
						
							|  |  |  |             col = layout.column(align=True) | 
					
						
							|  |  |  |             col.active = strip.use_translation | 
					
						
							| 
									
										
										
										
											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:") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |         if strip.crop: | 
					
						
							|  |  |  |             col = layout.column(align=True) | 
					
						
							|  |  |  |             col.active = strip.use_crop | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             col.prop(strip.crop, "top") | 
					
						
							|  |  |  |             col.prop(strip.crop, "left") | 
					
						
							|  |  |  |             col.prop(strip.crop, "bottom") | 
					
						
							|  |  |  |             col.prop(strip.crop, "right") | 
					
						
							| 
									
										
										
										
											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:") | 
					
						
							|  |  |  |         col.prop(strip, "animation_start_offset", text="Start") | 
					
						
							|  |  |  |         col.prop(strip, "animation_end_offset", text="End") | 
					
						
							| 
									
										
										
										
											2009-06-08 16:48:12 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-31 23:35:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-28 12:27:29 +00:00
										 |  |  | class SEQUENCER_PT_sound(SequencerButtonsPanel): | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |     bl_label = "Sound" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def poll(self, context): | 
					
						
							|  |  |  |         if context.space_data.display_mode != 'SEQUENCER': | 
					
						
							|  |  |  |             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() | 
					
						
							|  |  |  |         layout.prop(strip.sound, "filename", text="") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         row = layout.row() | 
					
						
							|  |  |  |         if strip.sound.packed_file: | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             row.operator("sound.unpack", icon='ICON_PACKAGE', text="Unpack") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |         else: | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             row.operator("sound.pack", icon='ICON_UGLYPACKAGE', text="Pack") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         row.prop(strip.sound, "caching") | 
					
						
							| 
									
										
										
										
											2009-11-21 00:05:43 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         layout.prop(strip, "volume") | 
					
						
							| 
									
										
										
										
											2009-11-28 23:37:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-22 21:16:04 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | class SEQUENCER_PT_scene(SequencerButtonsPanel): | 
					
						
							|  |  |  |     bl_label = "Scene" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def poll(self, context): | 
					
						
							|  |  |  |         if context.space_data.display_mode != 'SEQUENCER': | 
					
						
							|  |  |  |             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") | 
					
						
							| 
									
										
										
										
											2009-08-28 12:27:29 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-31 23:35:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-06-08 16:48:12 +00:00
										 |  |  | class SEQUENCER_PT_filter(SequencerButtonsPanel): | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |     bl_label = "Filter" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def poll(self, context): | 
					
						
							|  |  |  |         if context.space_data.display_mode != 'SEQUENCER': | 
					
						
							|  |  |  |             return False | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         strip = act_strip(context) | 
					
						
							|  |  |  |         if not strip: | 
					
						
							|  |  |  |             return False | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         return strip.type in ('MOVIE', 'IMAGE', 'SCENE', 'META') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     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") | 
					
						
							|  |  |  |         col.prop(strip, "de_interlace") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         col = layout.column() | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         col.label(text="Colors:") | 
					
						
							|  |  |  |         col.prop(strip, "multiply_colors", text="Multiply") | 
					
						
							|  |  |  |         col.prop(strip, "premultiply") | 
					
						
							|  |  |  |         col.prop(strip, "convert_float") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         col = layout.column() | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         col.label(text="Flip:") | 
					
						
							|  |  |  |         col.prop(strip, "flip_x", text="X") | 
					
						
							|  |  |  |         col.prop(strip, "flip_y", text="Y") | 
					
						
							|  |  |  |         col.prop(strip, "reverse_frames", text="Backwards") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         layout.prop(strip, "use_color_balance") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |         if strip.color_balance: # TODO - need to add this somehow | 
					
						
							|  |  |  |             row = layout.row() | 
					
						
							|  |  |  |             row.active = strip.use_color_balance | 
					
						
							|  |  |  |             col = row.column() | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             col.prop(strip.color_balance, "lift") | 
					
						
							|  |  |  |             col.prop(strip.color_balance, "inverse_lift", text="Inverse") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |             col = row.column() | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             col.prop(strip.color_balance, "gamma") | 
					
						
							|  |  |  |             col.prop(strip.color_balance, "inverse_gamma", text="Inverse") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |             col = row.column() | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             col.prop(strip.color_balance, "gain") | 
					
						
							|  |  |  |             col.prop(strip.color_balance, "inverse_gain", text="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_PT_proxy(SequencerButtonsPanel): | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |     bl_label = "Proxy" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def poll(self, context): | 
					
						
							|  |  |  |         if context.space_data.display_mode != 'SEQUENCER': | 
					
						
							|  |  |  |             return False | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         strip = act_strip(context) | 
					
						
							|  |  |  |         if not strip: | 
					
						
							|  |  |  |             return False | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         return strip.type in ('MOVIE', 'IMAGE', 'SCENE', 'META') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     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() | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         flow.prop(strip, "proxy_custom_directory") | 
					
						
							| 
									
										
										
										
											2009-10-31 19:31:45 +00:00
										 |  |  |         if strip.proxy: # TODO - need to add this somehow | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |             flow.prop(strip.proxy, "directory") | 
					
						
							|  |  |  |             flow.prop(strip.proxy, "file") | 
					
						
							| 
									
										
										
										
											2009-06-08 16:48:12 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-31 23:35:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-06-09 16:19:34 +00:00
										 |  |  | class SEQUENCER_PT_view(SequencerButtonsPanel_Output): | 
					
						
							| 
									
										
										
										
											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() | 
					
						
							| 
									
										
										
										
											2009-11-23 00:27:30 +00:00
										 |  |  |         col.prop(st, "draw_overexposed") # text="Zebra" | 
					
						
							|  |  |  |         col.prop(st, "draw_safe_margin") | 
					
						
							| 
									
										
										
										
											2009-06-09 16:19:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | bpy.types.register(SEQUENCER_HT_header) # header/menu classes | 
					
						
							| 
									
										
										
										
											2009-06-08 16:48:12 +00:00
										 |  |  | bpy.types.register(SEQUENCER_MT_view) | 
					
						
							|  |  |  | bpy.types.register(SEQUENCER_MT_select) | 
					
						
							|  |  |  | bpy.types.register(SEQUENCER_MT_marker) | 
					
						
							|  |  |  | bpy.types.register(SEQUENCER_MT_add) | 
					
						
							|  |  |  | bpy.types.register(SEQUENCER_MT_add_effect) | 
					
						
							|  |  |  | bpy.types.register(SEQUENCER_MT_strip) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-06-09 16:19:34 +00:00
										 |  |  | bpy.types.register(SEQUENCER_PT_edit) # sequencer panels | 
					
						
							| 
									
										
										
										
											2009-06-08 16:48:12 +00:00
										 |  |  | bpy.types.register(SEQUENCER_PT_effect) | 
					
						
							|  |  |  | bpy.types.register(SEQUENCER_PT_input) | 
					
						
							| 
									
										
										
										
											2009-08-28 12:27:29 +00:00
										 |  |  | bpy.types.register(SEQUENCER_PT_sound) | 
					
						
							| 
									
										
										
										
											2009-11-22 21:16:04 +00:00
										 |  |  | bpy.types.register(SEQUENCER_PT_scene) | 
					
						
							| 
									
										
										
										
											2009-06-08 16:48:12 +00:00
										 |  |  | bpy.types.register(SEQUENCER_PT_filter) | 
					
						
							|  |  |  | bpy.types.register(SEQUENCER_PT_proxy) | 
					
						
							| 
									
										
										
										
											2009-06-08 20:08:19 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-06-09 16:19:34 +00:00
										 |  |  | bpy.types.register(SEQUENCER_PT_view) # view panels |