Skip to main content
Louis3
Participating Frequently
October 20, 2021
Question

Randomising Brick Patterns

  • October 20, 2021
  • 2 replies
  • 773 views

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.

This topic has been closed for replies.

2 replies

Ton Frederiks
Community Expert
Community Expert
October 21, 2021

Is every brick a separate image?

Louis3
Louis3Author
Participating Frequently
October 21, 2021

Hi,

Yes.  They are photoshop layers opened as individual elements in AI.

Ton Frederiks
Community Expert
Community Expert
October 21, 2021

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!


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.

Kurt Gold
Community Expert
Community Expert
October 20, 2021

Can you share your sample Illustrator file?

 

Louis3
Louis3Author
Participating Frequently
October 21, 2021

Hi,

 

Thanks for coming back.  I do, but the file is too large to share here?