UI: Support for changing all selected items at once
AbandonedPublic

Authored by Campbell Barton (campbellbarton) on May 9 2015, 10:29 AM.
Tags
None
Tokens
"Like" token, awarded by Davd."Like" token, awarded by maxon."Like" token, awarded by bliblubli."Like" token, awarded by Severin."Mountain of Wealth" token, awarded by marcog.

Details

Reviewers
None
Group Reviewers
User Interface
Summary

Support for dragging all selected data values at once (all objects scale for example). Works for objects, bones, sequence-strips.

  • Hold Alt while changing values to enable. (this is to test behavior, it may have to be changed to something else)
  • Supports button types: Number, Checkbox, Enum, (not text buttons).
  • Supports dragging multiple values (vertical drag to choose multiple values).

To get a feel for the patch suggest changing objects transform, draw-options and layers.

Short demo video (no sound)
http://download.blender.org/ftp/ideasman42/pics/drag_sel_all.ogv


Design issues to resolve

These can be handled after inclusion, but should be agreed on by the UI team.

  • Alt+LMB is currently used for simulate MMB for 2 button mice.

    (also removed Alt dragging - undocumented method of further scaling down number-buttons).
  • Some visual indication this feature is being use.
  • Possibly some indication in properties header, eg:

    Scene -> "Some" object

    to ...

    Scene -> "Some" object (+ 5 selected)
  • Ensure some kind of predictable behavior when in local-view or using unlocked layers.

    (probably OR the layer mask of all View3D's in the visible windows areas)
  • Exactly how to enable, as noted already.

Diff Detail

Repository
rB Blender
Branch
temp-ui-drag-allsel
Campbell Barton (campbellbarton) retitled this revision from to UI: Support for changing all selected items at once.May 9 2015, 10:29 AM

Checked this a bit and looks quite good for the early state of things (ignoring the known todos). Not sure about the naming "drag all selected" though. Not really descriptive and could be misunderstood. Esp. don't see what it has to do with dragging? How about "affect all selected"?

rename dragsel -> allsel

Split select allsel into uiAllSelStore

Support for multi-drag and editing-all-selected

Support alt+click editing numbers

The patch is now finished (in that it works with multi-drag now, also support Alt+LMB number button editing).

Alt+Click on enum button now edits all

Sweet! Now, nobody can say the UI gets no love :) Thank you for polishing Blender Campbell !

Talked with @Ton Roosendaal (ton) on this and he's OK to have this committed to master, as first step, (having the feature working on basic level it is now),

Then get exact details sorted out by UI team.

Issues that should be eventually resolved.

  • Some visual indication this feature is being use.
  • Possibly some indication in properties header, eg:

    Scene -> "Some" object

    to ...

    Scene -> "Some" object (+ 5 selected)
  • Ensure some kind of predictable behavior when in local-view or using unlocked layers.

    (probably OR the layer mask of all View3D's in the visible windows areas)
  • Exactly how to enable, as noted already.

Clear operators (Alt R, Alt G, Alt S...) have no XYZ checkboxes.
The only way to reset only one value of an array to 0 is to manually enter the value in properties or to use the reset value to default values operator.

But here, Alt+clicking to enter a 0 value will not reset values of all selected objects to zero.
It will change values of selected objects according to offset between initial value of active object and 0.

It looks like multi-objects ediiting does not work with backspace or ctrl backspace.

Is it possible to make Alt Ctrl Backspace resetting the value for all selected objects ?

I rather agree with Ton here, first commit the code with the basics, then take time to really discuss the best shortcuts. In the meantime, basics are better than nothing and people can make a custom shortcut they like anyway.

Committed to master, closing.