Quick Favorites: add support for property enums #59244

Open
opened 2018-12-12 15:01:47 +01:00 by Peter Baintner · 56 comments

System Information
Operating system: Windows 10
Graphics card: Nvidia GTX1080

Blender Version
Broken: 2.80, 16fc62e15f, blender2.8, 2018-12-12
Worked: 3d92afca7e

Short description of error
The Set origin menu is not possible to put into quic favourites.
(operator enums like these are now supported, see 04d50f4b23)
Property enums such as Rotation Mode could be supported though

Exact steps for others to reproduce the error
Object Properties -> Transform -> Right click on "Rotation Mode..." -> empty menu.

**System Information** Operating system: Windows 10 Graphics card: Nvidia GTX1080 **Blender Version** Broken: 2.80, 16fc62e15f0, blender2.8, 2018-12-12 Worked: 3d92afca7eb **Short description of error** The Set origin menu is not possible to put into quic favourites. (operator enums like these are now supported, see 04d50f4b239f4b3a27e0ea376803db5680a43f1b) Property enums such as `Rotation Mode` could be supported though **Exact steps for others to reproduce the error** Object Properties -> Transform -> Right click on "Rotation Mode..." -> empty menu.
Author

Added subscriber: @PeterBaintner

Added subscriber: @PeterBaintner

#84552 was marked as duplicate of this issue

#84552 was marked as duplicate of this issue

#83682 was marked as duplicate of this issue

#83682 was marked as duplicate of this issue

#79471 was marked as duplicate of this issue

#79471 was marked as duplicate of this issue

#70486 was marked as duplicate of this issue

#70486 was marked as duplicate of this issue

#69922 was marked as duplicate of this issue

#69922 was marked as duplicate of this issue

#69919 was marked as duplicate of this issue

#69919 was marked as duplicate of this issue

#68094 was marked as duplicate of this issue

#68094 was marked as duplicate of this issue

#66623 was marked as duplicate of this issue

#66623 was marked as duplicate of this issue

#66618 was marked as duplicate of this issue

#66618 was marked as duplicate of this issue

#65113 was marked as duplicate of this issue

#65113 was marked as duplicate of this issue

#64614 was marked as duplicate of this issue

#64614 was marked as duplicate of this issue

#64597 was marked as duplicate of this issue

#64597 was marked as duplicate of this issue

#60290 was marked as duplicate of this issue

#60290 was marked as duplicate of this issue
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Can confirm.

I see two problems here:

  • Right clicking on operator_menu_enum brings up an empty menu.
  • Right clicking on a menu entry while the menu is open, does not open the right-click-menu at all.
Can confirm. I see two problems here: - Right clicking on `operator_menu_enum` brings up an empty menu. - Right clicking on a menu entry while the menu is open, does not open the right-click-menu at all.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Philipp Oeser self-assigned this 2018-12-20 11:45:24 +01:00
Member

This seems to be fixed, no?

Havent hunted down the relating commit, but as of today I am getting the menu (and choosing the entry will add it to the favorites OK)
#59244.png

Closing (but feel free to comment again/reopen if issues persist...)

