Grasshopper

algorithmic modeling for Rhino

It's frustrating the site search engine is down, so I have to ask these stupid questions here...

Here it is: is there an option to change the canvas in the GH window? I mean, the beige canvas with a rectangular grid. Is there a way I can replace it with something else?

Thanks.

Views: 15112

Replies to This Discussion

Hi Darren,

it is possible, a lot of canvas properties are available via the Grasshopper SDK at runtime and they can also be adjusted in the settings file. The problem editing the settings file is that it only works if Grasshopper is not running. Incidentally, the Canvas background colour is grey, not beige. If it looks beige then your screen is not properly calibrated.

To edit the relevant settings file, do the following:

  1. Start Rhino and Grasshopper.
  2. In the Grasshopper File menu, go to the Special Folders sub menu and pick the Settings folder.
  3. Close all instances of Rhino and Grasshopper.
  4. Open grasshopper_gui.xml in a plain text editor such as NotePad.
  5. You can modify values, but note that certain values are not possible and may result in weird crashes.
  6. Colours are always specified as 4 semi-colon separated numbers. The first number is the alpha value, then red, green and blue. Valid values for each are 0~255.
  7. Most settings in this file deal with the colours of component capsules. However there are also some settings that start with "canvas_" and "wire_". These settings affect the canvas and connector wires.

Once you've saved the xml file with some changes, restart Rhino+Grasshopper to see the difference.

I once posted a GH file with a VB component which could modify the settings in real-time but I can't find it now.

--

David Rutten

david@mcneel.com

Tirol, Austria

Hi David,

This works perfect for my purpose. Thank you!

Hi David,

What value affects the the color of the canvas in clusters?

Sorry, that one is hard-coded. Cluster backgrounds were a relatively late addition and I forgot they were supposed to be part of an adjustable skin.

No problem, blue is ok ;)

Thanks for your reply!

Hi David,

Can i change grid colour in cluster background? Thanks!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service