Pie Menu Editor 1.15.20

add-ons
commercial
(actimelvanille) #2071

and another noob question.
is it possible to use conditions?

        if vert_sel:
            bpy.ops.mesh.dissolve_verts()
        elif edge_sel:
            bpy.ops.mesh.dissolve_edges(use_verts=True)
        elif face_sel:
            bpy.ops.mesh.delete(type='FACE')

is it possible to put something like this on a hotkey?
(without having to use an external script)

chris

0 Likes

(roaoao) #2072

The author can’t pay for the work yet. But he is interested in porting the add-on.

1 Like

(roaoao) #2073

You can use this code:

vert_sel and bpy.ops.mesh.dissolve_verts() or edge_sel and bpy.ops.mesh.dissolve_edges(use_verts=True) or face_sel and bpy.ops.mesh.delete(type='FACE')
0 Likes

(actimelvanille) #2074

hi roaoao

if i create a macro or stack key and put that line into “command” it doesn’t do anything.
do i have to turn something on in order for it to work?

0 Likes

(roaoao) #2075

No, because vert_sel, edge_sel and face_sel are not defined. It was just an example.
Create a stack key with 1 slot and use this code in Command tab:

vert_sel, edge_sel, face_sel = C.tool_settings.mesh_select_mode; vert_sel and bpy.ops.mesh.dissolve_verts() or edge_sel and bpy.ops.mesh.dissolve_edges(use_verts=True) or face_sel and bpy.ops.mesh.delete(type='FACE')
0 Likes

(actimelvanille) #2076

ah, okay. many thanks!
i have no clue of coding unfortunately so many thanks … also for this really great addon. :slight_smile:

0 Likes

(Coreyon Muhammed) #2077

hi roaoao
thank you for a great addon.
is it possible to make a tooltip on items who call other menu when i hover on them ?

1 Like

(actimelvanille) #2078

in order to have all my menus and shortcuts in 1 place i’d like to have everything inside of pme.
therefore i’d like to also change “pan view” to alt-mmb inside of pme.
could anyone who managed to achieve mapping navigation inside of pme tell me which kind of key (sticky or stack, etc) and which line of code to use?

0 Likes

(roaoao) #2079

No, Blender doesn’t support this. Will ask the devs to add this feature in 2.8

1 Like

(roaoao) #2080

You need to find default hotkey for the tool in the built-in hotkey editor:

Now you can add a stack key in PME with the same keymap (3D View in this case), the same operator (view3d.move in this case) and the same operator properties (in this case all properties use default values):

Command tab:

bpy.ops.view3d.move()
0 Likes

(radi0n) #2081

Tooltips will be very usefull!

Which command i must use to toggle between showing Bevel Weights edge in pie menu?

I found only True/False
C.space_data.overlay.show_edge_bevel_weight = True

0 Likes

(Coreyon Muhammed) #2082

Hi there
i found a way to toggle “Rotate around selection”

Command tab:

vIn = C.user_preferences.view.use_rotate_around_active ; vOut = str(vIn) ; O.pme.overlay(text="Normal Rotate = "+vOut) ; C.user_preferences.view.use_rotate_around_active = 0 if vOut == "True" else 0; C.user_preferences.view.use_rotate_around_active = 1 if vOut == "False" else 0;

Hope someone can show me a better way of doing it
Thanks

0 Likes

(roaoao) #2083

Try this:

C.space_data.overlay.show_edge_bevel_weight = not C.space_data.overlay.show_edge_bevel_weight
1 Like

(roaoao) #2084

Good code. But I think you can remove this part: C.user_preferences.view.use_rotate_around_active = 0 if vOut == "True" else 0;

Final code:

vIn = C.user_preferences.view.use_rotate_around_active ; vOut = str(vIn) ; O.pme.overlay(text="Normal Rotate = "+vOut) ; C.user_preferences.view.use_rotate_around_active = 1 if vOut == "False" else 0;
0 Likes

(Coreyon Muhammed) #2085

Thank you roaoao :smiley:

0 Likes

(Coreyon Muhammed) #2086

I think i found a bug,
in the user preferences the Tabs (interface, editing,input,addons etc) bottons
are flip to the bottom of the windows…
when i disable PME its turn back to the upper part of the window.
any advise ?

0 Likes

(roaoao) #2087

Yes, check PME version. This should be fixed in PME 1.15.18.

0 Likes

(Coreyon Muhammed) #2088

Yep, I just download the latest PME and it fix it
thank you.

0 Likes

(actimelvanille) #2089

One of the best addons + awesome support!
Many thanks, roaoao :slight_smile:

btw … if anyone has a script to snap the selected vertices to 0 in x axis please let me know :slight_smile:

0 Likes

(radi0n) #2090

Hey,

I noticed a strange thing today. When the addon is on I have a strange flicker in the viewport. When the addon is turned off, the flickering disappears.

Everytime flickering appears in the terminal i have this error:

WARN (bpy.rna): c:\b\win64_cmake_vs2017\win64_cmake_vs2017\blender.git\source\blender\python\intern\bpy_rna.c:1415 pyrna_enum_to_py: current value ‘6’ matches no enum in ‘Event’, ‘(null)’, ‘type’

0 Likes