This seems to be fixed, no? Havent hunted down the relating commit, but as of today I am getting the menu (and choosing the entry will add it to the favorites OK) ![#59244.png](https://archive.blender.org/developer/F6015072/T59244.png) Closing (but feel free to comment again/reopen if issues persist...)
Member

I thought it's about this menu, which does not seem to be fixed yet:

Screenshot from 2018-12-20 11-48-16.png

I thought it's about this menu, which does not seem to be fixed yet: ![Screenshot from 2018-12-20 11-48-16.png](https://archive.blender.org/developer/F6015113/Screenshot_from_2018-12-20_11-48-16.png)
Member

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'
Member

Ah, OK, will check on this, too...

Ah, OK, will check on this, too...
Member

Added subscriber: @Awesome_Vindicator

Added subscriber: @Awesome_Vindicator
Philipp Oeser changed title from Set origin command not possible to put in quick favourites to Quick Favorites: operator/prop enums (e.g. "Set origin") cannot be added 2019-01-08 11:02:18 +01:00

As merged from a report I previously made was relating to a slightly different though closely related issue.

some screenshots;-
blender issue report.jpg

blender issue report 2.jpg

these are missing in 2019-01-11 - 1c7695b848 and all previously downloaded versions.

As merged from a report I previously made was relating to a slightly different though closely related issue. some screenshots;- ![blender issue report.jpg](https://archive.blender.org/developer/F6259988/blender_issue_report.jpg) ![blender issue report 2.jpg](https://archive.blender.org/developer/F6259987/blender_issue_report_2.jpg) these are missing in 2019-01-11 - 1c7695b8483d and all previously downloaded versions.
Member

Added subscribers: @WilliamReynish, @ideasman42, @brecht

Added subscribers: @WilliamReynish, @ideasman42, @brecht
Member

@ideasman42, @WilliamReynish, @brecht: just checking if this would be a priority for 2.80 [also see #59661]?

@ideasman42, @WilliamReynish, @brecht: just checking if this would be a priority for 2.80 [also see #59661]?
Campbell Barton changed title from Quick Favorites: operator/prop enums (e.g. "Set origin") cannot be added to Quick Favorites: add support for operator/prop enums (e.g. "Set origin") 2019-05-09 09:51:09 +02:00

Support for this can be added but this is more of a TODO, added to #63726 (User Interface Module )

Support for this can be added but this is more of a TODO, added to #63726 (User Interface Module )
Member

Added subscriber: @Phigon

Added subscriber: @Phigon
Member

Added subscribers: @DiegoSG, @Gvgeo-1

Added subscribers: @DiegoSG, @Gvgeo-1

Added subscriber: @denis_russkih

Added subscriber: @denis_russkih
Member

Added subscriber: @AndreyRusnak

Added subscriber: @AndreyRusnak
Member

Added subscriber: @MikeP.Sanchez

Added subscriber: @MikeP.Sanchez
Member

Added subscriber: @SethTooQuick

Added subscriber: @SethTooQuick

Super sorry for adding yet another duplicate to this list. I did check for it but I guess not good enough.

Super sorry for adding yet another duplicate to this list. I did check for it but I guess not good enough.
Member

I hear you, hope to get to it soon...

I hear you, hope to get to it soon...

Removed subscriber: @Phigon

Removed subscriber: @Phigon

Added subscriber: @fabman

Added subscriber: @fabman
Member

Added subscriber: @Calra

Added subscriber: @Calra
Member

Hi I would like to contribute towards this I have narrowed down the files to interface_context_menu.c and interface_handlers.c , at least I believe these are to be modified, what I don't understand is when we right-click on any of the options what function is called or is it generic that on right-clicking "Add/remove Quick favorites" will appear ? Like it working for "Transform" and all the others in the Add menu, where should I start looking, any hints or suggestions would be great. Thanks

Hi I would like to contribute towards this I have narrowed down the files to interface_context_menu.c and interface_handlers.c , at least I believe these are to be modified, what I don't understand is when we right-click on any of the options what function is called or is it generic that on right-clicking "Add/remove Quick favorites" will appear ? Like it working for "Transform" and all the others in the Add menu, where should I start looking, any hints or suggestions would be great. Thanks
Member

will get back to you Monday (I am away over the WE)

will get back to you Monday (I am away over the WE)
Member

Hi @lichtwerk could you look into this now ?

Hi @lichtwerk could you look into this now ?
Philipp Oeser removed their assignment 2019-09-02 13:42:26 +02:00
Member

Atm. Quick Favorites only works for:

What we are looking for is a way to handle operator enum menus.
These are just not covered by current design (see above), and quite some stuff need to be added [even then I am not sure if all would work out fine -- this is just quick speculation how this could work]:

  • would probably need something new like bUserMenuItem_OpEnumMenu [next to existing bUserMenuItem_Prop, bUserMenuItem_Menu, bUserMenuItem_Op] that needs to store at least op_idname (maybe more, would needto check more...)
  • incorporate this into ui_but_is_user_menu_compatible (so it doesnt get skipped in ui_popup_context_menu_for_button)
  • (atm. UI_but_menutype_get does this for 'real' menus, would need something like UI_but_openummenu_ok or something like that)
  • (investigation of ui_item_menutype_func vs. menu_item_enum_opname_menu and UI_BTYPE_BUT_MENU vs. UI_BTYPE_PULLDOWN might also help)
  • now onto actual insertion into bUserMenu (!warning! gets even more speculative):
    • happens in popup_user_menu_add_or_replace_func / ui_but_user_menu_add
    • ED_screen_user_menu_item_add_menu does this for 'real' menus, would need something doing this based on the new bUserMenuItem_OpEnumMenu
  • now if that is sucessfully stored bUserMenu
    • add another - new - case in screen_user_menu_draw which correctly generates the menu to click on here
  • also note: above new struct would also need to be taken care of in write_userdef (I assume)

@Calra: this is not the easiest task to pick up, I am still willing to look at this myself (but triaging the tracker unfortunately takes all of my time atm. so help is definitely appreciated)
(please also take all of the above with a grain of salt, there might be other/better ways to do this -- this is just how I had it lying around in my head for a while...)
I will also step down as a assignee from this task (as we moved from assignments to people in favor of having the modules look at the corresponding bugs...)

Atm. Quick Favorites only works for: - rna boolean properties `USER_MENU_TYPE_PROP` - operators `USER_MENU_TYPE_OPERATOR` - and 'real' menus (https://docs.blender.org/api/master/bpy.types.Menu.html) `USER_MENU_TYPE_MENU` What we are looking for is a way to handle operator enum menus. These are just not covered by current design (see above), and quite some stuff need to be added [even then I am not sure if all would work out fine -- this is just quick speculation how this **could** work]: - would probably need something new like `bUserMenuItem_OpEnumMenu` [next to existing `bUserMenuItem_Prop`, `bUserMenuItem_Menu`, `bUserMenuItem_Op`] that needs to store at least op_idname (maybe more, would needto check more...) - incorporate this into `ui_but_is_user_menu_compatible` (so it doesnt get skipped in `ui_popup_context_menu_for_button`) - (atm. `UI_but_menutype_get` does this for 'real' menus, would need something like `UI_but_openummenu_ok` or something like that) - (investigation of ui_item_menutype_func vs. `menu_item_enum_opname_menu` and `UI_BTYPE_BUT_MENU` vs. `UI_BTYPE_PULLDOWN` might also help) - now onto actual insertion into `bUserMenu` (!warning! gets even more speculative): - happens in `popup_user_menu_add_or_replace_func` / `ui_but_user_menu_add` - `ED_screen_user_menu_item_add_menu` does this for 'real' menus, would need something doing this based on the new `bUserMenuItem_OpEnumMenu` - now if that is sucessfully stored bUserMenu - add another - new - case in `screen_user_menu_draw` which correctly generates the menu to click on here - also note: above new struct would also need to be taken care of in `write_userdef` (I assume) @Calra: this is not the easiest task to pick up, I am still willing to look at this myself (but triaging the tracker unfortunately takes all of my time atm. so help is definitely appreciated) (please also take all of the above with a grain of salt, there might be other/better ways to do this -- this is just how I had it lying around in my head for a while...) I will also step down as a assignee from this task (as we moved from assignments to people in favor of having the modules look at the corresponding bugs...)
Member

Thanks @lichtwerk for the input, I will look into it for some time and will let you know if I have any success, from a holistic view I speculated that this and #64365 would be related, as the problem seemed similar. To be honest currently some of the stuff is bouncing off, I can try for some time to implement what you suggested.

Thanks @lichtwerk for the input, I will look into it for some time and will let you know if I have any success, from a holistic view I speculated that this and #64365 would be related, as the problem seemed similar. To be honest currently some of the stuff is bouncing off, I can try for some time to implement what you suggested.
Member

Added subscriber: @3di

Added subscriber: @3di
Member

Added subscriber: @MarcinTwarowski

Added subscriber: @MarcinTwarowski
Member

Removed subscriber: @Calra

Removed subscriber: @Calra
Member

Added subscriber: @HDMaster84

Added subscriber: @HDMaster84

Added subscriber: @DuarteRamos

Added subscriber: @DuarteRamos

My most missed that still don't work as of 2.82 Alpha are the Object > Convert to and Object > Set Origin, most other are apparently working.

My most missed that still don't work as of 2.82 Alpha are the `Object > Convert to` and `Object > Set Origin`, most other are apparently working.
Member

Added subscriber: @sqeee

Added subscriber: @sqeee
Member

Added subscriber: @Dantti

Added subscriber: @Dantti
Member

Added subscriber: @ToxicTuba

Added subscriber: @ToxicTuba
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:26:04 +01:00
Member

Since I am looking at another issue with Quick Favorites anyways, will finally give this another go.

Since I am looking at another issue with Quick Favorites anyways, will finally give this another go.
Philipp Oeser self-assigned this 2023-05-04 10:15:51 +02:00

interesting to see I am signed up for this thread... I have an open suggestion on RightClickSelect about the option to sort quickfavourites, well, I guess now is a good time to mention that :)

interesting to see I am signed up for this thread... I have an open suggestion on RightClickSelect about the option to sort quickfavourites, well, I guess now is a good time to mention that :)
Member

Support for operator enums has been added (see 04d50f4b23), this covers most of what has been reported here.
Support for property enums is on the way (needs bit more work to have it look nicely in a menu at all times).

Support for operator enums has been added (see 04d50f4b23), this covers most of what has been reported here. Support for property enums is on the way (needs bit more work to have it look nicely in a menu at all times).
Member

Discovered I still had this in my backlog of assignments.

Since I am not planning to work on this anymore (the only thing left is property enums afaict?), I will step down to not block others

Discovered I still had this in my backlog of assignments. Since I am not planning to work on this anymore (the only thing left is property enums afaict?), I will step down to not block others
Philipp Oeser changed title from Quick Favorites: add support for operator/prop enums (e.g. "Set origin") to Quick Favorites: add support for property enums 2024-03-27 14:49:11 +01:00
Philipp Oeser removed their assignment 2024-03-27 14:52:08 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
13 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#59244
No description provided.