Grasshopper

algorithmic modeling for Rhino

hi everyone!

I would like to be able to customise the grasshopper template like in this example by Modelab...

How could I import an image or a sketch in the template?

I know how to save the template off course.

thank a lot

Views: 2583

Replies to This Discussion

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.

Attachments:

thanks David. I will look through it.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service