Yes, you can store functions in Stack Key slots. And call them from the button using this code in Command tab (video):
open_menu("Stack Key", event_mods(E))
Where event_mods(E) function returns key modifier combination (e.g. Ctrl+Shift, Alt+OSKey, None).
And open_menu() function calls Stack Key’s slot by its name.
Ah, wow! thank you very much for the quick reply!
It’s greatly appreciated c:
Can’t wait to see what else you got in store for us - take care and have a good one!
in the last week I’ve experience some of my buttons not working. The native blender menus work but not my PME’s. For example I have a “ADD” menu button for a cube. When I restart blender it works but later in my session it will stop working. Any ideas why?
Hi roaoao !
Pie Menu Editor is absolutely fantastic!
Though, can I call different classes/functions of a Script through PME’s “execute_script” ?
Or even parse additional variables ?
e.g.: execute_script("…/Scripts/Symmetrize.py", “X”)
I’m trying to wrap my head around this, but maybe what I’m wanting to do isn’t currently possible.
I have these commands:
bpy.ops.view3d.hp_add_primitive(type=“Cylinder_6”)
bpy.ops.view3d.hp_add_primitive(type=“Cylinder_24”)
bpy.ops.view3d.hp_add_primitive(type=“Cylinder_32”)
(And more, the same but different.)
Is it possible to use these with the modifiers?
I’m trying to do what pitiwazou did with his RMB Menu addon.
Hi @roaoao, the problem I had was due to a bad script I made, my bad, now fixed. Thanks and sorry for my late response.
One question, for you or anyone who can help. I want to see the 3d manipulator only when I am pressing “Alt + OSKey” with the 3 options enabled (rotate, scale and grab) and when I release this shortcut the manipulator disappear but not when I am working.
Don´t know if I am explaining myself properly but if I want to press Ctrl to activate snap options I want to have the manipulator on screen but when the job is done, the manipulator is automatically off.
No, afaik, we can’t use modifier keys (Ctrl, Shift, Alt, OSkey) as a regular hotkey. Ctrl key (snap option) is used as a part of modal operators (translate, rotate, scale, etc).