Skip to content

Commit

Permalink
chore: format code, update release script, update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanLovato committed Jul 27, 2022
1 parent 9047346 commit 8113863
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 12 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@ This document lists new features, improvements, changes, and bug fixes in every

## Power Sequencer 2.0.2

- Fix strips not being deleted with _Channel Offset_.
This release makes power sequencer compatible with the latest version of Blender.

### Bug fixes

- Fix error when calling grab sequence handles due to type mismatch
- Remove FAST and FASTER playback speeds, simplify playback speed code
- Rewrite select_all_left_or_right after API change causing error
- Fix error with jump_to_cut when encountering animation frames
- Fix jump_to_cut skipping some strip ends when moving forward in time
- Jump_to_cut sometimes not working when going left
- Fix error when trimming effect strips

## Power Sequencer 2.0.1

Expand Down
2 changes: 1 addition & 1 deletion make_release.fish
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env fish

set blender_addons_repo $HOME/Repositories/applications/blender-git/blender/release/scripts/addons/
set blender_addons_repo $HOME/Repositories/applications/blender-addons/
set out_path power_sequencer

function make_release
Expand Down
6 changes: 5 additions & 1 deletion operators/expand_to_surrounding_cuts.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ class POWER_SEQUENCER_OT_expand_to_surrounding_cuts(bpy.types.Operator):
"demo": "",
"description": doc_description(__doc__),
"shortcuts": [
({"type": "E", "value": "PRESS", "ctrl": True}, {}, "Expand to Surrounding Cuts",)
(
{"type": "E", "value": "PRESS", "ctrl": True},
{},
"Expand to Surrounding Cuts",
)
],
"keymap": "Sequencer",
}
Expand Down
5 changes: 4 additions & 1 deletion operators/fade_add.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ class POWER_SEQUENCER_OT_fade_add(bpy.types.Operator):
bl_options = {"REGISTER", "UNDO"}

duration_seconds: bpy.props.FloatProperty(
name="Fade Duration", description="Duration of the fade in seconds", default=1.0, min=0.01,
name="Fade Duration",
description="Duration of the fade in seconds",
default=1.0,
min=0.01,
)
type: bpy.props.EnumProperty(
items=[
Expand Down
6 changes: 5 additions & 1 deletion operators/fade_clear.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ class POWER_SEQUENCER_OT_fade_clear(bpy.types.Operator):
"demo": "",
"description": doc_description(__doc__),
"shortcuts": [
({"type": "F", "value": "PRESS", "alt": True, "ctrl": True}, {}, "Clear Fades",)
(
{"type": "F", "value": "PRESS", "alt": True, "ctrl": True},
{},
"Clear Fades",
)
],
"keymap": "Sequencer",
}
Expand Down
6 changes: 5 additions & 1 deletion operators/snap.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ class POWER_SEQUENCER_OT_snap(bpy.types.Operator):
"demo": "",
"description": doc_description(__doc__),
"shortcuts": [
({"type": "S", "value": "PRESS", "shift": True}, {}, "Snap sequences to cursor",)
(
{"type": "S", "value": "PRESS", "shift": True},
{},
"Snap sequences to cursor",
)
],
"keymap": "Sequencer",
}
Expand Down
6 changes: 5 additions & 1 deletion operators/snap_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ class POWER_SEQUENCER_OT_snap_selection(bpy.types.Operator):
"demo": "",
"description": doc_description(__doc__),
"shortcuts": [
({"type": "S", "value": "PRESS", "alt": True}, {}, "Snap selection to cursor",)
(
{"type": "S", "value": "PRESS", "alt": True},
{},
"Snap selection to cursor",
)
],
"keymap": "Sequencer",
}
Expand Down
18 changes: 15 additions & 3 deletions operators/speed_up_movie_strip.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,21 @@ class POWER_SEQUENCER_OT_speed_up_movie_strip(bpy.types.Operator):
"demo": "https://i.imgur.com/ZyEd0jD.gif",
"description": doc_description(__doc__),
"shortcuts": [
({"type": "TWO", "value": "PRESS", "alt": True}, {"speed_factor": 2.0}, "Speed x2",),
({"type": "THREE", "value": "PRESS", "alt": True}, {"speed_factor": 3.0}, "Speed x3",),
({"type": "FOUR", "value": "PRESS", "alt": True}, {"speed_factor": 4.0}, "Speed x4",),
(
{"type": "TWO", "value": "PRESS", "alt": True},
{"speed_factor": 2.0},
"Speed x2",
),
(
{"type": "THREE", "value": "PRESS", "alt": True},
{"speed_factor": 3.0},
"Speed x3",
),
(
{"type": "FOUR", "value": "PRESS", "alt": True},
{"speed_factor": 4.0},
"Speed x4",
),
],
"keymap": "Sequencer",
}
Expand Down
4 changes: 2 additions & 2 deletions operators/utils/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,11 @@ def trim_strips(context, frame_start, frame_end, to_trim, to_delete=[]):
bpy.ops.sequencer.split(frame=trim_start, type="SOFT", side="RIGHT")
bpy.ops.sequencer.split(frame=trim_end, type="SOFT", side="LEFT")
to_delete.append(context.selected_sequences[0])

for c in context.sequences:
if c.channel == s.channel:
strips_in_target_channel.append(c)

if s in initial_selection:
initial_selection.append(strips_in_target_channel[0])
continue
Expand Down

0 comments on commit 8113863

Please sign in to comment.