Grasshopper

algorithmic modeling for Rhino

I have a 7" column with attributes that can be adjusted with a number slider from minimal to overly dramatic affect.

How would I apply a number for the slider based on the length of the column?

The idea being the further up the column, the more dramatic the effect.  

For example:

at 1", the effect is at 1

at 3", the effect is at 3

at 7", the affect is at 7,  ect.


I figure it must be some form of formula, but I am uncertain how to call upon other number sliders, or how to set it up.

Thanks!

Views: 1007

Replies to This Discussion

Divide the curve. Now each point along the curve is numbered with an index 0,1,2,3.. etc.

Apply an equation that uses that changing number.

Here's an example of a sin equation that is gradually applied to a curve.

Attachments:

Thanks so much for your response!

I think I'm still confused- 

Attached is what I'm working with- 

The two variables I wish to adjust relative to the height

Attachments:

Just multiply by the height (which in your case is centroid.Z)

You can modify this equation as much as you like, just don't divide by zero.

Factor = centroid.Z * flair * 2 / (height + 0.001);

Attachments:

Awesome- thanks!

Overall this is generally the effect I'm looking for, however, with this script the mesh breaks :(  (see image) - how can I avoid this?

Can I set a min and max domain (.03, .09) for the flair and width, too keep the mesh connected?  

Thanks again!

Attachments:

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