Page MenuHome

VSE: Expose existing Transform Expand as a Select Tool toggle button.
AbandonedPublic

Authored by Peter Fog (tintwotin) on Jan 11 2021, 3:05 PM.
Subscribers
Tokens
"Love" token, awarded by Stig."Love" token, awarded by AndyCuccaro."Love" token, awarded by jayrajkharvadi."Like" token, awarded by activemotionpictures."Love" token, awarded by julperado."Love" token, awarded by KINjO.

Details

Summary

This patch is exposing the existing Transform Expand mode:


As a select/box-select tool toggle button:

The reason for this patch is that currently this essential function is that unexposed that even seasoned VSE users are not aware of the expand/ripple mode when transforming, and it is annoying to have to add shortcut-key press for a mode, most users will want to be in most of the time. Since it is implemented as an option in the select/select-box tool, no other tools are affected or should be.

If this patch gets committed, then this patch(which includes more functionality) can be closed: D9699

EDIT:
Boolean naming: Ripple Edit
Tooltip: Adjust the position of all following strips after a transform operation.
Fix versioning.
Moved def to SequencerToolSettings.

Diff Detail

Event Timeline

Peter Fog (tintwotin) requested review of this revision.Jan 11 2021, 3:05 PM
Peter Fog (tintwotin) created this revision.
Peter Fog (tintwotin) edited the summary of this revision. (Show Details)
Peter Fog (tintwotin) retitled this revision from VSE: Expose existing Transform Extend as a select-tool toggle button. to VSE: Expose existing Transform Expand as a Select Tool toggle button..Jan 11 2021, 9:21 PM

Since there is plenty of space in the tool header, why not expose it like with a boolean like [ ] Ripple Edit?

Peter Fog (tintwotin) updated this revision to Diff 32648.EditedJan 11 2021, 11:51 PM
Peter Fog (tintwotin) edited the summary of this revision. (Show Details)

@Hans Goudey (HooglyBoogly)

Expose it like a boolean: [ ] Ripple.
I called it Ripple and not Ripple Edit, since it is not affecting all edit operations - only transform.

I called it Ripple and not Ripple Edit, since it is not affecting all edit operations - only transform.

Though it's only displayed during transform operations, right? So I'm not sure that's an issue. Not saying it has to be different, but just "Ripple" seems a bit terse to me.

source/blender/makesrna/intern/rna_sequencer.c
2039

This should give a brief description of what the property is supposed to do when it's on.

Peter Fog (tintwotin) updated this revision to Diff 32653.EditedJan 12 2021, 7:12 AM
Peter Fog (tintwotin) edited the summary of this revision. (Show Details)

@Hans Goudey (HooglyBoogly)
Boolean naming: Ripple Edit
Tooltip: Adjust the position of all following strips to make room for inserted material

Peter Fog (tintwotin) edited the summary of this revision. (Show Details)Jan 12 2021, 7:12 AM

Is "material" the right word? Seems a bit odd considering what the term "material" usually means in Blender. Why not replace "inserted material" with "selected strips"?

Richard Antalik (ISS) requested changes to this revision.Jan 19 2021, 8:28 PM
Richard Antalik (ISS) added inline comments.
source/blender/blenloader/intern/versioning_280.c
3475 ↗(On Diff #32653)

Use versioning_290.c

source/blender/makesdna/DNA_sequence_types.h
278–280 ↗(On Diff #32653)

I think SequencerToolSettings are designed to have these kind of settings. defined in DNA_scene_types.h

transform_flags seems to be more descriptive name

It should have own enum, I would preffer to be named as well and not reuse SEQ_EDIT_***

This revision now requires changes to proceed.Jan 19 2021, 8:28 PM
Peter Fog (tintwotin) edited the summary of this revision. (Show Details)

Tooltip: Adjust the position of all following strips after a transform operation.
Fix versioning.
Moved def to SequencerToolSettings.

These comments are unclear to me. I hope you can give me a more detailed explanation in a chat pm:

transform_flags seems to be more descriptive name

How much do you want me to rename? Everything called ripple or just the "ripple_flag"?

It should have own enum, I would prefer to be named as well and not reuse SEQ_EDIT_***

It is just for a toggle button, why is it necessary to make it an enum?

These comments are unclear to me. I hope you can give me a more detailed explanation in a chat pm:

Wrote im PM as well but I will respond here as well.

transform_flags seems to be more descriptive name

How much do you want me to rename? Everything called ripple or just the "ripple_flag"?

Only ripple_flag to transform_flags - these flags will affect strip transform operator.

It should have own enum, I would prefer to be named as well and not reuse SEQ_EDIT_***

It is just for a toggle button, why is it necessary to make it an enum?

By enum I meant C data type like

typedef enum eSeqTransformFlags {
  SEQ_TRANSFORM_USE_RIPPLE = 1 << 0,
} eSeqTransformFlags;

This is so you can lookup all possible flags in IDE quickly, and to if you need to store these flags in variable, it can have type eSeqTransformFlags that will make it clear what the flag is and where it is defined.
I have forgot to define value in PM (FLAG_VAL = 1 << 0), this is so we can combine various flags.

Peter Fog (tintwotin) edited the summary of this revision. (Show Details)Feb 16 2021, 7:49 AM

This patch didn't make it into 2.93. As I do not have anymore time or motivation for a continued investment in the Blender project, I'm giving up on this patch for now.