Highlight geometry on mouseover with Python command / tracker

Need help, or want to share a macro? Post here!
User avatar
Joel_graff
Posts: 1117
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Highlight geometry on mouseover with Python command / tracker

Postby Joel_graff » Mon Apr 15, 2019 4:31 pm

I'm trying to implement a command that has a custom tracker. One of the things it needs to do is, on mouse over of an element, highlight it (and adjacent elements) in a specific color.

By default, highlighting is handled by FreeCAD (elements show up in yellow), but is it possible to override that?

I've started exploring this by studying DraftTools.getPoint() and one of the basic Draft trackers, but I'm not familiar enough with Draft as a whole to know where to go looking for this particular need.
You can find the FreeCAD Trails workbench for transportation engineering on my github at:
https://www.github.com/joelgraff/freecad.trails