Post #4422: Yeah, same here ![:slight_smile:](https://blenderartists.org/images/emoji/twitte

📋 Metadata

  • Author: mem
  • Date: 2022-06-28 18:43:49
  • Type: discussion
  • Quality Score: 7/10
  • Reply to: post_04421
  • Replies (1): post_04423

🏷️ Tags

hotkeys advanced solved

  • Pie Menu Editor
  • Modal Editor
  • Python Scripting

💬 Content

Yeah, same here :slight_smile:

I tried to replace the “TWEAK” occurrences with “CLICK_DRAG” (as that’s what the event is called when examining the info panel) until it either worked or it broke and… it worked (sort of, it was actually behaving the same as “PRESS”) until in broke :sweat_smile:

Needless to say someone more knowledgeable than me is needed.

Regarding serpens, I also played around with that, but that’s also missing the “CLICK_DRAG” option in the “On_Keypress” event. I’ll play around with it a bit more - the plan is to output the addon from serpens than manually modify the resulting python file. But I need to figure serpens out a bit more, first.

Edit:

Turns out serpens is really powerful for making pie menus. And you can easily solve the click-drag issue. Either by manually editing the resulting addon, or, my preferred way - editing serpens a bit to include the click-drag option.

In order to do this, all you have to do is edit the “On Keypress.py” file in “blender_visual_scripting_addon\nodes\Events”, and add this line:

(“CLICK_DRAG”,“Click Drag”,“The action is run when the key is pressed and the mouse pointer is moved”),

after this line:

(“DOUBLE_CLICK”,“On Double Click”,“The action is run when the mouse button is clicked twice”),

I’ll try to contact the serpens developer and ask him to add this in the official release, as well.


❤️ 2 likes


🔗 View on Blender Artists