• Hi Guest!

    We are extremely excited to announce the release of our first Beta1.1 and the first release of our Public AddonKit!
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. For access to the Public AddonKit you must be a Creator tier member. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.
Mouse Control Overhaul

Plugins + Scripts Mouse Control Overhaul

Download [<1 MB]
Note:
  • Works as session plugin.
  • I dont have VR, so I can't test how this plugin works with it.
  • Need to disable MacGruber's PowerHandles plugin because it's logic is already implemented here and they are interfere with each other.

Improvements:​

Custom hover selection:​

  • Choosing the closest controller to mouse position in screen space using mouse location and radius which depends of fov and distance to controller.
  • Scale 1.0 is about radius of circle inside CUA's rectangle controller.
  • Ignoring hidden controllers (default implementation allowing to drag and select hidden controllers).
  • Ignoring default style cycle through few near controllers (using C button) because it is garbage and very strange idea.
MouseControlOverhaul-HoverSelection3.gif

Drag Activation Distance:​

  • Default drag activates when mouse moves quite far away from previous position in one tick.
  • This one checking distance from pressed position to current mouse position in screen space.
MouseControlOverhaul-Drag2.gif

Controller's name:​

  • Hovered controller's name is showing as help text at left of main hud.
MouseControlOverhaul-Names2.gif

Changeable hotkeys​

Nothing to show here

Implemented MacGruber's PowerHandles logic with some tweaks:​

  • Position/Rotation handles are hidden if Show hotkey is assigned, visible if holding hotkey.
  • Local/Global axis mode can be toggled by ToggleAxisMode hotkey and switched by HoldAxisMode hotkey while holding.
MouseControlOverhaul-Axes.gif

Small Tweaks:​

  • Gizmo is deselecting if mouse on GUI.
  • Dragging radius of selected controller covering full gizmo circle if RotationHandle is active, if not it is using SelectedDragScale value.
  • Stop dragging if application window lost focus.
  • Escape button by default cancelling current selection or closing menu if nothing selected.
  • Fixed MacGruber's hack to make Empty atom's sphere renderer visible only when collision is enabled and current menu is SelectedOptions (like default one).
  • Set selected controller icon for 0.5 scale, because default one is huge (maybe need to add it into settings).

Hints:​

  • If you don't plan to use FreeMode (Tab button) and you are using Keybindings plugin, you can remove this button and assing Tab for ToggleAxisMode.
  • For high resolution monitors you may need to increase DragActivationPixelDistance.

Knowing Issues:​

  • LookAtTrigger does not work.
    • Cannot use default variables and methods.
    • I haven't seen anyone use it, so likely you will not notice it.
  • Other modes with controller selection like "Select Parent Atom From Scene", "Select Link To From Scene", "Select Force Receiver From Scene", "Possess And Align" are using default selection.
  • I don't like how handler's grid mode works (it is just rounding all coordinates even when you moving along one axis), so i disabled it.

Little Issues:​

  • Cursor blinking when I am trying to hide it every frame, so I don't hide it at all.
  • Switching to FreeMode sometimes causes the controllers to be hidden for one frame.
  • Switching ShowHiddenAtoms causes the controllers to be hidden for one frame.
  • In FreeMode when you move cursor above gui, a blue circle should be visible.
MouseControlOverhaul-Menu.jpg
  • Finally2.jpg
    Finally2.jpg
    43.6 KB · Views: 0

Share this resource

Latest reviews

Positive
Version: 1
oh my God it's finally fixed! Thank you!
Datel
Datel
Very welcome)
Upvote 0
Positive
Version: 1
Fantastic, the hover over selection is absolute gold. Thank you, this has been driving me nuts for a long time. You are doing an excellent job making things as they should be. Thanks for taking the time creating and sharing.
Datel
Datel
Thank you much. I was also very annoyed why the mouse selection works so poorly
Upvote 0
Positive
too
Version: 1
Worth it for the Custom Hover Selection alone. That's been driving me bonkers
Datel
Datel
Thank you. Yeah, this fixing the main problem of VaM's mouse control
Upvote 0
Positive
Version: 1
as a non-vr user/creator this plugin is a must have it's just came and already been one of my favourites .
Datel
Datel
Thank you much, I'm very glad to read that. And I tried to fix many little issues before release
Upvote 0
Positive
Version: 1
Another banger
Datel
Datel
Thank you)
Upvote 0
Positive
Version: 1
every node click now feels like dealing a critical hit
Datel
Datel
Sweet)
Upvote 0
Positive
Version: 1
simple but such an effective tool for mouse using creators.
Datel
Datel
It is quite complex inside, just because developers made many private methods, but definitely mouse control like this should be the default in VaM.
Upvote 0
Positive
Version: 1
Great programmers can only make great plugins.
Thank you Datel
Datel
Datel
Thank you much. Your Deeper plugin is very exciting too)
Upvote 0
Positive
Version: 1
Wonderful idea! now I can choose the right controller intuitively! A Powerful tool! Thank you!
Datel
Datel
Glad you liked it. I was dreaming about normal mouse control and now it is possible to work without one headache
Upvote 0
Positive
Version: 1
It's about time someone stood up for us non-vr mouse peasants.
Datel
Datel
Yeah, I'm not sure, but I think there are more users of VaM who dont have VR than people who has it. And default mouse control should be at least possible to click on pointed controller
Upvote 0
Back
Top Bottom