Hi all. I do need to find a way to deselect from Grasshopper the selected geometries from the Rhino viewport and I can’t find any component that can do this.
I do found that there is a DeselectAll Method in the Rhino API but I don’t know how to write a script that can use this function.
Sorry, not what I need. I only need to deselect the preselected geometries without a second intervention in the viewport.
I am using a component from Sasquatch components called Select in Document but also I do need the opposite (deselect one) and I can’t find any viable solution.
oh yeah, I think I didn’t understand your goal probably I’m not understanding it even now
→ you have some geometries that are selected on the Rhino viewport (A)
→ then you go on the Grasshopper window, where you have an output that contains just a subset of those geometries (B)
→ and you want to run a GH command/code of some sort in such a way the Rhino selected geometries will be just (A) - (B) ?
No. I just want to deselect all the geometries, so I won’t have any kind of geometries selected. Like simulating the press of the ESCAPE key in the viewport which deselect everything previously selected.
There is a component in LunchBox called RhinoCommand that can send commands to Rhino viewport, but unfortunately it is freezing all my definitions and I do need to restart Rhino to unfreeze.
P.S. After I do press the button, the mouse movements are just attempts to select the components which it is not working because the entire definition is just frozen!