Page MenuHome

Active Element Implementation in Outliner
Needs ReviewPublic

Authored by Aqib Maqbool (aqib) on May 9 2019, 2:47 PM.

Details

Summary

In Blender's 2.8 Outliner. Currently there is no active element mechanism (which is very confusing). It is very need in many situations.

Although there is an active element in Outliner it's mainly used for the 3D Viewport (many active elements at one time e.g one for Object and one for Collection), which would not be handy for many actions e.g. starts sequence selection form active elem (which goes from first / sec).

So in this patch, we implement a perfect solutions for this.

Idea inspired by MS VSCode/Explorer

Here, almost all the ideas were implemented by following VSCode Explorer with a few exceptions. For more information, see MS VSCode Explorer Realtime.

Uses
  • Range selection should start form active element
  • Open/Close elements should follow active element
  • Arrow keys navigate the active element
  • Extend/Shrink Selection with arrow keys should follow active element
  • Expand / shrink selection is w.r.t active element
Limitations
  • One and only one active element exists at one time
  • Currently there may be cases when there is no active element, we can later create some mechanism that makes previous element active every time active element is missing (e.g when item is deleted).
Notes
  • It's should be sync with 3d Viewport (means also selects and activate objects)
  • It's implemented to supports some other features (e.g. Sequence Selection)
Dependent Projects
Demo

Removing Active Selection When Clicking on Empty Area

Diff Detail

Event Timeline

Aqib Maqbool (aqib) edited the summary of this revision. (Show Details)May 9 2019, 2:58 PM
Aqib Maqbool (aqib) edited the summary of this revision. (Show Details)
Aqib Maqbool (aqib) edited the summary of this revision. (Show Details)May 9 2019, 3:37 PM

Remove active elem selection when clicking on empty area in Outliner

Abid Maqbool (cto.abid) edited the summary of this revision. (Show Details)May 11 2019, 8:35 AM
Abid Maqbool (cto.abid) edited the summary of this revision. (Show Details)May 11 2019, 9:22 AM
Abid Maqbool (cto.abid) edited the summary of this revision. (Show Details)May 11 2019, 9:26 AM
Abid Maqbool (cto.abid) edited the summary of this revision. (Show Details)

Implement deselection of Active Element when Selected item deselected. e.g. when item is deselected with Shift + Click and is active then it's deselected also de-active