Copy link to clipboard
Copied
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:

I ended up writing a script for it. I m retty proud of it.
Copy link to clipboard
Copied
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:
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.
Copy link to clipboard
Copied
Hello did you manage to do this?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
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 …
Copy link to clipboard
Copied
I am suprosed that this is not an easy option to choose in today's day and age.
Copy link to clipboard
Copied
Maybe the symbol sprayer will do it. I will try.
Copy link to clipboard
Copied
I ended up writing a script for it. I m retty proud of it.
Copy link to clipboard
Copied
Can you post a resulting image?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now