Skip to main content
Participant
September 24, 2015
Answered

Pattern Random Fill - No Overlap

  • September 24, 2015
  • 4 replies
  • 3709 views

I'm trying to create a randomized background using a pattern I've defined in Photoshop. I tried the random pattern fill built in, but it allows overlapping of the pattern images. How can I perform a random fill that does not allow overlapping?

Attached is an example of what I'm trying to do:

Correct answer Luke Loop

I ended up writing a script for it. I m retty proud of it.

4 replies

Luke LoopCorrect answer
Participating Frequently
October 8, 2023

I ended up writing a script for it. I m retty proud of it.

c.pfaffenbichler
Community Expert
Community Expert
October 9, 2023

Can you post a resulting image? 

c.pfaffenbichler
Community Expert
Community Expert
October 5, 2023

If you want a distribution without overlap based on hard-edged area instead of the rectangular bounds then paths might offer a better approach than Patterns. 

Not much better maybe, but still … 

Participating Frequently
October 5, 2023

I am suprosed that this is not an easy option to choose in today's day and age.

Participating Frequently
October 5, 2023

Hello did you manage to do this?

 

Trevor.Dennis
Community Expert
Community Expert
October 5, 2023

The link above is no longer valid, but there are lots of tutorials on using the deco script in Photoshop.

Let us know if you are still stuck, and we might be able tag Chuck.

 

Participating Frequently
October 5, 2023
I am still stuck. Other than doing each piece separately. I would like to
know if there is a way of doing it please.
Chuck Uebele
Community Expert
Community Expert
September 24, 2015

The deco script is very powerful if you want to get into coding it. You can do procedural scripts that keep track of the pattern placements, so it's possible to do something along those lines. Here's a link to advanced programming with the deco scripts. You can contact the engineer who thought this stuff up, as his contact info is on the pdf at the following link:

http://wwwimages.adobe.com/content/dam/Adobe/en/technology/pdfs/ProgrammingDecoScriptsInPhotoshopCC.pdf

The other option is to use something along the lines of the deco script in that you set up an array of your document, and every time you place a pattern, you enter in it's bounds into the array in the form of blocking out cells in the image. The array is check before placing the next pattern.