Creating Custom Contextual Components

Hi Andy,

So good to find this post.

I was trying to make a custom getpoint component as well, I’d like the component to output cursor position as a point in realtime, I tried to add expiresolution(True) in a custom OnDynamicDraw method, but it seems like expiresolution() can only be triggered after OnDynamicDraw finished, but not during it.

May I ask why did that happen? or where can i get some relative explanation?

Many Thanks

The contextual components haven’t really been setup to be customized or created by third party developers. Could you not write a script to get the mouse coordinates and then pass that in separately as a standard Get Point component?

Hi Andy, Thank you for reply.
I`ve tried to do this in separate components, one for running custom OnDynamicDraw and Get() method, another as target to recieve data. I wrote target.expiresolution() within OnDynamicDraw in the first component to expire the reciver (second one), but still the reciver only can be expired after OnDynamicDraw/Get() finished.

Should I run OnDynamicDraw out of Grasshopper, like in rhino context?