diff options
Diffstat (limited to 'power_sequencer/operators/fade_clear.py')
-rw-r--r-- | power_sequencer/operators/fade_clear.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/power_sequencer/operators/fade_clear.py b/power_sequencer/operators/fade_clear.py index 9cba7e16..16443691 100644 --- a/power_sequencer/operators/fade_clear.py +++ b/power_sequencer/operators/fade_clear.py @@ -24,7 +24,7 @@ class POWER_SEQUENCER_OT_fade_clear(bpy.types.Operator): *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. + property to a value of 1.0. Works on all types of sequences """ doc = { @@ -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", } @@ -49,7 +53,9 @@ class POWER_SEQUENCER_OT_fade_clear(bpy.types.Operator): fcurves = context.scene.animation_data.action.fcurves for sequence in context.selected_sequences: - animated_property = "volume" if hasattr(sequence, "volume") else "blend_alpha" + animated_property = ( + "volume" if hasattr(sequence, "volume") else "blend_alpha" + ) data_path = sequence.path_from_id() + "." + animated_property fcurve_map = { curve.data_path: curve |