Changeset View
Changeset View
Standalone View
Standalone View
space_view3d_pie_menus/pie_cursor.py
| Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | class Snap_CursorMenu(Menu): | ||||
| 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.snap_selected_to_cursor", text="Selection to Cursor", | pie.operator("view3d.snap_selected_to_cursor", text="Selection to Cursor", | ||||
| icon='CLIPUV_HLT').use_offset = False | icon='CLIPUV_HLT').use_offset = False | ||||
| # 6 - RIGHT | # 6 - RIGHT | ||||
| pie.operator("view3d.snap_selected_to_cursor", | pie.operator("view3d.snap_selected_to_cursor", | ||||
| text="Selection to Cursor (Offset)", icon='CURSOR').use_offset = True | text="Selection to Cursor (Keep Offset)", icon='CURSOR').use_offset = True | ||||
| # 2 - BOTTOM | # 2 - BOTTOM | ||||
| pie.operator("view3d.snap_cursor_selected_to_center1", | pie.operator("view3d.snap_cursor_selected_to_center1", | ||||
| text="Selected & Cursor to Center", icon='ALIGN') | text="Selected & Cursor to Center", icon='ALIGN') | ||||
| # 8 - TOP | # 8 - TOP | ||||
| pie.operator("view3d.snap_cursor_to_center", text="Cursor to Center", icon='CLIPUV_DEHLT') | pie.operator("view3d.snap_cursor_to_center", text="Cursor to Center", icon='CLIPUV_DEHLT') | ||||
| # 7 - TOP - LEFT | # 7 - TOP - LEFT | ||||
| pie.operator("view3d.snap_cursor_to_selected", text="Cursor to Selected", icon='ROTACTIVE') | pie.operator("view3d.snap_cursor_to_selected", text="Cursor to Selected", icon='ROTACTIVE') | ||||
| # 9 - TOP - RIGHT | # 9 - TOP - RIGHT | ||||
| ▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines | |||||