I’m not quite sure what you’re referring to. Do you need a script that detects when you mouse over a highlighted object, one that highlights objects when mousing over them, one that toggles highlighting on or off for another script, or something else entirely?
Hi @Alan_Farkas, try below script within _EditPythonScript to toggle that setting:
#! python 2
import Rhino
import System
def ToggleMouseOverHighlight():
# toggles boolean value stored in Options > Advanced
# Rhino.Options.General.MouseOverHighlight
try:
rh_id = Rhino.RhinoApp.CurrentRhinoId
settings = Rhino.PlugIns.PlugIn.GetPluginSettings(rh_id, False)
s = settings.GetChild("Options").GetChild("General")
b = s.GetBool("MouseOverHighlight")
s.SetBool("MouseOverHighlight", not b)
print "MouseOverHighlight={}".format(not b)
except Exception as ex:
print ex
ToggleMouseOverHighlight()
Save the script to your preferred location and create an alias for it eg. using below macro: