VSE: 'Clear fade' function clears every opacity/volume keyframe and resets non-default baseline value #91386

Open
opened 2021-09-13 19:54:20 +02:00 by David Salvo · 9 comments

System Information
Operating system: Linux-5.4.0-84-generic-x86_64-with-glibc2.31 64 Bits
Graphics card: GeForce 9800 GT/PCIe/SSE2 NVIDIA Corporation 3.3.0 NVIDIA 340.108

Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-08-25 23:03, hash: 70fbdcb6bf
Worked: Unsure

Short description of error
The 'Clear fade' function used on either a visual or audio strip does not only clear the start/end fade(s), but any other set opacity/volume keyframes as well. It will also reset the baseline value to 1, even if the fades in the strip clearly operate on a baseline set to other than 1.

Exact steps for others to reproduce the error
clear-fade-function-clears-internal-value-changes-and-does-not-preserve-non-default-baseline-value.blend
(NOTE: In blend file, choose 'Clear fade' from the context menu for the top strip)

  • Add sound or visual strip
  • Change opacity/volume to 0.5
  • Choose 'Fade in and out' from the context menu, and note that the changed 0.5 baseline has been respected
  • Add a manual keyframe change/fluctuation somewhere in the middle of the strip
  • Choose 'Clear fade' from the context menu
  • Notice that all keyframes including the middle ones are now gone, as well as the 0.5 baseline value (replaced by default 1.0)

It is not expected that any fades apart from in and out will be cleared. In particular, it is quite common to have volume keyframes toyed with throughout the strip, so I do think targeting just the ins and outs is useful, certainly much more so than destroying all the keyframes (which one can achieve by choosing "Clear keyframes" directly on the property).

Also all the options to add fades are for adding fade-ins and fade-outs, so it's expected that the "Clear fade" will remove fade ins/outs as well. Either way, the description should be made clearer to reflect what will really happen.

A user-set, non-default baseline should also be preserved, if it clearly exists.

