Grasshopper

algorithmic modeling for Rhino

Hey guys,

actually iam working on 3d based diagramms.
For this i generated a point grid with different Z coords were i put Boxes on.
Now i want to get different colors according to the z-coord.
So low z-coord = white
High z-coord = black
everything between should be interpolated

Test Test.ghx

Thank u 4 help

Views: 380

Replies to This Discussion

Hi Julian,

use a Gradient object to define your colours, then evaluate the gradient at the different z-elevations. Use the resulting color as input for a Custom Preview component.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
Hello David,

thanks for ur reply. But i dont get behind the Problem.

Would anyone watch my def to see were the problem is.

Thanks
Attachments:
If you flatten the input G for the Preview Component you will see better results. However, I think your definition is not setup to distinguish between Z values but rather proximity to your influence points, so the colour gradient is white closer to the points black farther away. If I get a chance I'll have a better look at lunch time (3 hours away)

For future reference there is also a component that will determine the min and max bounds of a domain so you no longer have to use the list items. Scalar>Domain>Bounds, then use the domain components to access them individually.
Actually I think it is right after all that because proximity and low is the same thing in this case.
Hello Danny,

yes the flattern helps me out.
Now it works the way i want it to work.
Thanks a lot.
Oh and the bound was a good hint also.

Best regards
Julian

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