VSE: "Swap Strip" function should act on selected strips instead of active strip #91191

Closed
opened 2021-09-05 07:00:38 +02:00 by David Salvo · 17 comments

System Information
Operating system: Linux-5.4.0-81-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-09-04 16:28, hash: 079bd11556
Worked: Unsure

Short description of error
Last selected strip will respond to Swap Strip function, even if it's not the currently unselected.
Seems to be an unconsidered use case related to https://developer.blender.org/T90356

Steps to Reproduce the error

  1. Select any strip in a channel with more than 1 strip
  2. Click off-strip to deselect that strip (the strip label will remain in white as last-selected)
  3. Activate Swap strip option - this strip will respond, when the function should fail

{F10386722,size=full}


As you can see in the video, you get other unexpected behaviour, such as a strip that has been explicitly selected by block select being ignored in favour of the "last selected" strip.

Honestly it would be nice if it could operate on multiple horizontally adjacent strips, but that's an expansion of current function I realize. Though even if it stays as a single-strip operator, that strip should be the strip that is currently selected.

**System Information** Operating system: Linux-5.4.0-81-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-09-04 16:28, hash: `079bd11556` Worked: Unsure **Short description of error** Last selected strip will respond to Swap Strip function, even if it's not the currently unselected. Seems to be an unconsidered use case related to https://developer.blender.org/T90356 **Steps to Reproduce the error** 1. Select any strip in a channel with more than 1 strip 2. Click off-strip to deselect that strip (the strip label will remain in white as last-selected) 3. Activate Swap strip option - this strip will respond, when the function should fail {[F10386722](https://archive.blender.org/developer/F10386722/0060-0590.mp4),size=full} --- As you can see in the video, you get other unexpected behaviour, such as a strip that has been explicitly selected by block select being ignored in favour of the "last selected" strip. Honestly it would be nice if it could operate on multiple horizontally adjacent strips, but that's an expansion of current function I realize. Though even if it stays as a single-strip operator, that strip should be the strip that is currently selected.
Author

Added subscriber: @slinkeepie

Added subscriber: @slinkeepie
Member

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

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

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Added subscriber: @quantimoney

Added subscriber: @quantimoney
Member

Box select doesn't make the strip the active one (although selected) and therefore the function "fails" here. Consistency wise, the box select should have the same functionality (not making anything active but just selected). So mostly this should just be left as it is, other areas in blender too have functionality which is applied to only the active one, even when other entities might be selected.

Box select doesn't make the strip the active one (although selected) and therefore the function "fails" here. Consistency wise, the box select should have the same functionality (not making anything active but just selected). So mostly this should just be left as it is, other areas in blender too have functionality which is applied to only the active one, even when other entities might be selected.

Added subscriber: @tintwotin

Added subscriber: @tintwotin

The active strip is the one displayed in the sidebar and if a value is changed in the sidebar, the values of the active strip should be changed no matter if it is selected or not.

However the operators working from the menu should only work on the selected strips, not the unselected active strip. The problem here is that the active strip is included in the selection, and it shouldn't. So with no selected strips, shouldn't Swap do anything.

The active strip is the one displayed in the sidebar and if a value is changed in the sidebar, the values of the active strip should be changed no matter if it is selected or not. However the operators working from the menu should only work on the selected strips, not the unselected active strip. The problem here is that the active strip is included in the selection, and it shouldn't. So with no selected strips, shouldn't Swap do anything.
Author

In #91191#1217597, @quantimoney wrote:
Box select doesn't make the strip the active one (although selected) and therefore the function "fails" here. Consistency wise, the box select should have the same functionality (not making anything active but just selected). So mostly this should just be left as it is, other areas in blender too have functionality which is applied to only the active one, even when other entities might be selected.

Hey Aditya, thanks for taking a look! (sorry I've fixed the video now, keep forgetting it won't play weird resolutions). The other bug I mentioned above was fixed for this same reason, it just isn't consistent with the closest other relevant behaviour. i.e. You can't grab an unselected strip, delete, or any other operator, so this is confusing to the user. I can't remember the exact situation, but I came across this behaviour during regular usage on a project.

(Note: I've no problem with box select not creating a new active strip, as that's primarily a multi-strip selector).

> In #91191#1217597, @quantimoney wrote: > Box select doesn't make the strip the active one (although selected) and therefore the function "fails" here. Consistency wise, the box select should have the same functionality (not making anything active but just selected). So mostly this should just be left as it is, other areas in blender too have functionality which is applied to only the active one, even when other entities might be selected. Hey Aditya, thanks for taking a look! (sorry I've fixed the video now, keep forgetting it won't play weird resolutions). The other bug I mentioned above was fixed for this same reason, it just isn't consistent with the closest other relevant behaviour. i.e. You can't grab an unselected strip, delete, or any other operator, so this is confusing to the user. I can't remember the exact situation, but I came across this behaviour during regular usage on a project. (Note: I've no problem with box select not creating a new active strip, as that's primarily a multi-strip selector).
Author