**System Information** Operating system: Linux-5.4.0-84-generic-x86_64-with-glibc2.31 64 Bits Graphics card: GeForce 9800 GT/PCIe/SSE2 NVIDIA Corporation 3.3.0 NVIDIA 340.108 **Blender Version** Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-08-25 23:03, hash: `70fbdcb6bf` Worked: Unsure **Short description of error** The 'Clear fade' function used on either a visual or audio strip does not only clear the start/end fade(s), but any other set opacity/volume keyframes as well. It will also reset the baseline value to 1, even if the fades in the strip clearly operate on a baseline set to other than 1. **Exact steps for others to reproduce the error** [clear-fade-function-clears-internal-value-changes-and-does-not-preserve-non-default-baseline-value.blend](https://archive.blender.org/developer/F10409338/clear-fade-function-clears-internal-value-changes-and-does-not-preserve-non-default-baseline-value.blend) (NOTE: In blend file, choose 'Clear fade' from the context menu for the top strip) - Add sound or visual strip - Change opacity/volume to 0.5 - Choose 'Fade in and out' from the context menu, and note that the changed 0.5 baseline has been respected - Add a manual keyframe change/fluctuation somewhere in the middle of the strip - Choose 'Clear fade' from the context menu - Notice that all keyframes including the middle ones are now gone, as well as the 0.5 baseline value (replaced by default 1.0) It is not expected that any fades apart from in and out will be cleared. In particular, it is quite common to have volume keyframes toyed with throughout the strip, so I do think targeting just the ins and outs is useful, certainly much more so than destroying all the keyframes (which one can achieve by choosing "Clear keyframes" directly on the property). Also all the options to add fades are for adding fade-ins and fade-outs, so it's expected that the "Clear fade" will remove fade ins/outs as well. Either way, the description should be made clearer to reflect what will really happen. A user-set, non-default baseline should also be preserved, if it clearly exists.
Author

Added subscriber: @slinkeepie

Added subscriber: @slinkeepie
David Salvo changed title from VSE: 'Clear fade' function clears every opacity/volume keyframe and resets baseline value to VSE: 'Clear fade' function clears every opacity/volume keyframe and resets non-default baseline value 2021-09-13 19:55:01 +02:00

Added subscriber: @tintwotin

Added subscriber: @tintwotin

The fade functions are implemented as a temporary solution till time permits a proper implementation, maybe modifier based, so it will not interfere with f-curves. The functions are actually coded in python and can be updated without building Blender. Search for a file called sequencer.py in your Blender installation if you want to tinker with it, save it and restart Blender to see the changes.

The fade functions are implemented as a temporary solution till time permits a proper implementation, maybe modifier based, so it will not interfere with f-curves. The functions are actually coded in python and can be updated without building Blender. Search for a file called sequencer.py in your Blender installation if you want to tinker with it, save it and restart Blender to see the changes.
Author

In #91386#1219578, @tintwotin wrote:
The fade functions are implemented as a temporary solution till time permits a proper implementation, maybe modifier based, so it will not interfere with f-curves. The functions are actually coded in python and can be updated without building Blender. Search for a file called sequencer.py in your Blender installation if you want to tinker with it, save it and restart Blender to see the changes.

Okay interesting, thanks for the heads up... if that's the case then I've no problem if this is closed (and hopefully it remains on the to-do list!).

> In #91386#1219578, @tintwotin wrote: > The fade functions are implemented as a temporary solution till time permits a proper implementation, maybe modifier based, so it will not interfere with f-curves. The functions are actually coded in python and can be updated without building Blender. Search for a file called sequencer.py in your Blender installation if you want to tinker with it, save it and restart Blender to see the changes. Okay interesting, thanks for the heads up... if that's the case then I've no problem if this is closed (and hopefully it remains on the to-do list!).
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

In #91386#1219649, @slinkeepie wrote:

In #91386#1219578, @tintwotin wrote:
The fade functions are implemented as a temporary solution till time permits a proper implementation, maybe modifier based, so it will not interfere with f-curves. The functions are actually coded in python and can be updated without building Blender. Search for a file called sequencer.py in your Blender installation if you want to tinker with it, save it and restart Blender to see the changes.

Okay interesting, thanks for the heads up... if that's the case then I've no problem if this is closed (and hopefully it remains on the to-do list!).

I'd still keep this as this is really not behaving as it should.
(I know this is not the only case)
I also know this is not likely to be fixed (since as @tintwotin said, fades are just "regular" FCurves and identifying keyframes that belong to fades rather than handmade animation is pretty much not going to work I assume)
But would prefer #vfx_video devs to close this.

> In #91386#1219649, @slinkeepie wrote: >> In #91386#1219578, @tintwotin wrote: >> The fade functions are implemented as a temporary solution till time permits a proper implementation, maybe modifier based, so it will not interfere with f-curves. The functions are actually coded in python and can be updated without building Blender. Search for a file called sequencer.py in your Blender installation if you want to tinker with it, save it and restart Blender to see the changes. > > Okay interesting, thanks for the heads up... if that's the case then I've no problem if this is closed (and hopefully it remains on the to-do list!). I'd still keep this as this is really not behaving as it should. (I know this is not the only case) I also know this is not likely to be fixed (since as @tintwotin said, fades are just "regular" FCurves and identifying keyframes that belong to fades rather than handmade animation is pretty much not going to work I assume) But would prefer #vfx_video devs to close this.

Added subscriber: @iss

Added subscriber: @iss

Checking code, I see that this works as designed.

Still would be fine to improve this, but question is how exactly. Keyframes can't be tagged as fades and they can be moved around.

Best solution I think would be to check for keyframes at pre-defined frames and there would have to be no other keyframes, otherwise the script would have no idea what to do. If anybody have ideas, feel free to share.

Checking code, I see that this works as designed. Still would be fine to improve this, but question is how exactly. Keyframes can't be tagged as fades and they can be moved around. Best solution I think would be to check for keyframes at pre-defined frames and there would have to be no other keyframes, otherwise the script would have no idea what to do. If anybody have ideas, feel free to share.
Richard Antalik added this to the Video Sequencer project 2023-02-09 20:57:27 +01:00
Philipp Oeser removed the
Interest
VFX & Video
label 2023-02-10 09:31:43 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#91386
No description provided.