change python scripts so modules which register with blender have a register() functi...
[blender.git] / release / scripts / ui / space_sequencer.py
1 # ##### BEGIN GPL LICENSE BLOCK #####
2 #
3 #  This program is free software; you can redistribute it and/or
4 #  modify it under the terms of the GNU General Public License
5 #  as published by the Free Software Foundation; either version 2
6 #  of the License, or (at your option) any later version.
7 #
8 #  This program is distributed in the hope that it will be useful,
9 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
10 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 #  GNU General Public License for more details.
12 #
13 #  You should have received a copy of the GNU General Public License
14 #  along with this program; if not, write to the Free Software Foundation,
15 #  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 #
17 # ##### END GPL LICENSE BLOCK #####
18
19 # <pep8 compliant>
20 import bpy
21
22
23 def act_strip(context):
24     try:
25         return context.scene.sequence_editor.active_strip
26     except AttributeError:
27         return None
28
29
30 class SEQUENCER_HT_header(bpy.types.Header):
31     bl_space_type = 'SEQUENCE_EDITOR'
32
33     def draw(self, context):
34         layout = self.layout
35
36         st = context.space_data
37
38         row = layout.row(align=True)
39         row.template_header()
40
41         if context.area.show_menus:
42             sub = row.row(align=True)
43             sub.menu("SEQUENCER_MT_view")
44
45             row.separator()
46
47             if (st.view_type == 'SEQUENCER') or (st.view_type == 'SEQUENCER_PREVIEW'):
48                 sub.menu("SEQUENCER_MT_select")
49                 sub.menu("SEQUENCER_MT_marker")
50                 sub.menu("SEQUENCER_MT_add")
51                 sub.menu("SEQUENCER_MT_strip")
52
53         layout.prop(st, "view_type", text="")
54
55         if (st.view_type == 'PREVIEW') or (st.view_type == 'SEQUENCER_PREVIEW'):
56             layout.prop(st, "display_mode", text="")
57
58         if (st.view_type == 'SEQUENCER'):
59             row = layout.row(align=True)
60             row.operator("sequencer.copy", text="", icon='COPYDOWN')
61             row.operator("sequencer.paste", text="", icon='PASTEDOWN')
62
63             layout.separator()
64             layout.operator("sequencer.refresh_all")
65         elif (st.view_type == 'SEQUENCER_PREVIEW'):
66             layout.separator()
67             layout.operator("sequencer.refresh_all")
68             layout.prop(st, "display_channel", text="Channel")
69         else:
70             layout.prop(st, "display_channel", text="Channel")
71
72
73 class SEQUENCER_MT_view_toggle(bpy.types.Menu):
74     bl_label = "View Type"
75
76     def draw(self, context):
77         layout = self.layout
78
79         layout.operator("sequencer.view_toggle").type = 'SEQUENCER'
80         layout.operator("sequencer.view_toggle").type = 'PREVIEW'
81         layout.operator("sequencer.view_toggle").type = 'SEQUENCER_PREVIEW'
82
83
84 class SEQUENCER_MT_view(bpy.types.Menu):
85     bl_label = "View"
86
87     def draw(self, context):
88         layout = self.layout
89
90         st = context.space_data
91
92         layout.column()
93
94         """
95     uiBlock *block= uiBeginBlock(C, ar, "seq_viewmenu", UI_EMBOSSP);
96     short yco= 0, menuwidth=120;
97
98     if (sseq->mainb == SEQ_DRAW_SEQUENCE) {
99         uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1,
100                  "Play Back Animation "
101                  "in all Sequence Areas|Alt A", 0, yco-=20,
102                  menuwidth, 19, NULL, 0.0, 0.0, 1, 1, "");
103     }
104     else {
105         uiDefIconTextBut(block, BUTM, 1, ICON_MENU_PANEL,
106                  "Grease Pencil...", 0, yco-=20,
107                  menuwidth, 19, NULL, 0.0, 0.0, 1, 7, "");
108         uiDefMenuSep(block);
109
110         uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1,
111                  "Play Back Animation "
112                  "in this window|Alt A", 0, yco-=20,
113                  menuwidth, 19, NULL, 0.0, 0.0, 1, 1, "");
114     }
115     uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1,
116              "Play Back Animation in all "
117              "3D Views and Sequence Areas|Alt Shift A",
118              0, yco-=20,
119              menuwidth, 19, NULL, 0.0, 0.0, 1, 2, "");
120
121         """
122         layout.separator()
123         if (st.view_type == 'SEQUENCER') or (st.view_type == 'SEQUENCER_PREVIEW'):
124             layout.operator("sequencer.view_all", text='View all Sequences')
125         if (st.view_type == 'PREVIEW') or (st.view_type == 'SEQUENCER_PREVIEW'):
126             layout.operator_context = 'INVOKE_REGION_PREVIEW'
127             layout.operator("sequencer.view_all_preview", text='Fit preview in window')
128             layout.operator_context = 'INVOKE_DEFAULT'
129         layout.operator("sequencer.view_selected")
130
131         layout.prop(st, "draw_frames")
132         layout.prop(st, "show_cframe_indicator")
133         if st.display_mode == 'IMAGE':
134             layout.prop(st, "draw_safe_margin")
135         if st.display_mode == 'WAVEFORM':
136             layout.prop(st, "separate_color_preview")
137
138         layout.separator()
139
140         layout.operator("screen.area_dupli")
141         layout.operator("screen.screen_full_area")
142
143
144 class SEQUENCER_MT_select(bpy.types.Menu):
145     bl_label = "Select"
146
147     def draw(self, context):
148         layout = self.layout
149
150         layout.column()
151         layout.operator("sequencer.select_active_side", text="Strips to the Left").side = 'LEFT'
152         layout.operator("sequencer.select_active_side", text="Strips to the Right").side = 'RIGHT'
153         layout.separator()
154         layout.operator("sequencer.select_handles", text="Surrounding Handles").side = 'BOTH'
155         layout.operator("sequencer.select_handles", text="Left Handle").side = 'LEFT'
156         layout.operator("sequencer.select_handles", text="Right Handle").side = 'RIGHT'
157         layout.separator()
158         layout.operator("sequencer.select_linked")
159         layout.operator("sequencer.select_all_toggle")
160         layout.operator("sequencer.select_inverse")
161
162
163 class SEQUENCER_MT_marker(bpy.types.Menu):
164     bl_label = "Marker"
165
166     def draw(self, context):
167         layout = self.layout
168
169         layout.column()
170         layout.operator("marker.add", text="Add Marker")
171         layout.operator("marker.duplicate", text="Duplicate Marker")
172         layout.operator("marker.move", text="Grab/Move Marker")
173         layout.operator("marker.delete", text="Delete Marker")
174         layout.separator()
175         layout.label(text="ToDo: Name Marker")
176
177         #layout.operator("sequencer.sound_strip_add", text="Transform Markers") # toggle, will be rna - (sseq->flag & SEQ_MARKER_TRANS)
178
179
180 class SEQUENCER_MT_add(bpy.types.Menu):
181     bl_label = "Add"
182
183     def draw(self, context):
184         layout = self.layout
185         layout.operator_context = 'INVOKE_REGION_WIN'
186
187         layout.column()
188         layout.operator("sequencer.scene_strip_add", text="Scene")
189         layout.operator("sequencer.movie_strip_add", text="Movie")
190         layout.operator("sequencer.image_strip_add", text="Image")
191         layout.operator("sequencer.sound_strip_add", text="Sound")
192
193         layout.menu("SEQUENCER_MT_add_effect")
194
195
196 class SEQUENCER_MT_add_effect(bpy.types.Menu):
197     bl_label = "Effect Strip..."
198
199     def draw(self, context):
200         layout = self.layout
201         layout.operator_context = 'INVOKE_REGION_WIN'
202
203         layout.column()
204         layout.operator("sequencer.effect_strip_add", text="Add").type = 'ADD'
205         layout.operator("sequencer.effect_strip_add", text="Subtract").type = 'SUBTRACT'
206         layout.operator("sequencer.effect_strip_add", text="Alpha Over").type = 'ALPHA_OVER'
207         layout.operator("sequencer.effect_strip_add", text="Alpha Under").type = 'ALPHA_UNDER'
208         layout.operator("sequencer.effect_strip_add", text="Cross").type = 'CROSS'
209         layout.operator("sequencer.effect_strip_add", text="Gamma Cross").type = 'GAMMA_CROSS'
210         layout.operator("sequencer.effect_strip_add", text="Multiply").type = 'MULTIPLY'
211         layout.operator("sequencer.effect_strip_add", text="Over Drop").type = 'OVER_DROP'
212         layout.operator("sequencer.effect_strip_add", text="Plugin").type = 'PLUGIN'
213         layout.operator("sequencer.effect_strip_add", text="Wipe").type = 'WIPE'
214         layout.operator("sequencer.effect_strip_add", text="Glow").type = 'GLOW'
215         layout.operator("sequencer.effect_strip_add", text="Transform").type = 'TRANSFORM'
216         layout.operator("sequencer.effect_strip_add", text="Color").type = 'COLOR'
217         layout.operator("sequencer.effect_strip_add", text="Speed Control").type = 'SPEED'
218
219
220 class SEQUENCER_MT_strip(bpy.types.Menu):
221     bl_label = "Strip"
222
223     def draw(self, context):
224         layout = self.layout
225
226         layout.operator_context = 'INVOKE_REGION_WIN'
227
228         layout.column()
229         layout.operator("transform.transform", text="Grab/Move").mode = 'TRANSLATION'
230         layout.operator("transform.transform", text="Grab/Extend from frame").mode = 'TIME_EXTEND'
231         #  uiItemO(layout, NULL, 0, "sequencer.strip_snap"); // TODO - add this operator
232         layout.separator()
233
234         layout.operator("sequencer.cut", text="Cut (hard) at frame").type = 'HARD'
235         layout.operator("sequencer.cut", text="Cut (soft) at frame").type = 'SOFT'
236         layout.operator("sequencer.images_separate")
237         layout.separator()
238
239         layout.operator("sequencer.duplicate")
240         layout.operator("sequencer.delete")
241
242         strip = act_strip(context)
243
244         if strip:
245             stype = strip.type
246
247             if  stype == 'EFFECT':
248                 layout.separator()
249                 layout.operator("sequencer.effect_change")
250                 layout.operator("sequencer.effect_reassign_inputs")
251             elif stype == 'IMAGE':
252                 layout.separator()
253                 # layout.operator("sequencer.image_change")
254                 layout.operator("sequencer.rendersize")
255             elif stype == 'SCENE':
256                 layout.separator()
257                 layout.operator("sequencer.scene_change", text="Change Scene")
258             elif stype == 'MOVIE':
259                 layout.separator()
260                 layout.operator("sequencer.movie_change")
261                 layout.operator("sequencer.rendersize")
262
263         layout.separator()
264
265         layout.operator("sequencer.meta_make")
266         layout.operator("sequencer.meta_separate")
267
268         #if (ed && (ed->metastack.first || (ed->act_seq && ed->act_seq->type == SEQ_META))) {
269         #       uiItemS(layout);
270         #       uiItemO(layout, NULL, 0, "sequencer.meta_toggle");
271         #}
272
273         layout.separator()
274         layout.operator("sequencer.reload")
275         layout.separator()
276         layout.operator("sequencer.lock")
277         layout.operator("sequencer.unlock")
278         layout.operator("sequencer.mute")
279         layout.operator("sequencer.unmute")
280
281         layout.operator("sequencer.mute", text="Mute Deselected Strips").unselected = True
282
283         layout.operator("sequencer.snap")
284
285         layout.operator_menu_enum("sequencer.swap", "side")
286
287
288 class SequencerButtonsPanel(bpy.types.Panel):
289     bl_space_type = 'SEQUENCE_EDITOR'
290     bl_region_type = 'UI'
291
292     def has_sequencer(self, context):
293         return (context.space_data.view_type == 'SEQUENCER') or (context.space_data.view_type == 'SEQUENCER_PREVIEW')
294
295     def poll(self, context):
296         return self.has_sequencer(context) and (act_strip(context) is not None)
297
298
299 class SequencerButtonsPanel_Output(bpy.types.Panel):
300     bl_space_type = 'SEQUENCE_EDITOR'
301     bl_region_type = 'UI'
302
303     def has_preview(self, context):
304         return (context.space_data.view_type == 'PREVIEW') or (context.space_data.view_type == 'SEQUENCER_PREVIEW')
305
306     def poll(self, context):
307         return self.has_preview(context)
308
309
310 class SEQUENCER_PT_edit(SequencerButtonsPanel):
311     bl_label = "Edit Strip"
312
313     def draw(self, context):
314         layout = self.layout
315         render_data = context.scene.render_data
316         strip = act_strip(context)
317
318         split = layout.split(percentage=0.3)
319         split.label(text="Name:")
320         split.prop(strip, "name", text="")
321
322         split = layout.split(percentage=0.3)
323         split.label(text="Type:")
324         split.prop(strip, "type", text="")
325
326         split = layout.split(percentage=0.3)
327         split.label(text="Blend:")
328         split.prop(strip, "blend_mode", text="")
329
330         row = layout.row()
331         if strip.mute == True:
332             row.prop(strip, "mute", toggle=True, icon='RESTRICT_VIEW_ON', text="")
333         elif strip.mute is False:
334             row.prop(strip, "mute", toggle=True, icon='RESTRICT_VIEW_OFF', text="")
335
336         sub = row.row()
337         sub.active = (not strip.mute)
338
339         sub.prop(strip, "blend_opacity", text="Opacity", slider=True)
340
341         row = layout.row()
342         row.prop(strip, "lock")
343         row.prop(strip, "frame_locked", text="Frame Lock")
344
345         col = layout.column()
346         col.enabled = not strip.lock
347         col.prop(strip, "channel")
348         col.prop(strip, "start_frame")
349         subrow = col.split(percentage=0.66)
350         subrow.prop(strip, "length")
351         subrow.label(text="%.2f sec" % (strip.length / (render_data.fps / render_data.fps_base)))
352
353         col = layout.column(align=True)
354         col.label(text="Offset:")
355         col.prop(strip, "start_offset", text="Start")
356         col.prop(strip, "end_offset", text="End")
357
358         col = layout.column(align=True)
359         col.label(text="Still:")
360         col.prop(strip, "start_still", text="Start")
361         col.prop(strip, "end_still", text="End")
362
363
364 class SEQUENCER_PT_effect(SequencerButtonsPanel):
365     bl_label = "Effect Strip"
366
367     def poll(self, context):
368         if not self.has_sequencer(context):
369             return False
370
371         strip = act_strip(context)
372         if not strip:
373             return False
374
375         return strip.type in ('ADD', 'SUBTRACT', 'ALPHA_OVER', 'ALPHA_UNDER',
376                               'CROSS', 'GAMMA_CROSS', 'MULTIPLY', 'OVER_DROP',
377                               'PLUGIN',
378                               'WIPE', 'GLOW', 'TRANSFORM', 'COLOR', 'SPEED')
379
380     def draw(self, context):
381         layout = self.layout
382
383         strip = act_strip(context)
384
385         if strip.type == 'COLOR':
386             layout.prop(strip, "color")
387
388         elif strip.type == 'WIPE':
389
390             col = layout.column()
391             col.prop(strip, "transition_type")
392             col.label(text="Direction:")
393             col.row().prop(strip, "direction", expand=True)
394
395             col = layout.column()
396             col.prop(strip, "blur_width", slider=True)
397             if strip.transition_type in ('SINGLE', 'DOUBLE'):
398                 col.prop(strip, "angle")
399
400         elif strip.type == 'GLOW':
401             flow = layout.column_flow()
402             flow.prop(strip, "threshold", slider=True)
403             flow.prop(strip, "clamp", slider=True)
404             flow.prop(strip, "boost_factor")
405             flow.prop(strip, "blur_distance")
406
407             row = layout.row()
408             row.prop(strip, "quality", slider=True)
409             row.prop(strip, "only_boost")
410
411         elif strip.type == 'SPEED':
412             layout.prop(strip, "global_speed")
413
414             flow = layout.column_flow()
415             flow.prop(strip, "curve_velocity")
416             flow.prop(strip, "curve_compress_y")
417             flow.prop(strip, "frame_blending")
418
419         elif strip.type == 'TRANSFORM':
420             self.draw_panel_transform(strip)
421
422
423         col = layout.column(align=True)
424         if strip.type == 'SPEED':
425             col.prop(strip, "speed_fader", text="Speed fader")
426         elif strip.type in ('CROSS', 'GAMMA_CROSS', 'PLUGIN', 'WIPE'):
427                 col.prop(strip, "use_effect_default_fade", "Default fade")
428                 if not strip.use_effect_default_fade:
429                     col.prop(strip, "effect_fader", text="Effect fader")
430
431     def draw_panel_transform(self, strip):
432         layout = self.layout
433         col = layout.column()
434
435         col.prop(strip, "interpolation")
436         col.prop(strip, "translation_unit")
437         col = layout.column(align=True)
438         col.label(text="Position:")
439         col.prop(strip, "translate_start_x", text="X")
440         col.prop(strip, "translate_start_y", text="Y")
441
442         layout.separator()
443
444         col = layout.column(align=True)
445         col.prop(strip, "uniform_scale")
446         if (strip.uniform_scale):
447             col = layout.column(align=True)
448             col.prop(strip, "scale_start_x", text="Scale")
449         else:
450             col = layout.column(align=True)
451             col.label(text="Scale:")
452             col.prop(strip, "scale_start_x", text="X")
453             col.prop(strip, "scale_start_y", text="Y")
454
455         layout.separator()
456
457         col = layout.column(align=True)
458         col.label(text="Rotation:")
459         col.prop(strip, "rotation_start", text="Rotation")
460
461
462 class SEQUENCER_PT_input(SequencerButtonsPanel):
463     bl_label = "Strip Input"
464
465     def poll(self, context):
466         if not self.has_sequencer(context):
467             return False
468
469         strip = act_strip(context)
470         if not strip:
471             return False
472
473         return strip.type in ('MOVIE', 'IMAGE')
474
475     def draw(self, context):
476         layout = self.layout
477
478         strip = act_strip(context)
479
480         split = layout.split(percentage=0.2)
481         col = split.column()
482         col.label(text="Path:")
483         col = split.column()
484         col.prop(strip, "directory", text="")
485
486         # Current element for the filename
487
488         elem = strip.getStripElem(context.scene.current_frame)
489         if elem:
490             split = layout.split(percentage=0.2)
491             col = split.column()
492             col.label(text="File:")
493             col = split.column()
494             col.prop(elem, "filename", text="") # strip.elements[0] could be a fallback
495
496         layout.prop(strip, "use_translation", text="Image Offset:")
497         if strip.transform:
498             col = layout.column(align=True)
499             col.active = strip.use_translation
500             col.prop(strip.transform, "offset_x", text="X")
501             col.prop(strip.transform, "offset_y", text="Y")
502
503         layout.prop(strip, "use_crop", text="Image Crop:")
504         if strip.crop:
505             col = layout.column(align=True)
506             col.active = strip.use_crop
507             col.prop(strip.crop, "top")
508             col.prop(strip.crop, "left")
509             col.prop(strip.crop, "bottom")
510             col.prop(strip.crop, "right")
511
512         col = layout.column(align=True)
513         col.label(text="Trim Duration:")
514         col.prop(strip, "animation_start_offset", text="Start")
515         col.prop(strip, "animation_end_offset", text="End")
516
517
518 class SEQUENCER_PT_sound(SequencerButtonsPanel):
519     bl_label = "Sound"
520
521     def poll(self, context):
522         if not self.has_sequencer(context):
523             return False
524
525         strip = act_strip(context)
526         if not strip:
527             return False
528
529         return (strip.type == 'SOUND')
530
531     def draw(self, context):
532         layout = self.layout
533
534         strip = act_strip(context)
535
536         layout.template_ID(strip, "sound", open="sound.open")
537
538         layout.separator()
539         layout.prop(strip.sound, "filename", text="")
540
541         row = layout.row()
542         if strip.sound.packed_file:
543             row.operator("sound.unpack", icon='PACKAGE', text="Unpack")
544         else:
545             row.operator("sound.pack", icon='UGLYPACKAGE', text="Pack")
546
547         row.prop(strip.sound, "caching")
548
549         layout.prop(strip, "volume")
550
551
552 class SEQUENCER_PT_scene(SequencerButtonsPanel):
553     bl_label = "Scene"
554
555     def poll(self, context):
556         if not self.has_sequencer(context):
557             return False
558
559         strip = act_strip(context)
560         if not strip:
561             return False
562
563         return (strip.type == 'SCENE')
564
565     def draw(self, context):
566         layout = self.layout
567
568         strip = act_strip(context)
569
570         layout.template_ID(strip, "scene")
571
572
573 class SEQUENCER_PT_filter(SequencerButtonsPanel):
574     bl_label = "Filter"
575
576     def poll(self, context):
577         if not self.has_sequencer(context):
578             return False
579
580         strip = act_strip(context)
581         if not strip:
582             return False
583
584         return strip.type in ('MOVIE', 'IMAGE', 'SCENE', 'META')
585
586     def draw(self, context):
587         layout = self.layout
588
589         strip = act_strip(context)
590
591         col = layout.column()
592         col.label(text="Video:")
593         col.prop(strip, "strobe")
594         col.prop(strip, "de_interlace")
595
596         col = layout.column()
597         col.label(text="Colors:")
598         col.prop(strip, "multiply_colors", text="Multiply")
599         col.prop(strip, "premultiply")
600         col.prop(strip, "convert_float")
601
602         col = layout.column()
603         col.label(text="Flip:")
604         col.prop(strip, "flip_x", text="X")
605         col.prop(strip, "flip_y", text="Y")
606         col.prop(strip, "reverse_frames", text="Backwards")
607
608         layout.prop(strip, "use_color_balance")
609         if strip.color_balance: # TODO - need to add this somehow
610             row = layout.row()
611             row.active = strip.use_color_balance
612             col = row.column()
613             col.template_color_wheel(strip.color_balance, "lift", value_slider=False)
614             col.row().prop(strip.color_balance, "lift")
615             col.prop(strip.color_balance, "inverse_lift", text="Inverse")
616             col = row.column()
617             col.template_color_wheel(strip.color_balance, "gamma", value_slider=False)
618             col.row().prop(strip.color_balance, "gamma")
619             col.prop(strip.color_balance, "inverse_gamma", text="Inverse")
620             col = row.column()
621             col.template_color_wheel(strip.color_balance, "gain", value_slider=False)
622             col.row().prop(strip.color_balance, "gain")
623             col.prop(strip.color_balance, "inverse_gain", text="Inverse")
624
625
626 class SEQUENCER_PT_proxy(SequencerButtonsPanel):
627     bl_label = "Proxy"
628
629     def poll(self, context):
630         if not self.has_sequencer(context):
631             return False
632
633         strip = act_strip(context)
634         if not strip:
635             return False
636
637         return strip.type in ('MOVIE', 'IMAGE', 'SCENE', 'META')
638
639     def draw_header(self, context):
640         strip = act_strip(context)
641
642         self.layout.prop(strip, "use_proxy", text="")
643
644     def draw(self, context):
645         layout = self.layout
646
647         strip = act_strip(context)
648
649         flow = layout.column_flow()
650         flow.prop(strip, "proxy_custom_directory")
651         if strip.proxy: # TODO - need to add this somehow
652             flow.prop(strip.proxy, "directory")
653             flow.prop(strip.proxy, "file")
654
655
656 class SEQUENCER_PT_view(SequencerButtonsPanel_Output):
657     bl_label = "View Settings"
658
659     def draw(self, context):
660         layout = self.layout
661
662         st = context.space_data
663
664         col = layout.column()
665         col.prop(st, "draw_overexposed") # text="Zebra"
666         col.prop(st, "draw_safe_margin")
667
668
669 classes = [
670     SEQUENCER_HT_header, # header/menu classes
671     SEQUENCER_MT_view,
672     SEQUENCER_MT_view_toggle,
673     SEQUENCER_MT_select,
674     SEQUENCER_MT_marker,
675     SEQUENCER_MT_add,
676     SEQUENCER_MT_add_effect,
677     SEQUENCER_MT_strip,
678
679     SEQUENCER_PT_edit, # sequencer panels
680     SEQUENCER_PT_effect,
681     SEQUENCER_PT_input,
682     SEQUENCER_PT_sound,
683     SEQUENCER_PT_scene,
684     SEQUENCER_PT_filter,
685     SEQUENCER_PT_proxy,
686
687     SEQUENCER_PT_view] # view panels
688
689
690 def register():
691     register = bpy.types.register
692     for cls in classes:
693         register(cls)
694
695 def unregister():
696     unregister = bpy.types.unregister
697     for cls in classes:
698         unregister(cls)