Note: Menu description would be have to be changed from "active strip" to "selected strip" if this is corrected.

Also any failure of this function to operate based on a multiple strip selection should probably have some kind of unobtrusive notification be displayed to the user (like the message on bottom bar when file is saved?), but honestly that doesn't seem to be a thing in the VSE so I understand if that's not done for now.

Note: Menu description would be have to be changed from "active strip" to "selected strip" if this is corrected. Also any failure of this function to operate based on a multiple strip selection should probably have some kind of unobtrusive notification be displayed to the user (like the message on bottom bar when file is saved?), but honestly that doesn't seem to be a thing in the VSE so I understand if that's not done for now.
David Salvo changed title from VSE: "Swap Strip" function will act on last selected (but currently unselected) strip to VSE: "Swap Strip" function will act on active (but currently unselected) strip 2021-09-09 09:32:44 +02:00
David Salvo changed title from VSE: "Swap Strip" function will act on active (but currently unselected) strip to VSE: "Swap Strip" function will act on active strip when unselected 2021-09-09 09:33:25 +02:00
David Salvo changed title from VSE: "Swap Strip" function will act on active strip when unselected to VSE: "Swap Strip" function should act on selected strip instead of active strip 2021-09-09 09:38:25 +02:00

It's the same situation with the operators exposed in the Effect Strip menu:
{F10390042,size=full}

And Inputs > Change Path/Files:
{F10390046,size=full}

Imo, all of them should be moved into the strip sidebar which works on the active strip no matter if it is selected or not.
(The Change Path/Files functionality seems to be already exposed in the Source sidebar)

It's the same situation with the operators exposed in the Effect Strip menu: {[F10390042](https://archive.blender.org/developer/F10390042/image.png),size=full} And Inputs > Change Path/Files: {[F10390046](https://archive.blender.org/developer/F10390046/image.png),size=full} Imo, all of them should be moved into the strip sidebar which works on the active strip no matter if it is selected or not. (The Change Path/Files functionality seems to be already exposed in the Source sidebar)
Author

In #91191#1217805, @tintwotin wrote:

Imo, all of them should be moved into the strip sidebar which works on the active strip no matter if it is selected or not.
(The Change Path/Files functionality seems to be already exposed in the Source sidebar)

Yep agreed, that would create some nice consistency. I consider this buggy behaviour because it's just so unexpected and inconsistent, not to mention unintuitive - despite the function technically doing what it says it does.

After I found this one, I had a quick look through the menu to see what other functions could be operating in this weird way... didn't find any, but I did notice that although "Slip strip" works on selected strip(s), the mouse-over help message in the menu states it acts on the active strip. I will file a simple bug report for this tonight.

> In #91191#1217805, @tintwotin wrote: > > Imo, all of them should be moved into the strip sidebar which works on the active strip no matter if it is selected or not. > (The Change Path/Files functionality seems to be already exposed in the Source sidebar) Yep agreed, that would create some nice consistency. I consider this buggy behaviour because it's just so unexpected and inconsistent, not to mention unintuitive - despite the function technically doing what it says it does. After I found this one, I had a quick look through the menu to see what other functions could be operating in this weird way... didn't find any, but I did notice that although "Slip strip" works on selected strip(s), the mouse-over help message in the menu states it acts on the active strip. I will file a simple bug report for this tonight.
tintwotin self-assigned this 2021-09-10 08:35:01 +02:00

Fix in D12441.

Fix in [D12441](https://archive.blender.org/developer/D12441).
tintwotin changed title from VSE: "Swap Strip" function should act on selected strip instead of active strip to VSE: "Swap Strip" function should act on selected strips instead of active strip 2021-09-10 09:02:31 +02:00

Added subscriber: @iss

Added subscriber: @iss

This is correct behavior and most likely it is written like this on purpose.

Even without looking too much on D12441, this would introduce various issues like

  • What happens when you select multiple strips?
  • What happens when selection is randomly distributed?
  • What happens when you select all strips?
  • What if some script relied on this functionality?

This is not impossible to change, but I would propose logic like "Swap active strip, or selected if only one strip is selected". Swapping continuous blocks of strips could be done too, it sounds quite useful.

This is correct behavior and most likely it is written like this on purpose. Even without looking too much on [D12441](https://archive.blender.org/developer/D12441), this would introduce various issues like - What happens when you select multiple strips? - What happens when selection is randomly distributed? - What happens when you select all strips? - What if some script relied on this functionality? This is not impossible to change, but I would propose logic like "Swap active strip, or selected if only one strip is selected". Swapping continuous blocks of strips could be done too, it sounds quite useful.

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'

Closing since this is working as intended, supporting this is an enhancement.

Closing since this is working as intended, supporting this is an enhancement.
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 project
No Assignees
6 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#91191
No description provided.