[Addon] Wazou's RMB Pie Menu

(Pitiwazou) #1


This pie is for me and my workflow, but maybe someone would find it usefull.

The Goal is to have everything I use on the RMB.

You can test my Wouzou’s Pie Menus > http://www.blenderartists.org/forum/showthread.php?348496-Addon-Wazou-s-Pie-Menus

(Pitiwazou) #2

Little Update on my custom RMB Pie Menu

With no Object in the scene :

With Objects :

In Edit Mode :

And to make hole on a selection of vertices :

(riveter) #3

The ‘Hole’ script look interesting. Did you come up with that code?

(Pitiwazou) #4

Here is my code :wink:

bl_info = {
    "name": "Addon Create Hole",
    "author": "Cédric Lepiller",
    "version": (0, 1),
    "blender": (2, 71, 0),
    "location": "View3D > Tools",
    "description": "This Operator create a hole on a selection",
    "warning": "",
    "wiki_url": "",
    "category": "Tools"}
import bpy

#Create Hole
class CreateHole(bpy.types.Operator):                  
    """This Operator create a hole on a selection"""                   
    bl_idname = "object.createhole"                     
    bl_label = "Create Hole"        

    def poll(cls, context):                         
        return context.active_object is not None 

    def execute(self, context):                     
        bpy.ops.transform.resize(value=(0.6, 0.6, 0.6))
        bpy.ops.transform.resize(value=(0.8, 0.8, 0.8))
        return {'FINISHED'} 

#Class Panel
class PanelCreateHole(bpy.types.Panel):
    bl_label = "Create Hole"
    bl_idname = "OBJECT_PT_Create_hole"
    bl_space_type = 'VIEW_3D'
    bl_region_type = 'TOOLS'
    bl_category = "Tools" 

    def draw(self, context):
        layout = self.layout


def register():

def unregister():

if __name__ == "__main__":

(Dito) #5

Hi pitiwazou,

looks really useful.

But I have a error.

Modules Installed from ‘C:\ mp\Wazou_RMB_Pie_Menu.py’ into ‘E:\Blender\2.71\scripts\addons’ (Wazou_RMB_Pie_Menu)
search for unknown operator ‘WM_OT_call_menu_pie’, ‘WM_OT_call_menu_pie’
Exception in module register(): ‘E:\Blender\2.71\scripts\addons\Wazou_RMB_Pie_Menu.py’
Traceback (most recent call last):
File “E:\Blender\2.71\scripts\modules\addon_utils.py”, line 312, in enable mod.register()
File “E:\Blender\2.71\scripts\addons\Wazou_RMB_Pie_Menu.py”, line 566, in register kmi.properties.name = “pie.rightclicmenu”
AttributeError: ‘OperatorProperties’ object has no attribute ‘name’

search for unknown operator ‘WM_OT_call_menu_pie’, ‘WM_OT_call_menu_pie’

Win 7 64Bit
Blender 2.71
Hash 9337574

(Pitiwazou) #6

Have you the last build of blender with pie menus ?
It seams not :wink:

(Dito) #7

Hi pitiwazou,

thanks for your feedback.

The last Blender-Versions give me a Render slow down around 20%.
So I stay with the older version.

(comeinandburn) #8

wow that “hole” functionality is amazing! great work!

(wuren) #9

Need help It looks that “Left mouse is SELECTION.” is not working for me ! Did i miss somethong to make it work ? I am using Blender 2.7.2!

(Pitiwazou) #10

You just have to change the shortcuts on this code, Line 565.

km = wm.keyconfigs.addon.keymaps.new(name = '3D View Generic', space_type = 'VIEW_3D')
kmi = km.keymap_items.new('wm.call_menu_pie', 'RIGHTMOUSE', 'PRESS')
kmi.properties.name = "pie.rightclicmenu" 

For exemple :

kmi = km.keymap_items.new('wm.call_menu_pie', 'LEFTMOUSE', 'PRESS', alt=True, shift=True)

(wuren) #11

Thanks for your reply . I will try it again. This addon is really usefull for me!

(wuren) #12

Sorry pitiwazou, i still need some help.
I follow your advise changed this code, line 565 , but I still can not select vertex, edge or face in edit mode using “left mouse”, just like select vertex edge or face using “right mouse” before i enable this addon! And failed to call “RMB Pie Menu” using “right mouse”
Maybe i still do some mistake.

Big Thanks for tharing this great addon!

(0rAngE) #13


Many thanks on sharing this with all of us!

In my personal experience the stuff pitiwazou has been doing with Pie Menus is the best thing blender has seen in terms of usablility and UI in … forever.
Ofcourse, the credit goes to Psy-Fi for actually giving us the official PieMenus. And to LiquidApe and the guys who helped him bring us the first incarnation of Pies.

Seriously, BF/BI you should take a close look at what he is doing. Best case scenario, you actually get in touch with him and pick his brain!!! Listen to what he’d have to say!

I have one suggestion :slight_smile:
Link to this thread from your other ‘Wazou_Pie_Menus’ thread. And vice versa, so people who don’t follow the forum on a regular basis can actually grab both scripts.

(Pitiwazou) #14

Thx OrAngE, I just see your post ^^

Good idea for the linking :wink:

Little Update of the RMB Pie Menu with the sculpt Pie for Dyntopo.
It’s still in WIP for this part.

You can enable dyntopo, change everything, look the video to see the new pie.

Sorry for my so bad english ^^

If you have some ideas for the sculpt Pie Menu, don’t hesitate :wink:


(raziel_henzo) #15

Very very cool
Please connect the screencast keys

(Pitiwazou) #16

Why do you want the screen cast key ?

Little Update !

I have to fix a bug when we don’t have components selected, if someone can help me on this :wink:
It’s in Edit mode with the merge options.


(0rAngE) #17

The new Sculpt RMB Pie is very good! I’ll make heavy use of this.
The updates on RMB are nice!

Looking forward to have the (Sculpt) Constant/Relative settings under my cursor, it was a drag having to reach it in the T-Panel.
The only thing I miss in here now is the AutoSmooth Setting, I figure you don’t adjust that often?

(jordi) #18

I think that the possibility to have Almost all pie menus in the same Key/shortcut is really interesting. Personally I’m not a big fan of key combinations, so for me that will be the perfect pie menu workflow. Although this seems impossible, I think is pretty doable, just keep in mind the UI CONTEXT you are working on. For instance if you are in scult MODE, just pressing the Tab key, what you shall expect is the Pie sculpt menu. And pressing the SAME TAB KEY, the own pie menus for the others modes you are working on. And going a step further, If you are in the retopo active tab, you shall expect the proper pie menu of retopo. So also depending in which ACTIVE TAB you are, will have the proper pie menu. And all this only using the same key!

(Pitiwazou) #19

You can also use a pie to call other pies.
For exemple, with TAB, you call a pie and in this pie, you have 8 pies, snap, edit mode, cursor, view etc.

One clic, lot of possibilities.

(giovannyarce) #20

You are the best pitiwazou, I use your tools every day, thanks a lot for this, I really appreciate your time.