This patch adds menus and shortcuts for the Transform Tools and reverts rBf0d20198b290338a9f58392f98ee43957b0bad61 as it causes a context mess, 3 unresolved FIXMEs, and 2 TODOs to the code, a mess of the UI script and a Script menu for adding transforms, and an Image menu for removing them.
The Current:
All menu select functions in Sequencer/Preview are selected in Preview mode since that's where the menus are(selecting in the sequencer context is impossible through the menu):
Strange UI in the current implementation: change transforms through one top-level menu, and clear the same transforms in another top-level menu. And what does strip mean in the Preview?
This patch:
This patch is a simpler solution, as it just uses macros for the Preview context versions of "double" operators in Sequencer/Preview, and expose them both in an organized way.
Ex.
From the menu, the select operators need to work differently if they are executed from the Image menu(only at the current frame) or from the Strip menu(all strips):
From the menu, the duplicate function needs to work differently if it is executed from the Image menu or from the Strip menu:
Added menus and functions:
Preview Select Menu:
- Select All
- Select None
- Select Inverted
- Box Select
Preview Image Menu:
- Move
- Rotate
- Scale
- Clear
- Move
- Rotate
- Scale
- All
- Copy
- Paste
- Duplicate
- Delete
- Fit/Fill
- Scale to Fit
- Scale to Fill
- Stretch to Fill
In Sequencer/Preview:
- Preview
- Select All
- Select None
- Select Inverted
- Box Select
Context Menu:
- Move
- Rotate
- Scale
- Clear
- Move
- Rotate
- Scale
- All
- Copy
- Paste
- Duplicate
- Delete
- Fit/Fill
- Scale to Fit
- Scale to Fill
- Stretch to Fill
Menu clean-ups:
- Rename "Box Select" to Box Select Strips" and "Box Select(include handles)" to "Box Select Handles", since the first only allows selection of strips and the latter only handles.
- Remove redundant use of the word Strip in the "Strip" menus. Ex. "Snap Strips to Current Frame", also allows snapping of handles to the current frame, which isn't covered by the previous name.
Old Demo:
Notes:
- Shortcut keys and functions are added in consistency with similar tools across Blender.
- The additional functions are added as macros for simplicity.
- Image selection is based on current frame position, since these elements are visible at current time.
- The Strip > Image Transform has been moved into the Preview Image menu.
Known Issues:
- Invert Selection also selects to the left outside of the current frame - this is a bug in the "Side of frame/left" operator when called as a macro(unrelated to this patch). This causes some of the select macros to end up with selected strips to the left of the current frame, and should be fixed, but this is low level stuff, out of my abilities.
















