diff options
author | meta-androcto <meta.androcto1@gmail.com> | 2017-03-19 07:27:10 +0300 |
---|---|---|
committer | meta-androcto <meta.androcto1@gmail.com> | 2017-03-19 07:27:10 +0300 |
commit | e702810f3734d8f35b29843cfb44956f125d0da7 (patch) | |
tree | 043423880fc9d1aff39ac55cf0eb0144780980ee /space_view3d_pie_menus | |
parent | 6e2403042b62356691894c6fa671f7233e93d399 (diff) |
Update 3d Viewport pie menus: T50732
Diffstat (limited to 'space_view3d_pie_menus')
-rw-r--r-- | space_view3d_pie_menus/__init__.py | 3 | ||||
-rw-r--r-- | space_view3d_pie_menus/pie_align_menu.py | 8 | ||||
-rw-r--r-- | space_view3d_pie_menus/pie_animation_menu.py | 4 | ||||
-rw-r--r-- | space_view3d_pie_menus/pie_apply_transform_menu.py | 33 | ||||
-rw-r--r-- | space_view3d_pie_menus/pie_editor_switch_menu.py | 43 | ||||
-rw-r--r-- | space_view3d_pie_menus/pie_modes_menu.py | 2 | ||||
-rw-r--r-- | space_view3d_pie_menus/pie_save_open_menu.py | 4 | ||||
-rw-r--r-- | space_view3d_pie_menus/pie_sculpt_menu.py | 77 | ||||
-rw-r--r-- | space_view3d_pie_menus/pie_select_menu.py | 6 | ||||
-rw-r--r-- | space_view3d_pie_menus/pie_views_numpad_menu.py | 18 |
10 files changed, 85 insertions, 113 deletions
diff --git a/space_view3d_pie_menus/__init__.py b/space_view3d_pie_menus/__init__.py index 1c3bb34e..101d7426 100644 --- a/space_view3d_pie_menus/__init__.py +++ b/space_view3d_pie_menus/__init__.py @@ -47,7 +47,8 @@ sub_modules_names = ( "pie_modes_menu", "pie_views_numpad_menu", "pie_sculpt_menu", - "pie_origin_cursor", + "pie_origin", + "pie_cursor", "pie_manipulator_menu", "pie_snap_menu", "pie_orientation_menu", diff --git a/space_view3d_pie_menus/pie_align_menu.py b/space_view3d_pie_menus/pie_align_menu.py index a743c2c3..94b0e1cf 100644 --- a/space_view3d_pie_menus/pie_align_menu.py +++ b/space_view3d_pie_menus/pie_align_menu.py @@ -60,6 +60,8 @@ class PieAlign(Menu): # 9 - TOP - RIGHT pie.operator("align.2z0", text="Align To Z-0") # 1 - BOTTOM - LEFT + pie.separator() + # 3 - BOTTOM - RIGHT # pie.menu("align.xyz") box = pie.split().box().column() row = box.row(align=True) @@ -74,12 +76,6 @@ class PieAlign(Menu): row.label("Z") row.operator("alignz.bottom", text="Neg") row.operator("alignz.top", text="Pos") - # 3 - BOTTOM - RIGHT -# box = pie.split().column() -# row = box.row(align=True) -# box.operator("mesh.vertex_align", icon='ALIGN', text="Align") -# box.operator("retopo.space", icon='ALIGN', text="Distribute") -# box.operator("mesh.vertex_inline", icon='ALIGN', text="Align & Distribute") # Align X diff --git a/space_view3d_pie_menus/pie_animation_menu.py b/space_view3d_pie_menus/pie_animation_menu.py index 9c2b6042..7f7a3684 100644 --- a/space_view3d_pie_menus/pie_animation_menu.py +++ b/space_view3d_pie_menus/pie_animation_menu.py @@ -62,9 +62,9 @@ class PieAnimation(Menu): # 9 - TOP - RIGHT pie.operator("screen.keyframe_jump", text="Next FR", icon='NEXT_KEYFRAME').next = True # 1 - BOTTOM - LEFT - pie.operator("insert.autokeyframe", text="Auto Keyframe ", icon='REC') + pie.operator("insert.autokeyframe", text="Auto Keyframe", icon='REC') # 3 - BOTTOM - RIGHT - pie.menu("VIEW3D_MT_object_animation", icon="CLIP") + pie.menu("VIEW3D_MT_object_animation", text="Keyframe Menu", icon="KEYINGSET") # Insert Auto Keyframe diff --git a/space_view3d_pie_menus/pie_apply_transform_menu.py b/space_view3d_pie_menus/pie_apply_transform_menu.py index a3f9e519..802de3d6 100644 --- a/space_view3d_pie_menus/pie_apply_transform_menu.py +++ b/space_view3d_pie_menus/pie_apply_transform_menu.py @@ -51,7 +51,7 @@ class PieApplyTransforms(Menu): # 6 - RIGHT pie.operator("clear.all", text="Clear All", icon='MANIPUL') # 2 - BOTTOM - pie.menu("applymore.menu", text="More") + pie.operator("object.duplicates_make_real", text="Make Duplicates Real") # 8 - TOP pie.operator("apply.transformrotation", text="Rotation", icon='MAN_ROT') # 7 - TOP - LEFT @@ -59,9 +59,9 @@ class PieApplyTransforms(Menu): # 9 - TOP - RIGHT pie.operator("apply.transformscale", text="Scale", icon='MAN_SCALE') # 1 - BOTTOM - LEFT - pie.operator("apply.transformrotationscale", text="Rotation/Scale") + pie.operator("object.visual_transform_apply", text="Visual Transforms") # 3 - BOTTOM - RIGHT - pie.menu("clear.menu", text="Clear Transforms") + pie.menu("clear.menu", text="Clear Transform Menu") # Apply Transforms @@ -102,22 +102,9 @@ class ApplyTransformScale(Operator): bpy.ops.object.transform_apply(location=False, rotation=False, scale=True) return {'FINISHED'} -# Apply Transforms - - -class ApplyTransformRotationScale(Operator): - bl_idname = "apply.transformrotationscale" - bl_label = "Apply Transform Rotation Scale" - bl_description = "Apply Transform Rotation Scale" - bl_options = {'REGISTER', 'UNDO'} - - def execute(self, context): - bpy.ops.object.transform_apply(location=False, rotation=True, scale=True) - return {'FINISHED'} # Apply Transforms - class ApplyTransformAll(Operator): bl_idname = "apply.transformall" bl_label = "Apply All Transforms" @@ -128,18 +115,6 @@ class ApplyTransformAll(Operator): bpy.ops.object.transform_apply(location=True, rotation=True, scale=True) return {'FINISHED'} -# More Menu - - -class TransformApplyMore(Menu): - bl_idname = "applymore.menu" - bl_label = "More Menu" - - def draw(self, context): - layout = self.layout - layout.operator("object.visual_transform_apply", text="Visual Transforms") - layout.operator("object.duplicates_make_real", text="Make Duplicates Real") - # Clear Menu @@ -174,11 +149,9 @@ classes = ( ApplyTransformLocation, ApplyTransformRotation, ApplyTransformScale, - ApplyTransformRotationScale, ApplyTransformAll, ClearMenu, ClearAll, - TransformApplyMore, ) addon_keymaps = [] diff --git a/space_view3d_pie_menus/pie_editor_switch_menu.py b/space_view3d_pie_menus/pie_editor_switch_menu.py index 2f206bf4..710c8fe1 100644 --- a/space_view3d_pie_menus/pie_editor_switch_menu.py +++ b/space_view3d_pie_menus/pie_editor_switch_menu.py @@ -65,22 +65,24 @@ class AreaPieEditor(Menu): bl_label = "Editor Switch" def draw(self, context): + layout = self.layout + pie = layout.menu_pie() # 4 - LEFT - self.layout.menu_pie().operator(SetAreaType.bl_idname, text="Text Editor", icon="TEXT").type = "TEXT_EDITOR" + pie.operator(SetAreaType.bl_idname, text="Text Editor", icon="TEXT").type = "TEXT_EDITOR" # 6 - RIGHT - self.layout.menu_pie().operator(SetAreaType.bl_idname, text="Outliner", icon="OOPS").type = "OUTLINER" + pie.menu(AreaTypePieAnim.bl_idname, text="Animation Editors", icon="ACTION") # 2 - BOTTOM - self.layout.menu_pie().operator("wm.call_menu_pie", text="More Types", icon="QUESTION").name = AreaTypePieOther.bl_idname + pie.operator(SetAreaType.bl_idname, text="Property", icon="BUTS").type = "PROPERTIES" # 8 - TOP - self.layout.menu_pie().operator(SetAreaType.bl_idname, text="3D View", icon="MESH_CUBE").type = "VIEW_3D" + pie.operator(SetAreaType.bl_idname, text="3D View", icon="MESH_CUBE").type = "VIEW_3D" # 7 - TOP - LEFT - self.layout.menu_pie().operator(SetAreaType.bl_idname, text="UV/Image Editor", icon="IMAGE_COL").type = "IMAGE_EDITOR" + pie.operator(SetAreaType.bl_idname, text="UV/Image Editor", icon="IMAGE_COL").type = "IMAGE_EDITOR" # 9 - TOP - RIGHT - self.layout.menu_pie().operator(SetAreaType.bl_idname, text="Node Editor", icon="NODETREE").type = "NODE_EDITOR" + pie.operator(SetAreaType.bl_idname, text="Node Editor", icon="NODETREE").type = "NODE_EDITOR" # 1 - BOTTOM - LEFT - self.layout.menu_pie().operator("wm.call_menu_pie", text="Animation Pie", icon="ACTION").name = AreaTypePieAnim.bl_idname + pie.operator(SetAreaType.bl_idname, text="Outliner", icon="OOPS").type = "OUTLINER" # 3 - BOTTOM - RIGHT - self.layout.menu_pie().operator(SetAreaType.bl_idname, text="Property", icon="BUTS").type = "PROPERTIES" + pie.menu(AreaTypePieOther.bl_idname, text="More Editors", icon="QUESTION") class AreaTypePieOther(Menu): @@ -90,17 +92,16 @@ class AreaTypePieOther(Menu): def draw(self, context): # 4 - LEFT - self.layout.menu_pie().operator(SetAreaType.bl_idname, text="Logic Editor", icon="LOGIC").type = "LOGIC_EDITOR" + self.layout.operator(SetAreaType.bl_idname, text="Logic Editor", icon="LOGIC").type = "LOGIC_EDITOR" # 6 - RIGHT - self.layout.menu_pie().operator(SetAreaType.bl_idname, text="File Browser", icon="FILESEL").type = "FILE_BROWSER" + self.layout.operator(SetAreaType.bl_idname, text="File Browser", icon="FILESEL").type = "FILE_BROWSER" # 2 - BOTTOM - self.layout.menu_pie().operator(SetAreaType.bl_idname, text="Python Console", icon="CONSOLE").type = "CONSOLE" + self.layout.operator(SetAreaType.bl_idname, text="Python Console", icon="CONSOLE").type = "CONSOLE" # 8 - TOP - self.layout.menu_pie().operator("wm.call_menu_pie", text="Back", icon="BACK").name = AreaPieEditor.bl_idname # 7 - TOP - LEFT - self.layout.menu_pie().operator(SetAreaType.bl_idname, text="User Setting", icon="PREFERENCES").type = "USER_PREFERENCES" + self.layout.operator(SetAreaType.bl_idname, text="User Setting", icon="PREFERENCES").type = "USER_PREFERENCES" # 9 - TOP - RIGHT - self.layout.menu_pie().operator(SetAreaType.bl_idname, text="Info", icon="INFO").type = "INFO" + self.layout.operator(SetAreaType.bl_idname, text="Info", icon="INFO").type = "INFO" # 1 - BOTTOM - LEFT # 3 - BOTTOM - RIGHT @@ -125,19 +126,19 @@ class AreaTypePieAnim(Menu): def draw(self, context): # 4 - LEFT - self.layout.menu_pie().operator(SetAreaType.bl_idname, text="NLA Editor", icon="NLA").type = "NLA_EDITOR" + self.layout.operator(SetAreaType.bl_idname, text="NLA Editor", icon="NLA").type = "NLA_EDITOR" # 6 - RIGHT - self.layout.menu_pie().operator(SetAreaType.bl_idname, text="DopeSheet", icon="ACTION").type = "DOPESHEET_EDITOR" + self.layout.operator(SetAreaType.bl_idname, text="DopeSheet", icon="ACTION").type = "DOPESHEET_EDITOR" # 2 - BOTTOM - self.layout.menu_pie().operator(SetAreaType.bl_idname, text="Graph Editor", icon="IPO").type = "GRAPH_EDITOR" + self.layout.operator(SetAreaType.bl_idname, text="Graph Editor", icon="IPO").type = "GRAPH_EDITOR" # 8 - TOP - self.layout.menu_pie().operator(SetAreaType.bl_idname, text="Timeline", icon="TIME").type = "TIMELINE" + self.layout.operator(SetAreaType.bl_idname, text="Timeline", icon="TIME").type = "TIMELINE" # 7 - TOP - LEFT - self.layout.menu_pie().operator(SetAreaType.bl_idname, text="Video Sequence Editor", icon="SEQUENCE").type = "SEQUENCE_EDITOR" + self.layout.operator(SetAreaType.bl_idname, text="Video Sequence Editor", icon="SEQUENCE").type = "SEQUENCE_EDITOR" # 9 - TOP - RIGHT - self.layout.menu_pie().operator(SetAreaType.bl_idname, text="Video Clip Editor", icon="RENDER_ANIMATION").type = "CLIP_EDITOR" + self.layout.operator(SetAreaType.bl_idname, text="Video Clip Editor", icon="RENDER_ANIMATION").type = "CLIP_EDITOR" # 1 - BOTTOM - LEFT - self.layout.menu_pie().operator("wm.call_menu_pie", text="Back", icon="BACK").name = PieEditor.bl_idname + self.layout.operator("wm.call_menu_pie", text="Back", icon="BACK").name = PieEditor.bl_idname # 3 - BOTTOM - RIGHT classes = ( diff --git a/space_view3d_pie_menus/pie_modes_menu.py b/space_view3d_pie_menus/pie_modes_menu.py index 2ac1180a..bfdc981a 100644 --- a/space_view3d_pie_menus/pie_modes_menu.py +++ b/space_view3d_pie_menus/pie_modes_menu.py @@ -302,7 +302,7 @@ class PieObjectEditMode(Menu): # 6 - RIGHT pie.operator("class.pietexturepaint", text="Texture Paint", icon='TPAINT_HLT') # 2 - BOTTOM - pie.menu("menu.objecteditmodeothermodes", text="Edit Modes", icon='EDITMODE_HLT') + pie.menu("menu.objecteditmodeothermodes", text="Vert,Edge,Face Modes", icon='EDITMODE_HLT') # 8 - TOP pie.operator("class.object", text="Edit/Object Toggle", icon='OBJECT_DATAMODE') # 7 - TOP - LEFT diff --git a/space_view3d_pie_menus/pie_save_open_menu.py b/space_view3d_pie_menus/pie_save_open_menu.py index 2b8e4e87..0a43eb2b 100644 --- a/space_view3d_pie_menus/pie_save_open_menu.py +++ b/space_view3d_pie_menus/pie_save_open_menu.py @@ -50,7 +50,7 @@ class PieSaveOpen(Menu): # 6 - RIGHT pie.menu("pie.link", text="Link", icon='LINK_BLEND') # 2 - BOTTOM - pie.menu("pie.fileio", text="Import/Export", icon='IMPORT') + pie.menu("pie.fileio", text="Import/Export Menu", icon='IMPORT') # 8 - TOP pie.operator("file.save_incremental", text="Incremental Save", icon='SAVE_COPY') # 7 - TOP - LEFT @@ -60,7 +60,7 @@ class PieSaveOpen(Menu): # 1 - BOTTOM - LEFT pie.operator("wm.open_mainfile", text="Open file", icon='FILE_FOLDER') # 3 - BOTTOM - RIGHT - pie.menu("pie.recover", text="Recovery", icon='RECOVER_LAST') + pie.menu("pie.recover", text="Recovery Menu", icon='RECOVER_LAST') class pie_link(Menu): diff --git a/space_view3d_pie_menus/pie_sculpt_menu.py b/space_view3d_pie_menus/pie_sculpt_menu.py index 990503e2..bebbc71e 100644 --- a/space_view3d_pie_menus/pie_sculpt_menu.py +++ b/space_view3d_pie_menus/pie_sculpt_menu.py @@ -19,12 +19,12 @@ # <pep8 compliant> bl_info = { - "name": "Hotkey: 'W' & 'Alt W'", - "description": "Sculpt Mode & Brush Menu", + "name": "Hotkey: 'W'", + "description": "Sculpt Brush Menu", # "author": "pitiwazou, meta-androcto", # "version": (0, 1, 0), "blender": (2, 77, 0), - "location": "W key & Alt W key", + "location": "W key", "warning": "", "wiki_url": "", "category": "Sculpt Pie" @@ -62,21 +62,21 @@ class PieSculptPie(Menu): # 4 - LEFT pie.operator("paint.brush_select", text="Crease", icon='BRUSH_CREASE').sculpt_tool = 'CREASE' # 6 - RIGHT - pie.operator("paint.brush_select", text="Clay", icon='BRUSH_CLAY').sculpt_tool = 'CLAY' + pie.operator("paint.brush_select", text='Blob', icon='BRUSH_BLOB').sculpt_tool = 'BLOB' # 2 - BOTTOM - pie.operator("wm.call_menu_pie", text="More Brushes", icon='LINE_DATA').name = "pie.sculpttwo" + pie.menu(PieSculpttwo.bl_idname, text="More Brushes", icon='BRUSH_SMOOTH') # 8 - TOP - pie.operator("paint.brush_select", text='Brush', icon='BRUSH_SCULPT_DRAW').sculpt_tool = 'DRAW' + pie.operator("sculpt.sculptraw", text='SculptDraw', icon='BRUSH_SCULPT_DRAW') # 7 - TOP - LEFT - pie.operator("paint.brush_select", text='Inflate/Deflate', icon='BRUSH_INFLATE').sculpt_tool = 'INFLATE' + pie.operator("paint.brush_select", text="Clay", icon='BRUSH_CLAY').sculpt_tool = 'CLAY' # 9 - TOP - RIGHT - pie.operator("paint.brush_select", text='Grab', icon='BRUSH_GRAB').sculpt_tool = 'GRAB' + pie.operator("paint.brush_select", text='Claystrips', icon='BRUSH_CLAY_STRIPS').sculpt_tool = 'CLAY_STRIPS' # 1 - BOTTOM - LEFT - pie.operator("paint.brush_select", text='Simplify', icon='BRUSH_DATA').sculpt_tool = 'SIMPLIFY' + pie.operator("paint.brush_select", text='Inflate/Deflate', icon='BRUSH_INFLATE').sculpt_tool = 'INFLATE' # 3 - BOTTOM - RIGHT - pie.operator("paint.brush_select", text='Flatten', icon='BRUSH_FLATTEN').sculpt_tool = 'FLATTEN' + pie.menu(PieSculptthree.bl_idname, text="Grab Brushes", icon='BRUSH_GRAB') -# Pie Sculp Pie Menus 2 - W +# Pie Sculpt 2 class PieSculpttwo(Menu): @@ -84,38 +84,39 @@ class PieSculpttwo(Menu): bl_label = "Pie Sculpt 2" def draw(self, context): + layout = self.layout - pie = layout.menu_pie() - # 4 - LEFT - pie.operator("paint.brush_select", text='Claystrips', icon='BRUSH_CREASE').sculpt_tool = 'CLAY_STRIPS' - # 6 - RIGHT - pie.operator("paint.brush_select", text='Blob', icon='BRUSH_BLOB').sculpt_tool = 'BLOB' - # 2 - BOTTOM - pie.separator() - # 8 - TOP - pie.operator("paint.brush_select", text='Smooth', icon='BRUSH_SMOOTH').sculpt_tool = 'SMOOTH' - # 7 - TOP - LEFT - pie.operator("paint.brush_select", text='Pinch/Magnify', icon='BRUSH_PINCH').sculpt_tool = 'PINCH' - # 9 - TOP - RIGHT - pie.operator("paint.brush_select", text='Snakehook', icon='BRUSH_SNAKE_HOOK').sculpt_tool = 'SNAKE_HOOK' - # 1 - BOTTOM - LEFT - box = pie.split().column() - row = box.row(align=True) - box.operator("paint.brush_select", text='Twist', icon='BRUSH_ROTATE').sculpt_tool = 'ROTATE' - box.operator("paint.brush_select", text='Scrape/Peaks', icon='BRUSH_SCRAPE').sculpt_tool = 'SCRAPE' - box.operator("sculpt.sculptraw", text='SculptDraw', icon='BRUSH_SCULPT_DRAW') - box.operator("paint.brush_select", text='Mask', icon='BRUSH_MASK').sculpt_tool = 'MASK' - # 3 - BOTTOM - RIGHT - box = pie.split().column() - row = box.row(align=True) - box.operator("paint.brush_select", text='Layer', icon='BRUSH_LAYER').sculpt_tool = 'LAYER' - box.operator("paint.brush_select", text='Nudge', icon='BRUSH_NUDGE').sculpt_tool = 'NUDGE' - box.operator("paint.brush_select", text='Thumb', icon='BRUSH_THUMB').sculpt_tool = 'THUMB' - box.operator("paint.brush_select", text='Fill/Deepen', icon='BRUSH_FILL').sculpt_tool = 'FILL' + layout.operator("paint.brush_select", text='Smooth', icon='BRUSH_SMOOTH').sculpt_tool = 'SMOOTH' + layout.operator("paint.brush_select", text='Flatten', icon='BRUSH_FLATTEN').sculpt_tool = 'FLATTEN' + layout.operator("paint.brush_select", text='Scrape/Peaks', icon='BRUSH_SCRAPE').sculpt_tool = 'SCRAPE' + layout.operator("paint.brush_select", text='Fill/Deepen', icon='BRUSH_FILL').sculpt_tool = 'FILL' + layout.operator("paint.brush_select", text='Pinch/Magnify', icon='BRUSH_PINCH').sculpt_tool = 'PINCH' + layout.operator("paint.brush_select", text='Layer', icon='BRUSH_LAYER').sculpt_tool = 'LAYER' + layout.operator("paint.brush_select", text='Mask', icon='BRUSH_MASK').sculpt_tool = 'MASK' + layout.operator("paint.brush_select", text='Simplify', icon='BRUSH_DATA').sculpt_tool = 'SIMPLIFY' + + +# Pie Sculpt Three + + +class PieSculptthree(Menu): + bl_idname = "pie.sculptthree" + bl_label = "Pie Sculpt 3" + + def draw(self, context): + + layout = self.layout + layout.operator("paint.brush_select", text='Grab', icon='BRUSH_GRAB').sculpt_tool = 'GRAB' + layout.operator("paint.brush_select", text='Nudge', icon='BRUSH_NUDGE').sculpt_tool = 'NUDGE' + layout.operator("paint.brush_select", text='Thumb', icon='BRUSH_THUMB').sculpt_tool = 'THUMB' + layout.operator("paint.brush_select", text='Snakehook', icon='BRUSH_SNAKE_HOOK').sculpt_tool = 'SNAKE_HOOK' + layout.operator("paint.brush_select", text='Twist', icon='BRUSH_ROTATE').sculpt_tool = 'ROTATE' + classes = ( PieSculptPie, PieSculpttwo, + PieSculptthree, SculptSculptDraw, ) diff --git a/space_view3d_pie_menus/pie_select_menu.py b/space_view3d_pie_menus/pie_select_menu.py index b837b2aa..95a12046 100644 --- a/space_view3d_pie_menus/pie_select_menu.py +++ b/space_view3d_pie_menus/pie_select_menu.py @@ -64,7 +64,7 @@ class PieSelectionsOM(Menu): layout = self.layout pie = layout.menu_pie() # 4 - LEFT - pie.operator("object.select_by_layer", text="Select By Layer", icon='GROUP_VERTEX') + pie.operator("object.select_by_layer", text="Select By Layer", icon='LAYER_ACTIVE') # 6 - RIGHT pie.operator("object.select_random", text="Select Random", icon='GROUP_VERTEX') # 2 - BOTTOM @@ -78,7 +78,7 @@ class PieSelectionsOM(Menu): # 1 - BOTTOM - LEFT pie.operator("object.select_camera", text="Select Camera", icon='CAMERA_DATA') # 3 - BOTTOM - RIGHT - pie.menu("pie.selectionsmore", text="Select More", icon='GROUP_VERTEX') + pie.menu("pie.selectionsmore", text="Select Menu", icon='RESTRICT_SELECT_OFF') # Pie Selection Edit Mode @@ -109,7 +109,7 @@ class PieSelectionsEM(Menu): box.operator("mesh.loop_to_region", text="Select Loop Inner Region", icon='FACESEL') box.operator("mesh.select_similar", text="Select Similar", icon='GHOST') # 3 - BOTTOM - RIGHT - pie.menu("object.selectallbyselection", text="Multi Select", icon='RENDER_REGION') + pie.menu("object.selectallbyselection", text="Multi Select Menu", icon='RENDER_REGION') # Select All By Selection diff --git a/space_view3d_pie_menus/pie_views_numpad_menu.py b/space_view3d_pie_menus/pie_views_numpad_menu.py index fe2b8258..a176258a 100644 --- a/space_view3d_pie_menus/pie_views_numpad_menu.py +++ b/space_view3d_pie_menus/pie_views_numpad_menu.py @@ -82,21 +82,21 @@ class PieViewallSelGlobEtc(Menu): def draw(self, context): layout = self.layout - pie = layout.menu_pie() + # 4 - LEFT - pie.operator("view3d.view_all", text="View All").center = True + layout.operator("view3d.view_all", text="View All").center = True # 6 - RIGHT - pie.operator("view3d.view_selected", text="View Selected") + layout.operator("view3d.view_selected", text="View Selected") # 2 - BOTTOM - pie.operator("view3d.view_persportho", text="Persp/Ortho", icon='RESTRICT_VIEW_OFF') + layout.operator("view3d.view_persportho", text="Persp/Ortho", icon='RESTRICT_VIEW_OFF') # 8 - TOP - pie.operator("view3d.localview", text="Local/Global") + layout.operator("view3d.localview", text="Local/Global") # 7 - TOP - LEFT - pie.operator("screen.region_quadview", text="Toggle Quad View", icon='SPLITSCREEN') + layout.operator("screen.region_quadview", text="Toggle Quad View", icon='SPLITSCREEN') # 1 - BOTTOM - LEFT - pie.operator("wm.call_menu_pie", text="Previous Menu", icon='BACK').name = "pie.viewnumpad" + layout.operator("wm.call_menu_pie", text="Previous Menu", icon='BACK').name = "pie.viewnumpad" # 9 - TOP - RIGHT - pie.operator("screen.screen_full_area", text="Full Screen", icon='FULLSCREEN_ENTER') + layout.operator("screen.screen_full_area", text="Full Screen", icon='FULLSCREEN_ENTER') # 3 - BOTTOM - RIGHT # Pie views numpad - Q @@ -149,7 +149,7 @@ class PieViewNumpad(Menu): row = box.row(align=True) row.prop(rd, "use_border", text="Border") # 3 - BOTTOM - RIGHT - pie.operator("wm.call_menu_pie", text="View All Pie", icon='BBOX').name = "pie.vieallselglobetc" + pie.menu(PieViewallSelGlobEtc.bl_idname, text="View Menu", icon='BBOX') classes = ( PieViewNumpad, |