Grasshopper

algorithmic modeling for Rhino

Hi everybody,

I created a grid of stacked boxes, then extracted the front face and tried to apply a gradient to the front faces depending on the distance between the faces centroids and

an attractor point.

For some reason the colour does not show in the preview display.

I would greatly appreciated if someone could let me know what went wrong!

Thank you so much!!!!

Views: 939

Attachments:

Replies to This Discussion

Your [Bounds] (min max) component operates on individual items, resulting in a whole lotta singular domains. If you flatten your list of numbers you'll find the domain which encompasses all of them.

Also your gradient seems a bit weird, I think the leftmost grip has a different colour coming in than going out. This results in full red if the gradient is evaluated at the leftmost edge. Adding a bit of breathing room to the bounds in the form of x-0.1 and x+0.1 expressions fixes that, although you could also create a new gradient without a bi-coloured grip.

Attachments:

Hi David,

thank you for sharing your knowledge.

This community is really helpful especially for beginners like me.

Its very encouraging to get so much support!!!!!

Indeed I flatten the data before the bounds component.

I thought it would make sense since the component takes the top and bottom value and is transferring the data to the deDomain component.At least i thought so ;).

Regarding the gradient you are also right.I replaced it with a new gradient.

No more dramas!!!!

One thing I am wondering is how could  I get the specific color number used on each panel???

That would be important in case u want to fabricate and colorize the panels.

Many thanks again !!!!!

'Colour number'? You mean the actual RGB values for each panel, or the gradient parameter for each panel?

RGB

i checked the numbers and it seems like they are the RGB values.

just let me know if i am mistaken

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service