Page MenuHome

VSE: Use edge panning
ClosedPublic

Authored by Richard Antalik (ISS) on Mar 11 2022, 12:51 PM.

Details

Summary

Add edge panning feature to transform operator. It works in same way as
in node editor, but Y axis is limited by usable range up to 128
channels.

Diff Detail

Repository
rB Blender

Event Timeline

Richard Antalik (ISS) requested review of this revision.Mar 11 2022, 12:51 PM
Richard Antalik (ISS) created this revision.
Julian Eisel (Severin) requested changes to this revision.Mar 11 2022, 5:14 PM

Seems fine mostly. Just one thing I noticed is that the speed is too high to control the transform nicely. Especially when zoomed in. In the node editor it feels like I have much more control whereas in the VSE it scrolls very fast very early. That's the only behavior change I'd suggest.

source/blender/editors/transform/transform_convert_sequencer.c
648–651

Other code only sets this based on CTX_VIEW2D_EDGE_PAN here: https://developer.blender.org/diffusion/B/browse/master/source/blender/editors/transform/transform_generics.c$673-676
What's the reason behind this special case?

736

This is also something that the node editor doesn't seem to do. Could you explain why this is needed? Best in a code comment.

This revision now requires changes to proceed.Mar 11 2022, 5:14 PM
Richard Antalik (ISS) marked 2 inline comments as done.
  • address inlines
source/blender/editors/transform/transform_convert_sequencer.c
648–651

I think I have copied this from original diff.

736

They do here https://developer.blender.org/diffusion/B/browse/master/source/blender/editors/transform/transform_convert_node.c$155-186

I wanted to extract specific math to own function, but shouldn't include edge pan handling there, so fixed that.

  • Decrease panning speed

I still find it a bit too sensitive & fast, a SEQ_EDGE_PAN_SPEED_RAMP of 3 or even 4 works quite nice for me.

I'd still suggest to change that, otherwise looking ready to me.

This revision is now accepted and ready to land.Mar 11 2022, 8:32 PM
  • Change edgepan speed
This revision was automatically updated to reflect the committed changes.