[Bf-extensions-cvs] [fa9aeb12] master: removed old scripts
carlos padial
noreply at git.blender.org
Thu Apr 6 11:50:59 CEST 2017
Commit: fa9aeb126d30340a3b6dbf48ce341cdc1b3094e2
Author: carlos padial
Date: Wed Apr 5 23:24:19 2017 +0200
Branches: master
https://developer.blender.org/rBACfa9aeb126d30340a3b6dbf48ce341cdc1b3094e2
removed old scripts
===================================================================
D sequencer_extra_actions/__init__.py
D sequencer_extra_actions/exiftool.py
D sequencer_extra_actions/functions.py
D sequencer_extra_actions/operators_extra_actions.py
D sequencer_extra_actions/ui.py
D sequencer_jumptocut.py
===================================================================
diff --git a/sequencer_extra_actions/__init__.py b/sequencer_extra_actions/__init__.py
deleted file mode 100644
index b1402d34..00000000
--- a/sequencer_extra_actions/__init__.py
+++ /dev/null
@@ -1,94 +0,0 @@
-# ##### 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.
-#
-# 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.
-#
-# 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-# ##### END GPL LICENSE BLOCK #####
-
-bl_info = {
- "name": "Extra Sequencer Actions",
- "author": "Turi Scandurra, Carlos Padial",
- "version": (3, 8),
- "blender": (2, 69, 0),
- "category": "Sequencer",
- "location": "Sequencer",
- "description": "Collection of extra operators to manipulate VSE strips",
- "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"
- "Scripts/Sequencer/Extra_Sequencer_Actions",
- "tracker_url": "https://developer.blender.org/maniphest/task/edit/form/2/",
- # old tracker_url: https://developer.blender.org/T30474
- "support": "COMMUNITY"}
-
-
-if "bpy" in locals():
- import imp
- imp.reload(operators_extra_actions)
- imp.reload(ui)
-else:
- from . import operators_extra_actions
- from . import ui
-
-import bpy
-import os.path
-from bpy.types import Menu
-from bpy.types import Header
-
-
-# Registration
-def register():
- bpy.utils.register_module(__name__)
-
- # Append menu entries
- bpy.types.SEQUENCER_MT_add.prepend(ui.sequencer_add_menu_func)
- bpy.types.SEQUENCER_MT_select.prepend(ui.sequencer_select_menu_func)
- bpy.types.SEQUENCER_MT_strip.prepend(ui.sequencer_strip_menu_func)
- bpy.types.SEQUENCER_HT_header.append(ui.sequencer_header_func)
- bpy.types.CLIP_HT_header.append(ui.clip_header_func)
- bpy.types.CLIP_MT_clip.prepend(ui.clip_clip_menu_func)
- bpy.types.TIME_MT_frame.prepend(ui.time_frame_menu_func)
- bpy.types.TIME_HT_header.append(ui.time_header_func)
-
- # Add keyboard shortcut configuration
- kc = bpy.context.window_manager.keyconfigs.addon
- km = kc.keymaps.new(name='Frames')
- kmi = km.keymap_items.new('screenextra.frame_skip',
- 'RIGHT_ARROW', 'PRESS', ctrl=True, shift=True)
- kmi.properties.back = False
- kmi = km.keymap_items.new('screenextra.frame_skip',
- 'LEFT_ARROW', 'PRESS', ctrl=True, shift=True)
- kmi.properties.back = True
-
-
-def unregister():
- bpy.utils.unregister_module(__name__)
-
- # Remove menu entries
- bpy.types.SEQUENCER_MT_add.remove(ui.sequencer_add_menu_func)
- bpy.types.SEQUENCER_MT_select.remove(ui.sequencer_select_menu_func)
- bpy.types.SEQUENCER_MT_strip.remove(ui.sequencer_strip_menu_func)
- bpy.types.SEQUENCER_HT_header.remove(ui.sequencer_header_func)
- bpy.types.CLIP_HT_header.remove(ui.clip_header_func)
- bpy.types.CLIP_MT_clip.remove(ui.clip_clip_menu_func)
- bpy.types.TIME_MT_frame.remove(ui.time_frame_menu_func)
- bpy.types.TIME_HT_header.remove(ui.time_header_func)
-
- # Remove keyboard shortcut configuration
- kc = bpy.context.window_manager.keyconfigs.addon
- km = kc.keymaps['Frames']
- km.keymap_items.remove(km.keymap_items['screenextra.frame_skip'])
- km.keymap_items.remove(km.keymap_items['screenextra.frame_skip'])
-
-
-if __name__ == '__main__':
- register()
diff --git a/sequencer_extra_actions/exiftool.py b/sequencer_extra_actions/exiftool.py
deleted file mode 100644
index f42e3f34..00000000
--- a/sequencer_extra_actions/exiftool.py
+++ /dev/null
@@ -1,330 +0,0 @@
-# -*- coding: utf-8 -*-
-# PyExifTool <http://github.com/smarnach/pyexiftool>
-# Copyright 2012 Sven Marnach
-
-# This file is part of PyExifTool.
-#
-# PyExifTool 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 3 of the License, or
-# (at your option) any later version.
-#
-# PyExifTool 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.
-#
-# You should have received a copy of the GNU General Public License
-# along with PyExifTool. If not, see <http://www.gnu.org/licenses/>.
-
-"""
-PyExifTool is a Python library to communicate with an instance of Phil
-Harvey's excellent ExifTool_ command-line application. The library
-provides the class :py:class:`ExifTool` that runs the command-line
-tool in batch mode and features methods to send commands to that
-program, including methods to extract meta-information from one or
-more image files. Since ``exiftool`` is run in batch mode, only a
-single instance needs to be launched and can be reused for many
-queries. This is much more efficient than launching a separate
-process for every single query.
-
-.. _ExifTool: http://www.sno.phy.queensu.ca/~phil/exiftool/
-
-The source code can be checked out from the github repository with
-
-::
-
- git clone git://github.com/smarnach/pyexiftool.git
-
-Alternatively, you can download a tarball_. There haven't been any
-releases yet.
-
-.. _tarball: https://github.com/smarnach/pyexiftool/tarball/master
-
-PyExifTool is licenced under GNU GPL version 3 or later.
-
-Example usage::
-
- import exiftool
-
- files = ["a.jpg", "b.png", "c.tif"]
- with exiftool.ExifTool() as et:
- metadata = et.get_metadata_batch(files)
- for d in metadata:
- print("{:20.20} {:20.20}".format(d["SourceFile"],
- d["EXIF:DateTimeOriginal"]))
-"""
-
-from __future__ import unicode_literals
-
-import sys
-import subprocess
-import os
-import json
-import warnings
-import codecs
-
-try: # Py3k compatibility
- basestring
-except NameError:
- basestring = (bytes, str)
-
-executable = "exiftool"
-"""The name of the executable to run.
-
-If the executable is not located in one of the paths listed in the
-``PATH`` environment variable, the full path should be given here.
-"""
-
-# Sentinel indicating the end of the output of a sequence of commands.
-# The standard value should be fine.
-sentinel = b"{ready}"
-
-# The block size when reading from exiftool. The standard value
-# should be fine, though other values might give better performance in
-# some cases.
-block_size = 4096
-
-# This code has been adapted from Lib/os.py in the Python source tree
-# (sha1 265e36e277f3)
-
-
-def _fscodec():
- encoding = sys.getfilesystemencoding()
- errors = "strict"
- if encoding != "mbcs":
- try:
- codecs.lookup_error("surrogateescape")
- except LookupError:
- pass
- else:
- errors = "surrogateescape"
-
- def fsencode(filename):
- """
- Encode filename to the filesystem encoding with 'surrogateescape' error
- handler, return bytes unchanged. On Windows, use 'strict' error handler
- if the file system encoding is 'mbcs' (which is the default encoding).
- """
- if isinstance(filename, bytes):
- return filename
- else:
- return filename.encode(encoding, errors)
-
- return fsencode
-
-fsencode = _fscodec()
-del _fscodec
-
-
-class ExifTool(object):
- """Run the `exiftool` command-line tool and communicate to it.
-
- You can pass the file name of the ``exiftool`` executable as an
- argument to the constructor. The default value ``exiftool`` will
- only work if the executable is in your ``PATH``.
-
- Most methods of this class are only available after calling
- :py:meth:`start()`, which will actually launch the subprocess. To
- avoid leaving the subprocess running, make sure to call
- :py:meth:`terminate()` method when finished using the instance.
- This method will also be implicitly called when the instance is
- garbage collected, but there are circumstance when this won't ever
- happen, so you should not rely on the implicit process
- termination. Subprocesses won't be automatically terminated if
- the parent process exits, so a leaked subprocess will stay around
- until manually killed.
-
- A convenient way to make sure that the subprocess is terminated is
- to use the :py:class:`ExifTool` instance as a context manager::
-
- with ExifTool() as et:
- ...
-
- .. warning:: Note that there is no error handling. Nonsensical
- options will be silently ignored by exiftool, so there's not
- much that can be done in that regard. You should avoid passing
- non-existent files to any of the methods, since this will lead
- to undefied behaviour.
-
- .. py:attribute:: running
-
- A Boolean value indicating whether this instance is currently
- associated with a running subprocess.
- """
-
- def __init__(self, executable_=None):
- if executable_ is None:
- self.executable = executable
- else:
- self.executable = executable_
- self.running = False
-
- def start(self):
- """Start an ``exiftool`` process in batch mode for this instance.
-
- This method will issue a ``UserWarning`` if the subprocess is
- already running. The process is started with the ``-G`` and
- ``-n`` as common arguments, which are automatically included
- in every command you run with :py:meth:`execute()`.
- """
- if self.running:
- warnings.warn("ExifTool already running; doing nothing.")
- return
- with open(os.devnull, "w") as devnull:
- self._process = subprocess.Popen(
- [s
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list