Post #1271: ![](https://blenderartists.org/user_avatar/blenderartists.org/roaoao/48/37600_2.

📋 Metadata

🏷️ Tags

pie-menu hotkeys intermediate unsolved

  • Pie Menu Editor
  • Python Scripting
  • Global Variables (E variable)
  • Command execution with modifiers

💬 Content

roaoao:

Hi, yes, you can use E variable to check key modifier’s state in Command tab. For example:

E.ctrl and message_box("Ctrl function") or E.shift and message_box("Shift function") or E.alt and message_box("Alt function")

I’ll add some easier way to create this button in the next version.

Hi roaoao,

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.


🔗 View on Blender Artists