Select a grasshopper component by clicking in the Rhino window?


Apologies if this has been asked before - I couldn’t find it if so.

Is there a way to find the Grasshopper component that produces some piece of geometry by clicking on it in the Rhino window?

I generally work by turning off preview for most components and only leaving preview on for the objects I’m currently dealing with. Sometimes however there is some leftover piece of geometry getting in the way of my view, and in a complicated file I might spend a minute or so hunting around the grasshopper code window trying to find which grasshopper component is generating it. It would be nice to be able to just click on the offending object in the Rhino window and have the grasshopper window view move to center on the component generating that object.

On a related topic, there are many components that never have a preview because they don’t generate any geometry (for example, adding two numbers together). It would also be helpful to have those components drawn in the darker grey style of “preview off” by default. As it is now, I don’t remember to turn off preview for these components as I go, and so they still appear in light grey and look like they might be the component I’m hunting for.

find preview (11.2 KB)


This looks super cool, but it doesn’t seem to be working for me (Mac, Rhino 7). The rainbow bounding boxes show up, but clicking on them doesn’t seem to move the Grasshopper window?

find preview (14.1 KB)
This version also select the component.
If still it doesn’t work, try deleting or commenting-out the lines from 94 to 96 …