Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Lovato <nathan@gdquest.com>2019-09-05 18:22:37 +0300
committerNathan Lovato <nathan@gdquest.com>2019-09-05 18:22:52 +0300
commit61d48c0a4be0ab8f71e6e1d35f0aa99c77fcfd33 (patch)
treef64d0ea88789184f45112b489598990d549788f2 /power_sequencer/__init__.py
parentda5a1175e30c347fbce05e49e2f5f895be30bd5b (diff)
Add the VSE addon Power Sequencer
Diffstat (limited to 'power_sequencer/__init__.py')
-rw-r--r--power_sequencer/__init__.py84
1 files changed, 84 insertions, 0 deletions
diff --git a/power_sequencer/__init__.py b/power_sequencer/__init__.py
new file mode 100644
index 00000000..7bc1c6ca
--- /dev/null
+++ b/power_sequencer/__init__.py
@@ -0,0 +1,84 @@
+#
+# Copyright (C) 2016-2019 by Nathan Lovato, Daniel Oakey, Razvan Radulescu, and contributors
+#
+# This file is part of Power Sequencer.
+#
+# Power Sequencer 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.
+#
+# Power Sequencer 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 Power Sequencer. If
+# not, see <https://www.gnu.org/licenses/>.
+#
+import bpy
+
+from .addon_preferences import register_preferences, unregister_preferences
+from .addon_properties import register_properties, unregister_properties
+from .operators import classes
+from .utils.register_shortcuts import register_shortcuts
+from .handlers import register_handlers, unregister_handlers
+from .utils import addon_auto_imports
+from .ui import register_ui, unregister_ui
+
+
+# load and reload submodules
+##################################
+modules = addon_auto_imports.setup_addon_modules(
+ __path__, __name__, ignore_packages=[".utils", ".audiosync"], ignore_modules=[]
+)
+
+
+bl_info = {
+ "name": "Power Sequencer",
+ "description": "Video editing tools for content creators",
+ "author": "Nathan Lovato",
+ "version": (1, 4, 0),
+ "blender": (2, 80, 0),
+ "location": "Sequencer",
+ "tracker_url": "https://github.com/GDquest/Blender-power-sequencer/issues",
+ "wiki_url": "https://www.youtube.com/playlist?list=PLhqJJNjsQ7KFjp88Cu57Zb9_wFt7nlkEI",
+ "support": "COMMUNITY",
+ "category": "Sequencer",
+}
+
+
+addon_keymaps = []
+
+
+def register():
+ global addon_keymaps
+
+ register_preferences()
+ register_properties()
+ register_handlers()
+ register_ui()
+
+ for c in classes:
+ bpy.utils.register_class(c)
+
+ keymaps = register_shortcuts()
+ addon_keymaps += keymaps
+
+ print("Registered {} with {} modules".format(bl_info["name"], len(modules)))
+
+
+def unregister():
+ global addon_keymaps
+
+ for km, kmi in addon_keymaps:
+ km.keymap_items.remove(kmi)
+ addon_keymaps.clear()
+
+ for c in classes:
+ bpy.utils.unregister_class(c)
+
+ unregister_ui()
+ unregister_preferences()
+ unregister_properties()
+ unregister_handlers()
+
+ print("Unregistered {}".format(bl_info["name"]))