Page MenuHome

Make All Operators Accessible from Menus
Confirmed, NormalPublicDESIGN

Description

This task proposes all operators should be available in menus.

As of 2.90, the operator search functionality no longer lists all available operators, instead, it expends menus, see T74157: Use menus for operator search & various improvements.

From replies to this task, some users/developers were only accessing operators via search, so scanning menus made some operators un-searchable.

Instead of considering this something to be fixed, this task proposes that operators which users may want to access from search, also be included in menus.

Notes
  • Popovers could be included in the menu search as well.

Exceptions
  • Internal operators (operators with INTERNAL flag set).
  • User interface operators (re-ordering constraints, modifiers for e.g).
  • Some interactive operators which only make sense to activate interactively (SCULPT_OT_brush_stroke).
  • Operators which don't work or don't make sense in the given context (operators from other editors, other modes etc)

Status

There is a utility to report operators not yet exposed by menu search.

This can be generated using: ./source/tools/utils_maintenance/blender_menu_search_coverage.py

This paste shows it's output at the time of writing P1618

Related Objects

StatusSubtypeAssignedTask
ConfirmedDESIGNNone
ArchivedDESIGNWilliam Reynish (billreynish)
ConfirmedDESIGNNone
ConfirmedDESIGNNone

Event Timeline

Campbell Barton (campbellbarton) renamed this task from Include All Operators in Menus to Make All Operators Accessible from Menus.Apr 29 2020, 2:51 PM

Hi.
Can the active tools and brushes (from toolbar) be made searchable too? They are not in the menus, so we can't search them...
I think it would make the search function more powerful and complete...

@TheRedWaxPolice (TheRedWaxPolice) This is not a regression - you could never activate active tools using operator search, nor does it make any sense. An active tool is not a menu item or command. You could also ask why you can't set any property from menu search, but likewise it's outside the scope of what this feature is for.

This is not a regression

Maybe not, but it would be a great improvement for sure...

you could never activate active tools using operator search, nor does it make any sense.

Why not?
Besides making a lot of sense IMO, this is how the search function works in most 3D software. It's very common to search and activate tools from there. I can't see why Blender's search function can't be as equally powerful...

it's outside the scope of what this feature is for.

Sorry then... I guess I just wanted to see some improvements in this area...

Cheers..

It is nice to see this task.

I guess these comments from the previous thread are relevant:

If we could tag menus as searchable/non-searchable, most of those issues would go away. Add-on developers could then use searchable menus that aren't exposed through the UI to register aliases without adding clutter, and tag their convenience menus and pie menus as non-searchable to limit the number of duplicate search entries.

addon developers can only prepend or append to existing menus, meaning all addon operators will be piled up at the beginning or end of menus meaning you will have to scroll well into the middle of the menu before you get to builtin operators. Or developers have to create their own menu, meaning the menu bar will become huge and unmanagable.

And to add to the latter, I think if we are forcing addon developers to put their buttons in menus, it is fair to expect that support for their ability to do so would increase. The ability to look through a built-in menu and add your button specifically before or after an existing button, I think is essential.

Julian Eisel (Severin) changed the subtype of this task from "Report" to "Design".May 18 2020, 5:01 PM

Given that 2.90 is close to being released, I'm assuming this is postponed to 2.91?

I have been following the conversation about the scatter function disappearing from F3 in 2.9 (latest build). There was a reference to this area of discussion in the conversation. Any news on scatter being re-implemented?

Apologies if this is not the correct place to ask this question

Alaska (Alaska) added a comment.EditedSep 3 2020, 6:26 AM

For those experiencing issues with some operators not showing up in the search operator window, try these steps:

  1. From the top of Blender select Edit -> Preferences.
  2. From the list of tabs on the left, select Interface.
  3. Enable the option Developer Extras in the Display section of the .
  4. Save user preferences by clicking on the three horizontal lines in the bottom left and selecting Save Preferences. Now you should be able to find the operator you're looking for in the search operator window F3.

This is just a temporary fix. As this task explains (T76227), almost everything in Blender should be updated so they're accessable in the search operator without adjusting settings. But until then, this is a work around.

To everyone coming here because of the Scatter Objects operator: this has just been added to the menus: rBAdf0fa2341e1a: Fix T80879: add scatter objects operator to object menu