Array Object with Different Density on Curve

Hi Guys,

I am trying to make an object array on a curve but this also needs to change densities. How do I create a script where I can:

  1. Control the minimum and maximum distance of densities
  2. Array the object on the line so they are always pointing outwards (Rectangle)
  3. Set a point on a curve where I want the least amount of density.

I have gotten this far, any suggestions or solutions?

Array Density Help 01.gh (20.8 KB)

Thank you!
Hamza

Hi,

this could be one of the zillion ways :slight_smile:

Best

Array Density Help 01_RE.gh (22.5 KB)

1 Like

Thank you Jakinta!

I’m terrible with lists and my university deadline is only around the corner.

I really appropriate your help! Is there any way I can control the maximum and minimum distance?

Thank you again!

yeah, i see now that i have neglected your 1st statement.

That is complicated for me, because it needs some recursiveness (for examle when evaluation reaches the curve end).

It seems somebody else has to help you with that. I am not good at looping or scripting. :frowning:

Hey,

here is not so elegant solution until someone provides you a better one…

Mind that you can set size/number of minimum and maximum segments at the beggining…

Array Density Help 01_v2.gh (35.9 KB)

1 Like

Hey,

Thank you for this Jakinta! This is perfect!!

:slight_smile: