algorithmic modeling for Rhino
One way of doing some nifty graphics would be to add a script component to the file (perhaps hide it behind a panel or something) which draw custom stuff in one of the Canvas pipeline events. I recommend CanvasPaintBackground as that means your stuff won't occlude any wires or objects.
I attached a file with a C# component as an example. One thing which is quite important is to make sure you only draw stuff if the currently loaded file is actually the one that contains your script. It would also be nice if you didn't draw anything if your logo area is not visible. The attached file makes sure of both.
Unfortunately the way it is set up means that if you change the code, both the old and the new graphics will be displayed, which makes debugging/developing a bit of a pain. You'll have to completely restart Rhino to get rid of stale displays.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by