Copy link to clipboard
Copied
I want to draw layered rectangular shape layers in the image, similar to a brick effect, but I don't know how to accomplish this. The image below was manually pieced together. I hope to control the number of brick columns using variables Thank you all for your help
2 Correct answers
Are you looking for help with scripting specifically?
How should the brick texture interact with the background image?I am sure you'll know how to find and use texture layers via stock sites.
I expect you'll also know the trick of setting Fill Opacity to 0% which shows the layer style without the layer's content?
Do you mean the Variables from the Image menu or a variable number of bricks? If you want a way to manually enter the number of bricks and hit the play button, then you need a script. It can be done using actions, but it's a tedious job, and you need to know how many in advance because there are a gazillion possible combinations. For each combination, one must record a separate action.
Explore related tutorials & articles
Copy link to clipboard
Copied
Thank you for your reply
Copy link to clipboard
Copied
Could you provide a meaningful example – a source image and (a portion of) the images you want to achieve/output ultimately?
Copy link to clipboard
Copied
Are you looking for help with scripting specifically?
How should the brick texture interact with the background image?I am sure you'll know how to find and use texture layers via stock sites.
I expect you'll also know the trick of setting Fill Opacity to 0% which shows the layer style without the layer's content?
Copy link to clipboard
Copied
Thank you for your reply. I understand that it can be done using patterns, but my requirement is not just to draw rectangles. Later, I will convert the drawn rectangles into selections, then copy each piece of the image and export them to a folder.
Copy link to clipboard
Copied
Now that does sound like something you'd need to automate if possible.
Copy link to clipboard
Copied
Do you mean the Variables from the Image menu or a variable number of bricks? If you want a way to manually enter the number of bricks and hit the play button, then you need a script. It can be done using actions, but it's a tedious job, and you need to know how many in advance because there are a gazillion possible combinations. For each combination, one must record a separate action.

