Set min and max radius for perforated circle pattern from image sampler

Hello! I am looking for some help defining requirements for a perforated panel pattern from an image. I have a script that creates circles of different sizes from the dark and white values of my base image but am trying to define a minimum and maximum radius for the circles as well as set increments by which these circles can increase.

Example: the smallest circles must have a radius of 1mm and the largest circles must have a radius of 5mm. All circles in the pattern must have a radius that increases by 1mm. Therefore the final output would have circles with radiuses that are only 1mm, 2mm, 3mm, 4mm and 5mm.

Thank you in advance for your help!!

  • Sincerely a very desperate and confused grasshopper user.

you won’t get much help if you expect people to rebuild your gh definition on their own computers from a screenshot :slight_smile:

please read the forum guidelines, they will show you how to organize the file before posting it

do not forget to include any referenced geometry in the gh file by internalizing those (it’s all explained here: Help Us Help You )

Joseph has made a few good examples of this

Thank you so much for directing me to this post!

Not a problem, this is my first time here and was unaware, thank you for the info. Will keep this in mind for future posts!