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:
Diffstat (limited to 'power_sequencer/operators/make_hold_frame.py')
-rw-r--r--power_sequencer/operators/make_hold_frame.py12
1 files changed, 8 insertions, 4 deletions
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()