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>2020-05-16 23:43:41 +0300
committerDalai Felinto <dalai@blender.org>2020-05-29 10:53:52 +0300
commit3596c03d899419057679f0c9504cdad1f718e6b9 (patch)
treee5d71e5331bdc040b9c4c1c08a8522ba78345235
parent2d417f1fa03612c5de34b6c216190e8e10f1be59 (diff)
Remove periods from docstrings, format code with black
-rw-r--r--power_sequencer/operators/fade_add.py2
-rw-r--r--power_sequencer/operators/fade_clear.py2
-rw-r--r--power_sequencer/operators/gap_remove.py18
-rw-r--r--power_sequencer/operators/make_hold_frame.py12
-rw-r--r--power_sequencer/operators/scene_merge_from.py3
5 files changed, 24 insertions, 13 deletions
diff --git a/power_sequencer/operators/fade_add.py b/power_sequencer/operators/fade_add.py
index 70a0798b..1f4d0bfa 100644
--- a/power_sequencer/operators/fade_add.py
+++ b/power_sequencer/operators/fade_add.py
@@ -22,7 +22,7 @@ from .utils.doc import doc_name, doc_idname, doc_brief, doc_description
class POWER_SEQUENCER_OT_fade_add(bpy.types.Operator):
- """*brief* Adds or updates a fade animation for either visual or audio strips.
+ """*brief* Adds or updates a fade animation for either visual or audio strips
Fade options:
diff --git a/power_sequencer/operators/fade_clear.py b/power_sequencer/operators/fade_clear.py
index 16443691..06b320b0 100644
--- a/power_sequencer/operators/fade_clear.py
+++ b/power_sequencer/operators/fade_clear.py
@@ -21,7 +21,7 @@ from .utils.doc import doc_name, doc_idname, doc_brief, doc_description
class POWER_SEQUENCER_OT_fade_clear(bpy.types.Operator):
"""
- *brief* Removes fade animation from selected sequences.
+ *brief* Removes fade animation from selected sequences
Removes opacity or volume animation on selected sequences and resets the
property to a value of 1.0. Works on all types of sequences
diff --git a/power_sequencer/operators/gap_remove.py b/power_sequencer/operators/gap_remove.py
index 413d5466..4a736051 100644
--- a/power_sequencer/operators/gap_remove.py
+++ b/power_sequencer/operators/gap_remove.py
@@ -55,7 +55,7 @@ class POWER_SEQUENCER_OT_gap_remove(bpy.types.Operator):
)
move_time_cursor: bpy.props.BoolProperty(
name="Move Time Cursor",
- description="Move the time cursor when closing the gap.",
+ description="Move the time cursor when closing the gap",
default=False,
)
@@ -71,7 +71,9 @@ class POWER_SEQUENCER_OT_gap_remove(bpy.types.Operator):
else context.sequences
)
sequences = [
- s for s in sequences if s.frame_final_start >= frame or s.frame_final_end > frame
+ s
+ for s in sequences
+ if s.frame_final_start >= frame or s.frame_final_end > frame
]
sequence_blocks = slice_selection(context, sequences)
if not sequence_blocks:
@@ -98,12 +100,18 @@ class POWER_SEQUENCER_OT_gap_remove(bpy.types.Operator):
Finds and returns the frame at which the gap starts.
Takes a list sequences sorted by frame_final_start.
"""
- strips_start = min(sorted_sequences, key=attrgetter("frame_final_start")).frame_final_start
- strips_end = max(sorted_sequences, key=attrgetter("frame_final_end")).frame_final_end
+ strips_start = min(
+ sorted_sequences, key=attrgetter("frame_final_start")
+ ).frame_final_start
+ strips_end = max(
+ sorted_sequences, key=attrgetter("frame_final_end")
+ ).frame_final_end
gap_frame = -1
if strips_start > frame:
- strips_before_frame_start = [s for s in context.sequences if s.frame_final_end <= frame]
+ strips_before_frame_start = [
+ s for s in context.sequences if s.frame_final_end <= frame
+ ]
frame_target = 0
if strips_before_frame_start:
frame_target = max(
diff --git a/power_sequencer/operators/make_hold_frame.py b/power_sequencer/operators/make_hold_frame.py
index b8aef4c0..c6893d04 100644
--- a/power_sequencer/operators/make_hold_frame.py
+++ b/power_sequencer/operators/make_hold_frame.py
@@ -24,10 +24,10 @@ from .utils.doc import doc_name, doc_idname, doc_brief, doc_description
class POWER_SEQUENCER_OT_make_hold_frame(bpy.types.Operator):
"""
- *brief* Make a hold frame from the active strip.
+ *brief* Make a hold frame from the active strip
Converts the image under the cursor to a hold frame, to create a pause effect in the video,
- using the active sequence.
+ using the active sequence
"""
doc = {
@@ -77,7 +77,9 @@ class POWER_SEQUENCER_OT_make_hold_frame(bpy.types.Operator):
try:
next_strip_start = next(
s
- for s in sorted(context.sequences, key=operator.attrgetter("frame_final_start"))
+ for s in sorted(
+ context.sequences, key=operator.attrgetter("frame_final_start")
+ )
if s.frame_final_start > active.frame_final_end
).frame_final_start
offset = next_strip_start - active.frame_final_end
@@ -88,7 +90,9 @@ class POWER_SEQUENCER_OT_make_hold_frame(bpy.types.Operator):
source_blend_type = active.blend_type
sequencer.split(frame=scene.frame_current, type="SOFT", side="RIGHT")
transform.seq_slide(value=(offset, 0))
- sequencer.split(frame=scene.frame_current + offset + 1, type="SOFT", side="LEFT")
+ sequencer.split(
+ frame=scene.frame_current + offset + 1, type="SOFT", side="LEFT"
+ )
transform.seq_slide(value=(-offset, 0))
sequencer.meta_make()
diff --git a/power_sequencer/operators/scene_merge_from.py b/power_sequencer/operators/scene_merge_from.py
index 2908ebcd..16b2710d 100644
--- a/power_sequencer/operators/scene_merge_from.py
+++ b/power_sequencer/operators/scene_merge_from.py
@@ -22,8 +22,7 @@ from .utils.doc import doc_name, doc_idname, doc_brief, doc_description
class POWER_SEQUENCER_OT_merge_from_scene_strip(bpy.types.Operator):
"""
*brief* Copies all sequences and markers from a SceneStrip's scene into
- the active scene. Optionally delete the source scene and the strip.
-
+ the active scene. Optionally delete the source scene and the strip
WARNING: Currently the operator doesn't recreate any animation data,
be careful by choosing to delete the scene after the merge