Skip to main content
Participating Frequently
March 15, 2019
Question

Actions and patterns

  • March 15, 2019
  • 4 replies
  • 2838 views

Hi there,  I have created an action that takes a photoshop file, selects it then defines it as a pattern.  Then the action proceeds to open a number of photoshop files and applies the pattern to the file.  The problem I'm having is it isn't necessarily taking the latest generated pattern.  Is there a way to do this?  Where when it goes to apply the pattern on the new files just opened it uses the one I just created in the first step?

This topic has been closed for replies.

4 replies

Bojan Živković11378569
Community Expert
Community Expert
April 6, 2023

Have you tried to enable modal control for Fill step to ensure that proper pattern will be used? I have no problem with images 2100x1500px. What are dimensions that Ps is failing to save as pattern?

Bojan Živković11378569
Community Expert
Community Expert
April 6, 2023

I am testing and everything works fine. Download action using link provided by @Jeff Arola and incorporate that step into action. Below is example with steps from my working action. Action is allowing you to select which file to open (arrow is pointing to enabled modal for Open step in my screenshot) then creates pattern from that file, closes file then creates new document and fills it with most recent pattern. Here is link to download action, it will allow you to select image at the beginning and to change document size when creating new document. If you have any problem please report problem and version of Photoshop. I am testing using latest version of Photoshop 24.3.0 https://drive.google.com/file/d/1kVjeutmN3Vi2CFzNHuJHzgbBfjvfycwu/view?usp=share_link

 

KingArt1788
Participating Frequently
April 6, 2023

Let me give this a shot as soon as I get back to my desk. I have tried everything I could think of. It would always use the pattern which where the action was first recorded. Even if I delete all the patterns. The pattern panel still show a horizontal list of previous patterns. I tried edit>fill and it still shows deleted patterns. Very frustrated!

Jeff Arola
Community Expert
Community Expert
April 6, 2023

If you want to record the Define Pattern step without the name being recorded, use Insert Menu Item, then Define Pattern.

 

Participant
May 11, 2020

Hello Ajahadi!
I'm facing the same issue as you and I hoped I found an answer with your comment, but even by deleting the pattern library it seems like it's not working.

Could you give more details and the steps to follow ?
Thanks.

JJMack
Community Expert
Community Expert
May 11, 2020

I do not know what you mean by deleting  pattern library and I do not believe doing that would have any effect on your problem.  Your problem is you most like have duplicate pattern names in your Patterns Palette.  Patters seem to be applied just by pattern name in Actions and scripts that names can be in any group and can be duplicated in all can cause problems.  The Actual problems is Adobe does not require all items in palettes to have unique names.   You can have duplicate layer names, shape names, pattern names. This can cause problem when selection is done by name.    The Path palette requires path to have unique names. Even in the Action palette where action are selected via Set name, Action name.  You can have duplicate set names and action names.  When you automate processes in Photoshop you need to be very careful how you access/address  things in Photoshop. If you can select something in a relative fashion instead of by name use the relative method.  If you can not try to use unique names.  If you add a work layer or pattern delete the same so the action or script can be run more than once on a document clean up you droppings.

 

If you deleted the pattern first did you delete the one you wanted to or some others pattern with the name,   Did you loop deleting the name till delete failed to make sure all duplicate  names were deleted.

JJMack
Participant
May 11, 2020

Thanks for your reply!

 

I managed to do it without script, just by using by hands "Actions" but it is a very unstable way of doing it.

 

The name doesn't change that much on my "Actions". I have the same result in the end.

I try to be most carefully as possible, I understand it has some connections that we don't see at the first sight.


First of all, it's working for Photoshop CC 2019 but may not work for 2020 or newer version. Why? Because you need to able to reset your patterns with the button given by Photoshop in the options of the patterns. In the 2020 version, until now, the reset button is not working the same way: it is reloading the patterns, but not deleting the current ones. Being able to delete the current ones is mandatory for this.


You also need to be ready to delete the patterns that are not given by Photoshop. If you have yours, you can save them, so do it.

 

Also, in all that process, be sure to use the same color mode between your document (RGB, etc.) otherwise you could have some issues at the moment of the export. (Mine were exported in black and white, I spent a long time to understand why...)


This is what I do, following the steps of Ajahadi:

  1. I create a pattern that I don't need. It will be removed after but it will allow you to prepare all the actions you need.
  2. I start a new "Action"
  3. I open my image that will become my future pattern,
  4. I reset my patterns to the default list (by doing so, I remove the previous pattern that is no longer required). During the reset, you might have two alert modals to properly reset your patterns.
  5. I create my pattern from my image (it becomes the only extra one, except the photoshop default)
  6. I open my other document,
  7. I add my pattern (which is the last one in the list) to the layer where I need it to be
  8. I stop my "Action"

And that's it.

 

By using the Image Processor with this action, it creates me all my variations.

 

ajahadiAuthor
Participating Frequently
March 15, 2019

I have discovered if I delete the pattern in the library that was used when creating the original action it defaults to the most current pattern.  but it would be great to just signify the most current so I'm sure to not have problems if that doc is in the library.

ajahadiAuthor
Participating Frequently
March 15, 2019

Ok I actually added a step before everything resetting the pattern library and now it takes the latest pattern.  It's not perfect but it works.

Jeff Arola
Community Expert
Community Expert
March 15, 2019

Try this generic Pattern Fill action.

This should use the last defined pattern, since there is no pattern name or id recorded in this action.

You'll have to copy the actual action step of Fill to your existing action.

https://adobe.ly/2FeMog6