Skip to main content
Retsied
Known Participant
February 11, 2019
Question

Automate Multiple Designs Based on Given Text

  • February 11, 2019
  • 3 replies
  • 2426 views

Hey all,

I have several different designs that mostly consist of a simple graphic (border, various shapes, etc), with a string of text. What I'm looking to do, is to automate the process of generating each design for any given text. For example, I would like to run a script, give it the desired text, and have it run through the various designs and auto scale the graphic around the text (fitting a rectangle around it for instance), and save a .png for each. Is this possible? I have some, but pretty basic programming experience. Any guidance, suggestions, tutorials, etc would be very much appreciated. Thanks!

Below are a couple examples.

    This topic has been closed for replies.

    3 replies

    Bojan Živković11378569
    Community Expert
    Community Expert
    February 17, 2019

    Hi, Retsied​ have you posted additional questions in this thread or not? I am receiving emails with additional posts in this thread. Strange thing is that I cannot access them to answer, every time I am opening blank page with error message.

    Retsied
    RetsiedAuthor
    Known Participant
    February 17, 2019

    Yes, I had made a couple additional posts that I soon after found the answer to, so deleted the post. Thanks fro attempting to help though. I did have another scripting question, however.

    I'm trying to figure out a way to save a png, in which the filename is the same as the psd, plus some given text at the end.

    For example, if I have two .psd files named "Apple.psd" and "Orange.psd", I would like to be able to run the same script or action to save these files as "Apple_addedText" and "Orange_addedText", where addedText can be anything that I define in the script or action.

    Bojan Živković11378569
    Community Expert
    Community Expert
    February 17, 2019

    I have tutorial on that topic, here it is https://www.designeasy.co/2014/07/how-to-add-prefix-and-suffix-to-file.html

    If you have any additional question, please do not hesitate to ask.

    Alternatively you ca use Adobe Bridge for that task, here is tutorial https://www.designeasy.co/2012/12/batch-rename-any-kind-of-files-in-adobe.html

    It is not covered exactly as you need to configure fields, take a look at screenshot below:

    JJMack
    Community Expert
    Community Expert
    February 11, 2019

    I think you need to give us more  details of what you have what to want to do and provide details of how you manually do the process now.  What you wrote is lacking specifics. It is not smart and extremely simple.

    JJMack
    Bojan Živković11378569
    Community Expert
    Community Expert
    February 11, 2019

    If I understand what exactly you want then perhaps your task can be automated using variables and data sets. I do not have enough informations for now:

    Effects/graphics that you want to apply are always graphic files or layer styles/filters? It is desired/required that you have separate files.

    Do you need some effects clipped and other just placed behind? If the answer is yes then task will be probably too complicated for data sets.

    Retsied
    RetsiedAuthor
    Known Participant
    February 11, 2019

    No later styles/filters, just simple graphics. For example, in the second of my images "Lincung Studio", I would like to recreate this design for several different brand names. Manually, if I replace this text with something else, like "Automate This Design", then I also have to manually resize the red graphic underneath to fit the text. This is what I'd like to have automated, and for several different designs.

    I agree, I could easily replace text with variables and data sets, however I need the graphic to also auto scale around the changing text.

    Thoughts? Thanks for the help!

    Bojan Živković11378569
    Community Expert
    Community Expert
    February 11, 2019

    I was thinking about same text with different backgrounds what can be done with data sets relatively easily, you just size layer below to dimension which you need then fit graphic(s) using data sets.

    If you want to use same graphic with different text all the time and to fit graphic to text then variables are not ideal. Maybe it is possible to automate with actions and here is guideline:

    • Duplicate text layer and move it below original text layer.
    • Convert duplicated text layer to Smart Object layer.
    • Edit Smart Object layer content and place graphic which should fit inside bounds.
    • Hide text layer and save/close.

    This is only generic guideline which needs experimentation and tweaks while recording action. It is just idea to get you in some direction.