Creates a user-customizable menu
Build your easy-to-use and accessible menu by userself.
Download
Documents
Customize Menu Editor【Documents】 – 忘却まとめ
It is possible to automatically translate to English using the translation function on the site.
Link
How to use
First menu state.
1. Add menu
When you press the + button on the upper left, the " Set Just Before History " button is added.
2. Menu registration
“Set Just Before History” by clicking the button, you can register the operation which was executed immediately before the menu.
In the example, I registered after running “Primitive Monkey Add” .
By default, the code type is command , and you can make detailed options of operators and properties into buttons.
3. Edit details
Menu for creating and adjusting menus
To edit detailed settings, enable “ Edit Mode ” and open the detailed setting menu.
You can switch the active menu with the “.” button at the bottom left.
After creating the menu , save the user settings with the " Save " button.
4. Completed menu
Created menu
Export menu as add-on
↑ Exported add-on menu
You can save the created menu as an add-on in a .py file.
It is available as an add-on independent from the Customize Menu Editor add-on.
Option
- Export as add-on
- Export to a text block in Blender
- Copy only menu script to clipboard
Export/Import
You can export/import the menu to a text file.
You can back up the menu or move it to another environment.
Available code layout elements
For command operator menu properties, each code must be in a fixed form.
If you register from “Register previous history”, it will be automatically formatted according to the type.
Type | Explanation |
---|---|
command | The code will be a button that can be executed as an operator. You can change the operator’s detailed options and properties as it is. When you register with “Register previous history”, the name for display will be generated based on the code below. Must be in a form like bpy.xxx.xxx() bpy.xxx.xxx.xxx = True |
operator | Operator can be a button Operator can be a button without registering detailed options The name for display is the name of the operator It must be in the following format xxx.xxx |
Property | Create a menu of property you can set in the menu that can be switched or adjusted in the form such as the following must bpy.xxx.xxx |
menu |
You can register the context menu It must be in the following form CLASSNAME_MT_xxx |
label | Create text |
separator |
Insert a blank You can adjust the size with factor |
Layout
You can change the menu display to vertically or horizontally.
If “Follow the layout above” option is off, stop following the previous layout element.
Layout | Explanation |
---|---|
text | You can change the display name of the menu item, leaving the text empty will display the icon only |
icon | You can change the icon of the menu item. You can set it by selecting the icon built into Blender from the icon setting menu. |
row | Horizontally row = layout.row (align = True) |
col | Vertically col = layout.column(align=True) |
box | Enclose in a box box = layout.box() |
split | Split into two horizontally sp = layout.split(align=True,factor=0.9) |
Icon setting menu
Layout options
Layout | Explanation |
---|---|
scale_x / scale_y | Change the horizontal/vertical size |
alignment | Align left/center/right |
alert | Red warning |
emboss | Turn off emboss |
active | Display dark |
Tabbed
You can divide the menu into multiple tabs.
Tabs can be added and renamed by the user.
menu
- 3D view → Sidebar (N key) → Tools → Customize Menu
You can change the location of the added tabs other than “Tools”.