Post #1334: Hey roaoao,

📋 Metadata

🏷️ Tags

modal hotkeys advanced unsolved

  • Modal Editor
  • Hotkey Configuration
  • Python Scripting

💬 Content

Hey roaoao,

I’m trying to set up a Modal for editing Wondermesh properties. How can I have regular mouse-movement control C.object.data.WBox.size_x, C.object.data.WBox.size_y and C.object.data.WBox.size_z at the same time, keeping their relative values (so if the values are x=2, y=3 and z=5 when entering the modal, moving my mouse will add or subtract 1 from each of these)?
On top of that, I’d still want to have three seperate hotkeys within the modal that let me tweak each value alone (say, q, w and e)
As a last request, I’d like to tweak another three values together, with the mousewheel.

I’d want to set this up similarly for all of the different Wondermesh primitives, so if I could detect the name and fire off a different modal based on whether it’s WTube, Wbox_01 etc, that’d be great!

edit: additionally, I’ve been hoping to find a way to do this:
Use the mouse-path over a few pixels to determine between different commands. For instance, when I move my mouse a few pixels up, compare to closest world (or local) coordinate (x, y or z) and initiate a grab locked to this axis. Nvil/Voidworld’s move/rotate/scale functioned like this, and it was much nicer than Blender’s MMB axis selector.


🔗 View on Blender Artists