Normally when you make your own pie menu the position of the buttons, whether they are on the east, west or whatever position is defined by the order you call them in the draw function.
import bpy
from bpy.types import Menu, Operator
addon_keymaps = []
class MT_3DCursor(Menu):
# bl_label is displayed at the center of the pie menu
bl_label = '3D Cursor Actions'
bl_idname = 'MT_3DCursor'
def draw(self, context):
layout = self.layout
pie = layout.menu_pie()
# Here should be every function for the pie menu
# Order the lines in different order for different pie order
# Pie order: west, east, south, north, north-west, north-east, south-west, south-east
pie.operator('view3d.snap_cursor_to_selected', icon = 'EVENT_A')
pie.operator('view3d.snap_cursor_to_selected', icon = 'EVENT_B')
pie.operator('view3d.snap_cursor_to_selected', icon = 'EVENT_C')
pie.operator('view3d.snap_cursor_to_selected', icon = 'EVENT_D')
pie.operator('view3d.snap_cursor_to_selected', icon = 'EVENT_E')
pie.operator('view3d.snap_cursor_to_selected', icon = 'EVENT_F')
pie.operator('view3d.snap_cursor_to_selected', icon = 'EVENT_G')
pie.operator('view3d.snap_cursor_to_selected', icon = 'EVENT_H')
class OT_snapCursorToSelected(Operator):
#needs to be lower case and underscores as word separation
bl_idname = 'view3d.snap_cursor_to_selected'
bl_label = 'Snap Cursor to Selected'
bl_description = 'Snap the 3D Cursor to middle of selected item(s)'
def execute(self, context):
# the commands of the functions you want to use
bpy.ops.view3d.snap_cursor_to_selected()
return {'FINISHED'}
classes = (MT_3DCursor,
OT_snapCursorToSelected,
)
def register():
for cls in classes:
bpy.utils.register_class(cls)
def unregister():
for cls in classes:
bpy.utils.unregister_class(cls)
if __name__ == '__main__':
register()
bpy.ops.wm.call_menu_pie(name = 'MT_3DCursor')
But I saw someone having a pie menu having a button only at the north and south position, so you can somehow say where the button should be positioned.
The standard order is like this, west, east, south, north, north-west, north-east, south-west, south-east: