Grasshopper

algorithmic modeling for Rhino

Hi all!

I am trying to create an abstract pattern using Image Sampler. Is there a way to divide the range of values from the image sampler into smaller groups so I can tweak each individual group? 

Attached is what I have managed to do thus far, which is only having two different types of pattern using greater than and smaller than. so just wondering if there is a way to divide them into a groups of 5 and use them later for different manipulations.

1st group: <25

2nd group: <20>25

3rd group: <15>20

etc

Thanks!

Views: 747

Attachments:

Replies to This Discussion

You can create a range of domains from a list of numbers, then find which domain contains (or is closest to) any given value.

I like using unweave and mass addition for that. By grafting the number input to check using "larger than", each number gets checked against all range values and results in a boolean value, which is the same as 0 and 1. So adding them all together for each number will tell you which list it belongs to. Then you can use unweave (which I think comes with a plugin, but I am not sure which - i'll have a look) to sort them into separate lists. If you check against more or less numbers, you have to adjust the number of outputs in unweave, by zooming in.

Attachments:

You need the Treesloth plugin - just download and put in components folder: http://www.grasshopper3d.com/group/milkbox/forum/topics/tree-sloth

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service