Grasshopper mouse tracking

Is it possible mouse tracking in grasshopper? I mean, I need coordinates from the mouse as a point instead of moving a point with the gumball

I know it’s possible in processing but I don’t find a way in grasshopper


This thread might help:

1 Like


Here’s quick implementation using the System method I pointed to: (1.7 KB)

Note that this uses a timer function inside the GHPython component. Meaning that it captures the mouse position every 100 ms, even without the mouse moving. One should probably only get the position when it moves i.e. subscribe to an event. I believe this is what Steve does in the other thread.