Panel grid density with attractor points

Hi all,
I’m trying to figure out how to make a panel density gradient with three attractor points. I’ve searched around and found a few scripts that has gotten me this far, but I’ve been stuck on the next few steps. I’d appreciate some advice, examples, etc.
What I have so far is a single attractor point with random values to not have a solid body of panels. See below.
What I’m trying to do is the following:

  1. Instead of using the random tool, I would like to create a pattern that allows only 1, 2, or 3 panels to be next to one another horizontally or in the “x” direction only (I will eventually want to try variables for both but that’s probably too much currently).
    I’m trying to understand jitter, but I don’t know it well enough to know if it could help with this.
  2. For the other two points, I’d like one to be an attractor like what I already have, but the other point to be a point that “repels”. I’ve been trying to understand how to combine the effects of points that attract and points that repel.
    The overall idea is to use these tools to create somewhat of a dynamic bitmap (one I’ve seen without attractor points and using color is seen below) with interacting attractor points and controlling how many panels can be next to one another.

    I’m attaching what I’ve figured out so far as well. Hopefully this isn’t too much information, but I want to do a good job of being clear.
    Thanks! (14.2 KB)

Use Jitter component.

Hi Shridhar,
Thanks for the response. I’ve seen patterns from jitter, but I’m not sure how to apply this to my particular goal. The issue is that I can create a gradient, but you can see that in the screen shot there are many panels adjacent to one another.

For example in the bottom row (circled in blue above) there are groups of adjacent panels greater than the values I’m looking for. The bottom most and left most group has six adjacent panels, but I want to be able to find a way to limit this value to 3 or below. Maybe this is by finding a way to remove additional panels?

I am not on my PC, and I cannot see your file but if you want one point to attract and another to repel then perhaps you need to use fields. Two point charges one positive and one negative. After that depending on the charge some points will have squares others won’t.

Hi Ivelin,
I’ve tried using point charges but I don’t think I have an approach yet that gives me the effect that I’m looking for. I’ve tried using the angle from the field tensors at the panel centroids as a means of culling panels (see below). I might be missing a simple way to use the resulting field information to get the effect of what I’m after.

I’m wanting to get a gradient pattern, like the one as shown below but with panels, with the ability to move attractors (or charges) and to limit the number of adjacent panels.

Something like this? (18.4 KB)

1 Like

This is great! Thank you. I have to figure out how to translate this to a bitmap of solid panels and removed panels.
I think one of the most difficult things I need to do is to set an adjacency limit on the bitmap horizontally between rows. Do you have any suggestions of how to do that?