I’m trying to select objects inside Rhino from Grasshopper to be able to select groups.
The problem i’m having is that every second time I push the button and selects objects, grasshopper hangs and I can’t push anything.
error.gh (2.7 KB)
Can anyone give me some input to this problem and why it happens?
Thanks in advance
I don’t know the exact problem. But, I think it is because the button component triggers two events. One, when you press it, and one when you release it. Not sure though. But, I’ve faced it too.
There are two ways to overcome this:
- Use a Toggle instead of a button. That way, even your print statement will stay onscreen until you toggle your input to False.
- Work in the SDK Mode, and override
~ ~ ~ ~ ~ ~ ~ ~
Thanks Kaushnik for the information.
I would like to avoid suggestion #1 if possible, I understand your thinking but it seams a bit user unfriendly.
I don’t know much about suggestion #2. Can you point me in the right direction to get more information about what this does?
I don’t want to close this thread yet, maybe there are some other workaround @DavidRutten ?
Thanks again Kaushik for your help!