In rhinopython not grasshopper python
I have some problem use the Rhino.Display.DisplayPipeline.DrawPoint or the Rhino.Input.custom. I don’t know how to use these classes.
I just want add some dynamic display point by mouse clicks.
My simple code following but failed:
import rhinoscriptsyntax as rs import Rhino import System.Drawing while 1: pt = Rhino.Input.Custom.GetPoint() pt.Get() c = pt.Point() print (c) print(type(c)) Rhino.Display.DisplayPipeline.DrawPoint(c,System.Drawing.Color.Blue)
- How to Capture mouse events
- can somebody explain the ‘gp.DynamicDraw += GetPointDynamicDrawFunc’ means.
How did the ‘+=’ works to hook on the function.