Copy link to clipboard
Copied
Hi,
I create a lot of seamless textures of various bricks for 3D CAD rendering. To date, I have opened a photoshop file in AI (with layers as objects) and have been manually rearranging the bricks under a pre-created guide.
Is it possible to arange many bricks and be able to randomise it? Or somehow create a brush, or altenative that lays them out automatically?
Thanks in advance.
Louis.
Copy link to clipboard
Copied
Can you share your sample Illustrator file?
Copy link to clipboard
Copied
Hi,
Thanks for coming back. I do, but the file is too large to share here?
Copy link to clipboard
Copied
Is every brick a separate image?
Copy link to clipboard
Copied
Hi,
Yes. They are photoshop layers opened as individual elements in AI.
Copy link to clipboard
Copied
If the individual elements have the size of a single brick (instead of the size of a layer) you can make each into a pattern swatch and use a random swatches fill script to create a wall.
Copy link to clipboard
Copied
Hi
Yes - the elements are the size of one brick. Apologies, but I don't know where to start with a random swatches fill script, except Google!
Copy link to clipboard
Copied
The script can be found here:
https://github.com/psstmatt/Random-Swatch-Fill/blob/master/RandomSwatchesFill.js
You will need to create a grid first with rectangles that have the size of your bricks (Object > Path > Split Into Grid).
Select the grid, Shift select the Pattern Swatches and run the script.
Copy link to clipboard
Copied
Thank you! I will give this a go!