[Bf-extensions-cvs] [2875e8b0] master: Kinoraw Tools: Update to version 0.5.1, cleanup
lijenstina
noreply at git.blender.org
Sun Jun 25 13:22:50 CEST 2017
Commit: 2875e8b0c6e951fc2520013b5286f4ac96623ac6
Author: lijenstina
Date: Sun Jun 25 13:22:15 2017 +0200
Branches: master
https://developer.blender.org/rBA2875e8b0c6e951fc2520013b5286f4ac96623ac6
Kinoraw Tools: Update to version 0.5.1, cleanup
Bumped version to 0.5.1
Pep8 cleanup
Imports as tuples
Removed the operator LoadRandomEditOperator from the file
random_editor.py since is not working / implemented
The related function random_edit_from_random_subset
from functions.py was removed too, since it is not used
removed some of the unused variables
UI cleanup - better alignment of buttons
Preferences added a list of assigned shortcuts
Make a separate drop down for dependentand / experimental tools
Fix a few bugs - sound strip attribut UI call
Add some try except blocks
===================================================================
M kinoraw_tools/__init__.py
M kinoraw_tools/audio_tools.py
M kinoraw_tools/datamosh.py
M kinoraw_tools/eco.py
M kinoraw_tools/functions.py
M kinoraw_tools/jumptocut.py
M kinoraw_tools/operators_extra_actions.py
M kinoraw_tools/proxy_tools.py
M kinoraw_tools/random_editor.py
M kinoraw_tools/recursive_loader.py
M kinoraw_tools/ui.py
===================================================================
diff --git a/kinoraw_tools/__init__.py b/kinoraw_tools/__init__.py
index b55dd464..c029281b 100644
--- a/kinoraw_tools/__init__.py
+++ b/kinoraw_tools/__init__.py
@@ -19,26 +19,28 @@
bl_info = {
"name": "Kinoraw Tools",
"author": "Carlos Padial, Turi Scandurra",
- "version": (0, 5),
+ "version": (0, 5, 1),
"blender": (2, 74, 0),
"location": "Sequencer",
- "description": "compilation of tools to improve video editing with blender's VSE",
- "wiki_url": "https://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Sequencer/Kinoraw_Tools",
+ "description": "Compilation of tools to improve video editing with Blender's VSE",
+ "wiki_url": "https://github.com/kinoraw/kinoraw_tools/blob/master/README.md",
+ "tracker_url": "https://github.com/kinoraw/kinoraw_tools",
+ "support": "COMMUNITY",
"category": "Sequencer"
}
if "bpy" in locals():
- import imp
- imp.reload(jumptocut)
- imp.reload(operators_extra_actions)
- imp.reload(audio_tools)
- imp.reload(proxy_tools)
- imp.reload(recursive_loader)
- imp.reload(eco)
- imp.reload(random_editor)
- imp.reload(ui)
- imp.reload(datamosh)
+ import importlib
+ importlib.reload(jumptocut)
+ importlib.reload(operators_extra_actions)
+ importlib.reload(audio_tools)
+ importlib.reload(proxy_tools)
+ importlib.reload(recursive_loader)
+ importlib.reload(eco)
+ importlib.reload(random_editor)
+ importlib.reload(ui)
+ importlib.reload(datamosh)
else:
from . import jumptocut
from . import operators_extra_actions
@@ -51,194 +53,265 @@ else:
from . import datamosh
import bpy
-import os.path
-from bpy.types import Menu
-from bpy.types import Header
-
-from bpy.props import IntProperty, StringProperty, BoolProperty, EnumProperty
-
-
-class KinorawToolsAddon(bpy.types.AddonPreferences):
+from bpy.types import (
+ AddonPreferences,
+ )
+from bpy.props import (
+ IntProperty,
+ StringProperty,
+ BoolProperty,
+ EnumProperty,
+ )
+
+
+class KinorawToolsAddon(AddonPreferences):
# this must match the addon name, use '__package__'
# when defining this in a submodule of a python package.
bl_idname = __package__
bl_option = {'REGISTER'}
-
+
+ print("package is ", __package__)
+
# extra_actions
kr_show_tools = BoolProperty(
- name = "show tools" ,
- description = 'show extra tools in the panel',
- default = False)
+ name="Show tools",
+ description="Show extra tools in the panel",
+ default=False
+ )
kr_mini_ui = BoolProperty(
- name = "mini ui" ,
- description = 'enable mini UI',
- default = True)
+ name="Mini UI",
+ description="Enable mini UI",
+ default=True
+ )
kr_show_info = BoolProperty(
- name = 'show info',
- description = 'show basic info from selected strip',
- default = False)
+ name="Show info",
+ description="Show basic info from selected strip",
+ default=False
+ )
kr_show_trim = BoolProperty(
- name = 'show trim',
- default = False)
+ name="Show trim",
+ default=False
+ )
kr_show_modifiers = BoolProperty(
- name = 'show modifiers',
- default = False)
+ name="Show modifiers",
+ description="Show modifiers from selected strip",
+ default=False
+ )
kr_extra_info = BoolProperty(
- name = 'show extra info',
- default = False)
-
+ name="Show extra info",
+ description="Show extra info and settings from selected strip",
+ default=False
+ )
# exif
use_exif_panel = BoolProperty(
- name = 'exif info panel | depends on external programs, see documentation',
- default = False)
-
+ name="Exif info Panel | depends on external programs, see Documentation",
+ default=False
+ )
# glitch
use_glitch_panel = BoolProperty(
- name = 'glitch panel | depends on external programs, see documentation',
- default = False)
+ name="Glitch panel | depends on external programs, see Documentation",
+ default=False
+ )
all_keyframes = BoolProperty(
- name = 'remove all keyframes',
- default = True)
+ name="Remove all keyframes",
+ default=True
+ )
load_glitch = BoolProperty(
- name = 'load glitch after conversion > UNSTABLE!!!',
- default = True)
-
+ name="Load glitch after conversion > UNSTABLE!!!",
+ default=True
+ )
# jump to cut
use_jumptocut = BoolProperty(
- name = 'jumptocut panel',
- default = True)
+ name="Jump to Cut Panel",
+ default=True
+ )
use_io_tools = BoolProperty(
- name = 'enable in and out tools in jumptocut panel',
- default = False)
-
+ name="Enable in and out tools in Jump to Cut Panel",
+ default=False
+ )
# Proxy Tools
use_proxy_tools = BoolProperty(
- name = 'proxy tools panel | depends on external programs, see documentation',
- default = False)
+ name="Proxy tools Panel | depends on external programs, see Documentation",
+ default=False
+ )
proxy_dir = StringProperty(
- name = 'Proxy Custom Directory',
- default = "//proxies/")
+ name="Proxy Custom Directory",
+ default="//proxies/"
+ )
proxy_scripts_path = StringProperty(
- name = 'directory to store proxy scripts',
- default = "//proxy_scripts/")
+ name="Directory to store proxy scripts",
+ default="//proxy_scripts/"
+ )
proxy_scripts = BoolProperty(
- name = 'generate ffmpeg scritps',
- default = False)
+ name="Generate ffmpeg scripts",
+ default=False
+ )
ffmpeg_command = StringProperty(
- name = 'command to generate proxy',
- default = '''ffmpeg -i {} -vcodec mjpeg -q:v 10 -s {}x{} -an -y {}''')
+ name="Command to generate proxy",
+ default='''ffmpeg -i {} -vcodec mjpeg -q:v 10 -s {}x{} -an -y {}'''
+ )
use_internal_proxy = BoolProperty(
- name = 'use internal blender proxy system',
- default = True)
+ name="Use internal Blender's proxy system",
+ default=True
+ )
use_bi_custom_directory = BoolProperty(
- name = 'Proxy Custom Directory',
- default = True)
+ name="Proxy Custom Directory",
+ default=True
+ )
quality = IntProperty(
- name = 'Quality',
- default = 90,
- min = 0, max = 32767)
- tc_list = [ ( "NONE", "No TC in use","" ), ( "RECORD_RUN", "Record Run", "" ),
- ( "FREE_RUN", "Free Run", "" ), ("FREE_RUN_REC_DATE", "Free Run (rec date)", "" ),
- ( "RECORD_RUN_NO_GAPS", "Record Run No Gaps", "" )]
+ name="Quality",
+ default=90,
+ min=0, max=32767
+ )
+ tc_list = [
+ ("NONE", "No TC in use", ""), ("RECORD_RUN", "Record Run", ""),
+ ("FREE_RUN", "Free Run", ""), ("FREE_RUN_REC_DATE", "Free Run (rec date)", ""),
+ ("RECORD_RUN_NO_GAPS", "Record Run No Gaps", "")
+ ]
timecode = EnumProperty(
- name = "Settings Type",
- items = tc_list,
- default="NONE",
- description = "timecode" )
-
+ name="Settings Type",
+ items=tc_list,
+ default="NONE",
+ description="Timecode"
+ )
# Audio Tools
use_audio_tools = BoolProperty(
- name='audio tools panel | depends on external programs, see documentation',
- default=False)
+ name="Audio tools Panel | depends on external programs, see Documentation",
+ default=False
+ )
audio_dir = StringProperty(
- name='path to store extracted audio',
- default="//audio/")
+ name="Path to store extracted audio",
+ default="//audio/"
+ )
audio_scripts_path = StringProperty(
- name='path to store audio scripts',
- default="//audio_scripts/")
+ name="Path to store audio scripts",
+ default="//audio_scripts/"
+ )
audio_scripts = BoolProperty(
- name='generate ffmpeg scritps',
- default=False)
-
+ name="Generate ffmpeg scripts",
+ default=False
+ )
# Audio Tools - external links
audio_use_external_links = BoolProperty(
- name='use external audio linked to movie strips',
- default=False)
+ name="Use external audio linked to movie strips",
+ default=False
+ )
audio_external_filename = StringProperty(
- name='file to store info about linked audio',
- default="//external_audio_sync_info.txt")
-
+ name="File to store info about linked audio",
+ default="//external_audio_sync_info.txt"
+ )
# audio tools vu-meter
-
- meterbridge = [ ( "VU", "classic moving needle VU meter","" ), ( "PPM", "PPM meter", "" ),
- ( "DPM", "Digital peak meter", "" ), ("JF", "'Jellyfish' phase meter", "" ),
- ( "SCO", "Oscilloscope meter", "" )]
-
+ meterbridge = [
+ ("VU", "Classic moving needle VU meter", ""), ("PPM", "PPM meter", ""),
+ ("DPM", "Digital peak meter", ""), ("JF", "'Jellyfish' phase meter", ""),
+ ("SCO", "Oscilloscope meter", "")
+ ]
metertype = EnumProperty(
- name = "meter type",
- items = meterbridge,
- default="DPM",
- description = "meterbridge meter type" )
-
+ name="Meter type",
+ items=meterbridge,
+ default="DPM",
+ description="Meterbridge meter
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list