Grasshopper

algorithmic modeling for Rhino

Hi everyone,

I have contours from a geometry that I need to put gradient color on.

So I used gradient component already. The problem now, I dont know how to connect the contour component (c) to (L0,L1 and t) of the gradient component.

I,ve been trying to sort the contours, pick a list etc but it seems there is only one color assigned to the contours.

Can anyone teach me the logic behind this?

Thx!

Views: 5790

Replies to This Discussion

L0 and L1 define the boundary values, and "t" should be the variable between them.  You should extract the "z" min/max of your contours and then feed the z value of each contour into the "t" input to your gradient.

Hi, im trying something similar to this,

im trying to paint conture curves with gradient, but i dont know how,

i also trying to bake them, but i couldnt find some bake attributes components, no one is working.

m tnx

Attachments:

Thx!

Btw David, how do I extract them? I tried to connect the contour into list item, then to z factor then onto decompose??

no clue now

Hey guys...what I've done is extract the start point for each contour curve and then decomposed it into its x,y,z parts.  Get the bounds of the z for the range of the gradient, and then pass each z value from the curve start into the gradient, and use the custom viewer to see it.

Yogi, if you download Milan's rhino file and apply this definition to it, you should see how it works.

Milan, if you want to bake with attributes, I highly recommend downloading Nathan Miller's excellent Lunchbox components.  There are a ton of other goodies in there as well, fun to play with and useful for managing your files.  You can get it here: http://theprovingground.wikidot.com/plugin-tpg

I've also included "bake_with_attributes", which is a C# component developed by Giulio Piacentino (he has a bunch of useful stuff over here: http://www.giuliopiacentino.com/grasshopper-tools/)

good luck!

Attachments:

Thank you so so much for your help

Lunchbox is also great!


Tnx!  m

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service