Sharing 'SetTargetToCursor' script

Here is one more addition, inspired by the need to have the ‘Retargetting’ script work under MMB, without giving up other macro already assigned to it. This script will allow to enhance the MMB-Macro functionality (for users that actually use Macro there), so it can have 4 different configurations, depending on the modifier key(s) pressed along with it. It may be useful independently of the script shared in this topic.

To use it, download, save on your HD and drag-and-drop into open Rhino viewport.
( Works in Rhino 6 and up only…)

DIG_MMB_MacroEnhancer.rvb (3.7 KB)

2 commands will become available:

DIG_MMB_MacroEnhancer
DIG_MMB_MacroEnhancerSettings

Place ‘_NoEcho DIG_MMB_MacroEnhancer’ as MMB Macro (Options>Mouse>Middle Mouse Button>Run this Macro)
Then use ‘DIG_MMB_MacroEnhancerSettings’ command to define Macros for up to 4 cases (MMB-solo, CTRL+MMB, SHIFT+MMB, CTRL+SHIFT+MMB). Please note, for Aliases that use -Runscript(), like _DIG_SetTargetToCursor, a prefix of *** needs to be added for this to function properly.

For example a potential configuration could look like this:

Capture

So I am using the ReTargetting script as main MMB functionality, and CTRL+MMB to toggle Gumball…

–jarek

1 Like