algorithmic modeling for Rhino
I would like to let the user select a brep in rhino document using a buttoncomponent instead of right clicking on a component.
I tried to build a component "CustomSelectBrep" with a brep input parameter and a bolean optional one and then to link a button component to this last input.
a)I thought to this structure because clicking on the button, a true or false valure goes to "CustomSelectBrep" solveinstance where it is possibe to make select a brep with a runscript in rhinodoc but it does't seem a good idea.
1) with the runscript i can't use selection filters
2)It is difficult to update brepinput.I tried with volatiledata but it is not what i want
b)I tried serializing data in external file and to catch events her and there till i understood that probably it's not the right way again.
I read topics, i tried someway but i always failed.
Is it possibile? Thanks for your time
Tags:
The best solution would be to create a custom object with custom attributes which respond to a button press. Doing this allows you to handle mouse events when they occur, rather than responding to them after they trigger a new solution. In general I don't think it a good idea to start showing picking prompts during solutions.
There may already be grasshopper plugins that provide this functionality, but if not, are you willing to go the Visual Studio route and create a GHA?
Sure ,if you say that this is the way i will try it,also only to be able to do it and to know something new. Thank you , i will try to follow your suggestion
Welcome to
Grasshopper
© 2025 Created by Scott Davidson.
Powered by