I’d like to make either a script or plugin for Rhino that works like Blender’s Grease Pencil
I looked if I could utilise selbrush’s method of drawing on the screen but that doesn’t seem to be easily accessible by code. Selbrush would work perfectly if It could draw separate lines and hang on the screen to take a screenshot of.
Next I tried using rs.GetCursorPos() in python, but I think that would need an on mouse event function to click start and end lines… I read that I’d need to make a proper plugin to utilise this.
Before I go ahead and try developing full on plugin, will this actually (or easily) be possible?
Is there a way to clear all DrawForeground conduits?
I’m using DisplayPipeline.Draw2dLine, and on OnMouseMove I make a new conduit. I was hoping that giving the same name to a conduit would add to that conduit, but I think it makes a new instance? When I disable the conduit and set it to null it only removes the most recent line.
If we start tracking mouse movements then drawing at the end, I imagine this won’t be as intuitive as drawing a curve in real-time.
I’ve tried adding points to a Rhino.Collections.Point3dList and then redrawing all the points each time onMouseMove is called, but this is significantly slower than making a new conduit each time onMouseMove is called.