Grasshopper

algorithmic modeling for Rhino

Hi everybody,

 

Has anybody tried changing Grasshopper´s default colours?

 

I starting changing the values in the grasshopper_gui.xml file just for the fun of it  (actually, several students had already asked me how to do it) and I could only change the background colour. The wires colours values don´t seem to change.

Any ideas?

 

Cheers!

Views: 5040

Replies to This Discussion

Hi Miguel,

 

this is me changing these colours at runtime. All colours in the grasshopper_gui.xml file are used, but this file is read only once, when the plugin is loaded. So any changes you make have to be made while Rhino and Grasshopper are not running. 

 

I attached a version of this file that overrides background, grid and wire colours. The four numbers used to define a colour are Alpha, Red, Green & Blue, in that order.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Attachments:

ok david, thanks.

 

Is it enough to unload Grasshopper from Rhino with the UnloadGrasshopper (or sth like that) command or is it necessary to close Rhino?

 

And actually, I have done it several times but I don´t manage to change two things:

 

- wires normal display colour (by default, they appear in black and if I change my background to black, it´s quite hard to see them :-))

- background colour of the "grey sorroundings around the canvas" (sorry I don´t know the proper name)

 

One last question, is it possible to display wires as straight lines, like in Pure Data for example, and change the stroke weight?

 

Many thanks!

You don't see different wire-colours with the file I posted? In the xml file look for the following tags:

 

wire_default        ->   the transparent black of default wires.

wire_empty         ->   the transparent orange of empty wires.

wire_selected_a   ->   the green of wires attached to selected objects.

wire_selected_b   ->   the grey of the other ends of wires attached to selected objects.

 

you may need to have Fancy wires enabled to see most of these colours.

 

canvas_backcolor   ->  the background of the canvas.

canvas_edgecolor   ->  the left and top edges of the canvas.

canvas_gridcolor    ->  the grid lines on the canvas.

canvas_hash0color ->  one of the two colors of the hatch pattern underneath the canvas.

canvas_hash1color ->  the other color of the hatch.

canvas_shadecolor ->  the color of the shadow underneath the canvas.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

ah! ok, sorry, didn´t try your attachement.

 

thanks for the explanation!

 

cheers

hi David,

Where should i put this xml file ?

 

shuang

Search your hard-drive for grasshopper_gui.xml and replace it.

If you feel like doing it the efficient way, start Grasshopper, then open the Settings folder via the File->Special Folders->Settings Folder... menu.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

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