Blender Git Loki

Git Commits -> Revision e1bd4bb

Revision e1bd4bb by Pablo Vazquez (master)
November 11, 2021, 00:18 (GMT)
UI: Introduce View pie in more editors

#### Motivation

The View pie menu is a convenient way to access operators such as `Frame Selected` and `Frame All` which are usually mapped to `PERIOD` or `HOME` keys on the right side of most keyboard, making it hard hard to reach with the left hand.

The motivation for this patch comes from working with a 75% keyboard (no numpad). Most laptops face a similar problem.

#### Implementation

The View pie menu has been added to the following editors and sub-modes where applicable:

* Node Editor
* Video Sequencer
* Dopesheet
* Graph
* NLA
* Image
* Clip
* Outliner

More options could definitely be added to this menu for convenience, as long as it maintains the common options in the same place (Frame Selected on the left, Frame All on the right).

For positioning I went with the following layout:
{F11791186, size=full}

I've added `Zoom 1:1`to the Image Editor and the VSE Preview since there is no way to reset the zoom on keyboards without numpad (unless Emulate Numpad is turned on).

The Outliner uses `Show Active` and `Show Hierarchy` which are the closest ones to the equivalent in other editors. Should `Show Active` be renamed to `Frame Selected`?

The shortcut assigned is the same as the 3D Viewport (`ACCENT_GRAVE`).

#### Screenshots

Node Editor
{F11778387, size=full}

Dopesheet
{F11778400, size=full}

Graph
{F11778403, size=full}

Image Editor (Paint and View)
{F11791113, size=full}

Image Editor (Mask)
{F11791114, size=full}

UV Editor
{F11791119, size=full}

Clip Editor (Tracking)
{F11791137, size=full}

Clip Editor (Mask)
{F11791140, size=full}

Clip Editor (Graph)
{F11791151, size=full}
View operators are not yet implemented in Clip Editor Dopesheet mode (left a note about this in the menu poll).

Reviewed By: #user_interface, campbellbarton

Differential Revision: https://developer.blender.org/D13169

Commit Details:

Full Hash: e1bd4bbb6668b7fa4ac1badfe72d8904a559eb99
Parent Commit: f1a8644
Lines Changed: +163, -0

9 Modified Paths:

/release/scripts/presets/keyconfig/keymap_data/blender_default.py (+9, -0) (Diff)
/release/scripts/startup/bl_ui/space_clip.py (+38, -0) (Diff)
/release/scripts/startup/bl_ui/space_dopesheet.py (+13, -0) (Diff)
/release/scripts/startup/bl_ui/space_graph.py (+13, -0) (Diff)
/release/scripts/startup/bl_ui/space_image.py (+26, -0) (Diff)
/release/scripts/startup/bl_ui/space_nla.py (+13, -0) (Diff)
/release/scripts/startup/bl_ui/space_node.py (+12, -0) (Diff)
/release/scripts/startup/bl_ui/space_outliner.py (+12, -0) (Diff)
/release/scripts/startup/bl_ui/space_sequencer.py (+27, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021