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/operators/utils/global_settings.py
parentda5a1175e30c347fbce05e49e2f5f895be30bd5b (diff)
Add the VSE addon Power Sequencer
Diffstat (limited to 'power_sequencer/operators/utils/global_settings.py')
-rw-r--r--power_sequencer/operators/utils/global_settings.py110
1 files changed, 110 insertions, 0 deletions
diff --git a/power_sequencer/operators/utils/global_settings.py b/power_sequencer/operators/utils/global_settings.py
new file mode 100644
index 00000000..88590783
--- /dev/null
+++ b/power_sequencer/operators/utils/global_settings.py
@@ -0,0 +1,110 @@
+#
+# 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/>.
+#
+class ProjectSettings:
+ RESOLUTION_X = 1920
+ RESOLUTION_Y = 1080
+ PROXY_RESOLUTION_X = 640
+ PROXY_RESOLUTION_Y = 360
+ PROXY_STRING = "_proxy"
+
+ class FOLDER_NAMES:
+ AUDIO = "audio"
+ IMG = "img"
+ VIDEO = "video"
+ IMG_ASSETS = "-assets"
+
+ def __dir__(self):
+ return self.FOLDER_NAMES.AUDIO, self.FOLDER_NAMES.IMG, self.FOLDER_NAMES.VIDEO
+
+
+class SequenceTypes:
+ """
+ Tuples of identifiers to check if a strip is of a certain type or type group
+ """
+
+ VIDEO = ("MOVIE", "MOVIECLIP", "META", "SCENE")
+ EFFECT = (
+ "CROSS",
+ "ADD",
+ "SUBTRACT",
+ "ALPHA_OVER",
+ "ALPHA_UNDER",
+ "GAMMA_CROSS",
+ "MULTIPLY",
+ "OVER_DROP",
+ "WIPE",
+ "GLOW",
+ "TRANSFORM",
+ "COLOR",
+ "SPEED",
+ "ADJUSTMENT",
+ "GAUSSIAN_BLUR",
+ )
+ TRANSITION = ("CROSS", "GAMMA_CROSS", "WIPE")
+ SOUND = ("SOUND",)
+ IMAGE = ("IMAGE",)
+ TRANSITIONABLE = (
+ VIDEO + IMAGE + ("MULTICAM", "GAUSSIAN_BLUR", "TRANSFORM", "ADJUSTMENT", "SPEED")
+ )
+ # Strips that can be cut. If most effect strips are linked to their inputs
+ # and shouldn't be cut, some can be edited directly
+ CUTABLE = VIDEO + SOUND + IMAGE + ("MULTICAM", "COLOR", "ADJUSTMENT")
+
+
+EXTENSIONS_IMG = (
+ "jpeg",
+ "jpg",
+ "png",
+ "tga",
+ "tiff",
+ "tif",
+ "exr",
+ "hdr",
+ "bmp",
+ "cin",
+ "dpx",
+ "psd",
+)
+EXTENSIONS_AUDIO = (".wav", ".mp3", ".ogg", ".flac", ".opus")
+EXTENSIONS_VIDEO = (
+ ".mp4",
+ ".avi",
+ ".mts",
+ ".flv",
+ ".mkv",
+ ".mov",
+ ".mpg",
+ ".mpeg",
+ ".vob",
+ ".ogv",
+ "webm",
+)
+EXTENSIONS_ALL = tuple(list(EXTENSIONS_IMG) + list(EXTENSIONS_AUDIO) + list(EXTENSIONS_VIDEO))
+
+
+class Extensions:
+ """
+ Tuples of file types for checks when importing files
+ """
+
+ DICT = {"img": EXTENSIONS_IMG, "audio": EXTENSIONS_AUDIO, "video": EXTENSIONS_VIDEO}
+
+
+class SearchMode:
+ NEXT = 1
+ CHANNEL = 2
+ ALL = 3