「Dev:Source/UI/Pie Menus」の版間の差分
< Dev:Source | UI
細 (1版 をインポートしました) |
|
(相違点なし)
|
2018年6月29日 (金) 06:09時点における最新版
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.