algorithmic modeling for Rhino
Hello
I am trying to make work a component with a mouse listener. I need to tell it that my event must be taken from a Rhino viewport. How do I do this? Until now, I have created a mouse listener, defined what I want to do when a click occurs, but I need to tell it that the click is going to happen in the viewport! How can I do this? Can someone help me?
Thank you very much!
PS: so from what I have read here, my understanding is that if the event is happening in the Grasshopper canvas I must inherit a class from Grasshopper.Kernel.Attributes.GH_componentAttributes and override the methods that I need. Is this valid whether the click happens inside the canvas AND inside of the body of the component? If not, what would be the difference, do I still have to inherint from Grasshopper.Kernel.Attributes...??
Thanks a lot!
Tags:
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by