Changeset View
Changeset View
Standalone View
Standalone View
space_view3d_pie_menus/pie_select_menu.py
| Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| pie.operator("object.select_all", text="Invert Selection", | pie.operator("object.select_all", text="Invert Selection", | ||||
| icon='ZOOM_PREVIOUS').action = 'INVERT' | icon='ZOOM_PREVIOUS').action = 'INVERT' | ||||
| # 8 - TOP | # 8 - TOP | ||||
| pie.operator("object.select_all", text="Select All Toggle", | pie.operator("object.select_all", text="Select All Toggle", | ||||
| icon='RENDER_REGION').action = 'TOGGLE' | icon='RENDER_REGION').action = 'TOGGLE' | ||||
| # 7 - TOP - LEFT | # 7 - TOP - LEFT | ||||
| pie.operator("view3d.select_circle", text="Circle Select", icon='BORDER_LASSO') | pie.operator("view3d.select_circle", text="Circle Select", icon='BORDER_LASSO') | ||||
| # 9 - TOP - RIGHT | # 9 - TOP - RIGHT | ||||
| pie.operator("view3d.select_border", text="Border Select", icon='BORDER_RECT') | pie.operator("view3d.select_box", text="Box Select", icon='BORDER_RECT') | ||||
| # 1 - BOTTOM - LEFT | # 1 - BOTTOM - LEFT | ||||
| pie.operator("object.select_camera", text="Select Camera", icon='CAMERA_DATA') | pie.operator("object.select_camera", text="Select Camera", icon='CAMERA_DATA') | ||||
| # 3 - BOTTOM - RIGHT | # 3 - BOTTOM - RIGHT | ||||
| pie.menu("pie.selectionsmore", text="Select Menu", icon='RESTRICT_SELECT_OFF') | pie.menu("pie.selectionsmore", text="Select Menu", icon='RESTRICT_SELECT_OFF') | ||||
| # Pie Selection Edit Mode | # Pie Selection Edit Mode | ||||
| class PieSelectionsEM(Menu): | class PieSelectionsEM(Menu): | ||||
| bl_idname = "pie.selectionsem" | bl_idname = "pie.selectionsem" | ||||
| bl_label = "Pie Selections Edit Mode" | bl_label = "Pie Selections Edit Mode" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| pie = layout.menu_pie() | pie = layout.menu_pie() | ||||
| # 4 - LEFT | # 4 - LEFT | ||||
| pie.operator("view3d.select_border", text="Border Select", | pie.operator("view3d.select_box", text="Box Select", | ||||
| icon='BORDER_RECT') | icon='BORDER_RECT') | ||||
| # 6 - RIGHT | # 6 - RIGHT | ||||
| pie.menu("object.selectloopselection", text="Select Loop Menu", icon='LOOPSEL') | pie.menu("object.selectloopselection", text="Select Loop Menu", icon='LOOPSEL') | ||||
| # 2 - BOTTOM | # 2 - BOTTOM | ||||
| pie.operator("mesh.select_all", text="Select None", | pie.operator("mesh.select_all", text="Select None", | ||||
| icon='RESTRICT_SELECT_ON').action = 'DESELECT' | icon='RESTRICT_SELECT_ON').action = 'DESELECT' | ||||
| # 8 - TOP | # 8 - TOP | ||||
| pie.operator("mesh.select_all", text="Select All", | pie.operator("mesh.select_all", text="Select All", | ||||
| ▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines | |||||