Grasshopper

algorithmic modeling for Rhino

I am new to grasshopper and having a difficult time converting a data list into specific values.  My goal is to take the list from the image sampler and define the
numbers to a group of five or more radius values that I create.  ( .08 , .125 , .146, .187, .25) ect.  What would be the best way?  Again I am a novice and just beginning to
explore the possibilities of Grasshopper. 
Any help would be greatly appreciated.  

Views: 501

Replies to This Discussion

Interesting problem, you have a list of numbers and you want to round each one to the nearest number in a referenced list?

I can do it easily enough with a VB component (cheating I know), but I can't think of a good way to do it otherwise. I suspect there's some arcane combination of lists and sorts and keys that might do the trick, but I'd hardly wish to expose a beginner to that.

You'll need one of the latest versions to open the attached file.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
Attachments:
Thank you so much. It works great. Exactly what I was trying to accomplish only a much simpler solution.

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