Dev:Source/UI/Pie Menus

提供: wiki
< Dev:Source‎ | UI
移動先: 案内検索

Coding Pie Menus In Python

There are a few ways to create pie menus currently.

One is to define a subclass of menu in python and use the context.window_manager.call_pie_menu operator

The other one is to use the context.window_manager.popup_menu_pie function. For an example of how to do this check WM_OT_context_pie_enum in blender/release/scripts/startup/bl_operators.

There is also a pie menu template available in the text editor.

Nested layouts (a column layout as a radial item for instance) are possible in this iteration of pie menus but are experimental and not all widgets and layouts have been tested. Items in such sublayouts will not use radial/directional interaction style. User will need to hover over those buttons directly to activate them.