How to use random fill pattern (scripts) in Photoshop tutorial

A quick guide to creating random fills using the random fill script in Photoshop fill command tutorial. The random fill patterns script is for Photoshop CC 2018 2017 2015 CS6 etc

Random fill pattern script in Photoshop

how to use random fill pattern scripts in Photoshop tutorial
  1. Open pattern file or texture for the pattern tile (for random fill script) for Photoshop

  2. Image menu

  3. Image size

  4. Set width to something like 200px (random fills work best with smaller pattern tiles)

  5. Set height to something like 200px

  6. OK

  7. If the image is on a layer then you can add layer effects such as color overlay such as red overlay

  8. Remove background layer if you can by deleting it in the layers panel

  9. Go to the edit menu

  10. Define pattern

  11. Edit menu

  12. Fill

  13. Select the "custom pattern" option

  14. Script option ON

  15. Script 'random fill'

  16. Select pattern

  17. Click OK

  18. Go to the panel and set size etc

Random fill scripts work best with transparency in the pattern tiles in Photoshop

Make certain there is some transparency to get the best results as if you use just an image as the pattern tile (say filled with a background of a solid color) then you will just end up with a document of colorful pattern stamps in a square shape and at different angles etc (which is fine if that is the requirement from the random fill patterns)

Use random fill script multiple times

As with all things in Photoshop, the pattern script can be used once or multiple times. You can also combine the result with other effects such as blurs as well as adjustments, you can run the edit menu random fill and use the edit menu fade command with different blending modes etc.

You can use the random fills on a layer in Photoshop - makes it easier for combinations of fills

random fill layers

Personally, I prefer to use the random fill script onto a layer. You can always just delete the layer if it doesn't work out and another feature of the layer is the transparency and how the random fill pattern only fills part of the layer and leaves the lower layers still visible and they can then be manipulated further using tools such as camera raw filter effect in Photoshop as well as adjustment layers and Photoshop styles and you can always use opacity and blending modes to blend the random filled patterns. Of course, you can run the random fill pattern command and just apply to the background layer and just layer more and more patterns and pattern stamps to that layer and that can also be interweaved with effects such as blurs to add interesting variations into the design (or re-colored between fills)

 

Another good thing about layers is that you can then use transparency from the layer to load a selection and then use styles etc with that or create a mask from the transparency of the layer and the random fill pattern via the layer menu and layer mask and from transparency command which can then be feathered and manipulated in many different ways to create more interesting combinations of results from the fill.

  1. Layer

  2. New layer

  3. Edit menu

  4. Fill (select "custom pattern" and script and random fill)

  5. Select the pattern

  6. OK

  7. Set all the settings in the next dialog such as scale etc

  8. OK

  9. Layer

  10. New layer

  11. Edit menu

  12. Fill

  13. And repeat over and over with perhaps different scale and density etc

Random fill pattern panel - settings such as density, scale, rotate etc to create 1000s of different patterns

random pattern fill script photoshop brown

Once you finally get to the random fill script panel, you will see an option for adding presets (which may or may not be useful and if all your patterns etc are the same size then perhaps it is quite useful) and you also have a selection of settings to choose from such as

 

1. set the density

2. minimum scale factor

3. maximum scale factor

4. max distance from path (probably disabled unless you have a path selected)

5. rotate pattern - randomize between 0 and 360

6. color randomness. The color randomization is great for changing reds into blues and greens etc at the maxim or for subtle color shifts if set low.

7. brightness randomness. Brightness is great for adding some randomization of light and dark artwork into the design. The combination of brightness and color is very good but the result will depend on the quality of the pictures.

You can increase the density etc and you will see more of the stamps or tiles in the preview. If the image size ratio to the pattern tile size is ok then the preview should match the actual result (as mentioned). Even if you ram the density up to 10 it may never actually entirely fill the entire preview or result with a single random fill pattern application in Photoshop so if you set it to 10 and want it to fill the entire image then run the tool a few times or just increase the size of the tiles by using the minimum and maximum scale factor settings. If you set though scale factor quite low, it will be hard for the density setting to totally fill the entire document unless you add repeat applies.

 

You can re-size the tiles by setting a minimum and maximum (the tiles are then sized randomly in between those) so if you have a tile of 200 x 200 then the scale factor of 0.1or 10% will result in some fairly small tiles generated (or not depending on the randomization) but if you set the maximum to 3 then you will have a lot of larger tiles and perhaps the quality will not be so great - this is something for you to decide. Changing the scaling does not affect the randomization of the positions but changing the density does (nor does the color or brightness). Sadly, there is no 'randomization' button added to the panel which can be click to change the position etc of the tiles.

Paths (via the custom shapes tool or pen tool etc) and using that to control the random fill via the fill command

paths and random fill in Photoshop

Ok, actually quite useful as you can run the script with a path. Simply create a path using the pen tool and make certain the path is selected Via the path panel) and then run the edit menu and fill etc and instead of filling the entire document or selection, the pattern follows the line of the path and and as the path can be any kind of design such as a spiral or zizgag artwork etc, you can create some really interesting artworks just by using that feature. If there is no path, the path option in the panel will be disabled

  1. Go to the custom shapes tool in the toolbar

  2. Select a custom shape

  3. Go to the top bar and select the path option for the shape

  4. Draw the path

  5. Select the path in the path panel

  6. Go to the edit menu

  7. Fill

  8. Select the custom pattern option

  9. Set script ON and set the script to 'random fill'

  10. Click OK

  11. Set the scale / density etc

  12. Set the maximum distance from path (now enabled)

  13. Click OK

May require a few re-runs of the tool to generate enough pattern tiles from the path / random fill

Random fill script in Photoshop - javascript that can be edited

The random fill script is a script, in javascript, and can be found on your machine and edited and tweaked in many ways depending on your skill in Javascript.

Other tutorials

1. Creating beautiful glowing strands designs using the fibers filter in Adobe Photoshop CC 2018 2017 2015 2014 etc

2. how to use Photoshop patterns as a great source for amazing brush strokes tutorial

 

Return to home page

 

Commercial use - Royalty free - No time limit, no credit - All by graphicxtras.com - Secure sales via shareit.com (c) 1995-2017 Andrew Buckle, Maidstone artist, tel: +44 1622 / 688 375 E-mail: support@ graphicxtras.com License and usage Privacy Facebook pinterest Twitter Youtube tutorials Instagram Linkedin

 

The graphicxtras.com graphic design products are priced in US dollars but they can also be bought in Euros, Yen, UK pounds, etc though please note that there may be additional taxes applicable which will be handled in the secure shareit.com checkout. If you have any questions or queries about the products, please let us know and I will try and help by e-mail or via youtube etc. You can also add additional products as well as download protection and also purchase a physical CD via the shareit.com. The brushes and patterns etc work in a variety of applications and there are many freebie / samplers available to test them on your system before any purchase but again, if you have any concerns that the brushes etc will work with your favourite application, please let us know. The quickest way is probably to leave a message on our facebook page. The designs can be used as brushes and patterns and shapes etc but they can also be used just as images or layers as well as displacement maps or overlays or masks etc so even if the product is listed as a brush or shape, you can often also use the artwork as a layer and use the layer multiple times in the same project to create all kinds of unique and wonderful designs. The products on this site are copyright of Andrew Buckle but any products and artworks you create with these items are your copyright.