Post #4874: Thank you for trying out my method.
📋 Metadata
- Author: Pluglug
- Date: 2023-11-06 17:03:53
- Type:
answer - Quality Score: 8/10
- Reply to: post_04873
- Replies (1): post_04875
🏷️ Tags
popup-dialog scripting intermediate unsolved
⚙️ Related PME Features
- Interactive Panels
- Popup Dialog Editor
- Python Scripting
- Overlay function
- PME Settings
💬 Content
Thank you for trying out my method.
Let me explain about Interactive Panels.
Blender assigns unique IDs to various locations where menus can be displayed. By using the Interactive Panels feature provided by PME (Pie Menu Editor), you can easily obtain these IDs and create menus in those specific locations.
Please refer to the video where I have explained how to locate this feature. Take note that when you add a menu to a chosen location, a Popup dialog with the menu ID as its name is created. Additionally, it’s important to remember that PME only allows for the creation of one menu per menu ID. Attempting to duplicate this can lead to errors, so please be cautious.
I will answer your additional questions.
Displaying a message when CFA is on is a great idea. It’s true that icons created by Interactive Panels can sometimes be overlooked. In this case, displaying a message through a text overlay in the 3D Viewport would be advisable. However, the overlay function provided by PME is temporary and cannot be displayed at all times.
Please try entering the following code into the command tab and executing it to see for yourself. If you need to change the display position, you can adjust it in PME Settings or by passing arguments to the overlay function.
overlay("Hello PME")
Did you notice the fade out? Thus, with my current knowledge, I can’t provide a method for constant display. However, there must be a way, and more importantly, it’s a useful idea. I will research and hope to introduce it someday. (If anyone knows how, please share.)
Regarding your interest in adding the Edit Mode’s transform field to a menu, are you looking to access the information from N panel’s Item > Transform? Or do you want to be able to execute transform operators? Please tell me more about your situation.
Since you mentioned wanting to create a convenient menu, I will (proudly) share my own creation for your reference.
The Shading Pie consolidates shader type switching, menu display according to the shader type, and camera manipulation into one.
The Transform Preset is a set of presets for transform orientation and pivot point. It’s very handy as it also allows for toggling snap and proportional editing.
❤️ 1 likes
image1257×874 175 KB
image794×574 71.4 KB