[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3840] contrib/py/scripts/addons/ sequencer_extra_actions: -Removed Strip Select > Inverse, as the same funcion is now native.

carlos padial palidoestudio2 at gmail.com
Tue Oct 9 15:48:47 CEST 2012


Revision: 3840
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3840
Author:   carlospadial
Date:     2012-10-09 13:48:47 +0000 (Tue, 09 Oct 2012)
Log Message:
-----------
-Removed Strip Select > Inverse, as the same funcion is now native.
-Rearranged sequencer header elements ("Navigate up" before "File Place").
-Changed text "Create a Movieclip Strip" to "Create Movieclip Strip".
-Modified AddRecursiveLoadPanel to show panel only on sequencer view
(and not on preview view.)

TODO:
-Check for new elements to add to "Copy Properties".
-"Open with Editor" should open Movieclips too.
-Add documentation to wiki.
-Remember to keep Tracker version updated to svn version

Modified Paths:
--------------
    contrib/py/scripts/addons/sequencer_extra_actions/__init__.py
    contrib/py/scripts/addons/sequencer_extra_actions/operators_extra_actions.py
    contrib/py/scripts/addons/sequencer_extra_actions/ui.py

Modified: contrib/py/scripts/addons/sequencer_extra_actions/__init__.py
===================================================================
--- contrib/py/scripts/addons/sequencer_extra_actions/__init__.py	2012-10-09 08:45:03 UTC (rev 3839)
+++ contrib/py/scripts/addons/sequencer_extra_actions/__init__.py	2012-10-09 13:48:47 UTC (rev 3840)
@@ -19,7 +19,7 @@
 bl_info = {
     'name': 'Extra Sequencer Actions',
     'author': 'Turi Scandurra, Carlos Padial',
-    'version': (3, 3),
+    'version': (3, 4),
     'blender': (2, 6, 3, 17),
     'api': 49500,
     'category': 'Sequencer',

Modified: contrib/py/scripts/addons/sequencer_extra_actions/operators_extra_actions.py
===================================================================
--- contrib/py/scripts/addons/sequencer_extra_actions/operators_extra_actions.py	2012-10-09 08:45:03 UTC (rev 3839)
+++ contrib/py/scripts/addons/sequencer_extra_actions/operators_extra_actions.py	2012-10-09 13:48:47 UTC (rev 3840)
@@ -755,41 +755,6 @@
         return {'FINISHED'}
 
 
-# SELECT INVERSE
-class Sequencer_Extra_SelectInverse(bpy.types.Operator):
-    bl_label = 'Inverse'
-    bl_idname = 'sequencerextra.selectinverse'
-    bl_description = 'Inverse selection of strips'
-    bl_options = {'REGISTER', 'UNDO'}
-
-    @classmethod
-    def poll(self, context):
-        scn = context.scene
-        if scn and scn.sequence_editor:
-            return scn.sequence_editor.sequences
-        else:
-            return False
-
-    def execute(self, context):
-        scn = context.scene
-        seq = scn.sequence_editor
-        meta_level = len(seq.meta_stack)
-        if meta_level > 0:
-            seq = seq.meta_stack[meta_level - 1]
-
-        for i in seq.sequences:
-            try:
-                if (i.select == False
-                and not i.mute):
-                    i.select = True
-                else:
-                    i.select = False
-            except AttributeError:
-                    pass
-
-        return {'FINISHED'}
-
-
 # OPEN IMAGE WITH EXTERNAL EDITOR
 class Sequencer_Extra_EditExternally(bpy.types.Operator):
     bl_label = 'Open with External Editor'
@@ -1510,7 +1475,7 @@
 class Sequencer_Extra_CreateMovieclip(bpy.types.Operator):
     bl_label = 'Create a Movieclip from selected strip'
     bl_idname = 'sequencerextra.createmovieclip'
-    bl_description = 'create a Movieclip strip from a MOVIE or IMAGE strip.'
+    bl_description = 'Create a Movieclip strip from a MOVIE or IMAGE strip'
 
     """
     When a movie or image strip is selected, this operator creates a movieclip 

Modified: contrib/py/scripts/addons/sequencer_extra_actions/ui.py
===================================================================
--- contrib/py/scripts/addons/sequencer_extra_actions/ui.py	2012-10-09 08:45:03 UTC (rev 3839)
+++ contrib/py/scripts/addons/sequencer_extra_actions/ui.py	2012-10-09 13:48:47 UTC (rev 3840)
@@ -32,7 +32,7 @@
         self.layout.operator('sequencerextra.edit',
         text='Open with Editor', icon='PLUGIN')
         self.layout.operator('sequencerextra.createmovieclip',
-        text='Create a Movieclip strip', icon='PLUGIN')
+        text='Create Movieclip strip', icon='PLUGIN')
 
 
 
@@ -40,7 +40,15 @@
     bl_label = "Recursive Load"
     bl_space_type = "SEQUENCE_EDITOR"
     bl_region_type = "UI"
+    
+    @staticmethod
+    def has_sequencer(context):
+        return (context.space_data.view_type in {'SEQUENCER', 'SEQUENCER_PREVIEW'})
 
+    @classmethod
+    def poll(cls, context):
+        return cls.has_sequencer(context)
+
     def draw_header(self, context):
         layout = self.layout
         layout.label(text="", icon="NLA")
@@ -68,9 +76,6 @@
     self.layout.operator_menu_enum('sequencerextra.select_all_by_type',
     'type', text='All by Type', icon='PLUGIN')
     self.layout.separator()
-    self.layout.operator('sequencerextra.selectinverse',
-    text='Inverse', icon='PLUGIN')
-    self.layout.separator()
     self.layout.operator('sequencerextra.selectcurrentframe',
     text='Before Current Frame', icon='PLUGIN').mode = 'BEFORE'
     self.layout.operator('sequencerextra.selectcurrentframe',
@@ -104,19 +109,19 @@
 
 def sequencer_header_func(self, context):
     self.layout.menu("SEQUENCER_EXTRA_MT_input")
+    if context.space_data.view_type in ('PREVIEW', 'SEQUENCER_PREVIEW'):
+        self.layout.operator('sequencerextra.jogshuttle',
+        text='Jog/Shuttle', icon='NDOF_TURN')
     if context.space_data.view_type in ('SEQUENCER', 'SEQUENCER_PREVIEW'):
+        self.layout.operator('sequencerextra.navigateup',
+        text='Navigate Up', icon='FILE_PARENT')
+    if context.space_data.view_type in ('SEQUENCER', 'SEQUENCER_PREVIEW'):
         self.layout.operator('sequencerextra.placefromfilebrowser',
         text='File Place', icon='TRIA_DOWN').insert = False
     if context.space_data.view_type in ('SEQUENCER', 'SEQUENCER_PREVIEW'):
         self.layout.operator('sequencerextra.placefromfilebrowser',
         text='File Insert', icon='TRIA_RIGHT').insert = True
-    if context.space_data.view_type in ('PREVIEW', 'SEQUENCER_PREVIEW'):
-        self.layout.operator('sequencerextra.jogshuttle',
-        text='Jog/Shuttle', icon='NDOF_TURN')
     if context.space_data.view_type in ('SEQUENCER', 'SEQUENCER_PREVIEW'):
-        self.layout.operator('sequencerextra.navigateup',
-        text='Navigate Up', icon='FILE_PARENT')
-    if context.space_data.view_type in ('SEQUENCER', 'SEQUENCER_PREVIEW'):
         self.layout.operator('sequencerextra.placefromfilebrowserproxy',
         text='Proxy Place', icon='TRIA_DOWN')
     if context.space_data.view_type in ('SEQUENCER', 'SEQUENCER_PREVIEW'):



More information about the Bf-extensions-cvs mailing list