Using variables in Photoshop is akin to using layer comps. The major different is that when you use variables you are retrieving the data from a data source instead of just turning layers on and off. Photoshop can use layer names as variable placeholders. Then, these placeholders can be "filled" with data from a data source which could be an internal data source. This is akin to using a mail merge program or even server-side scripting like Coldfusion, ASP(.NET), PHP or JSP. Like Layer comps, this can save you a ton of time if you need to create a multitude of images that have basically the same layout (template) but need different text and graphic on each image (i.e., business cards, trading cards, web ads, web banners, posters, etc.).
Images need to be created or prepared that will be used to replace the placeholders.
Create a layout template using static and dynamic text and graphics layers as placeholders.
IMPORTANT: Because the layer names will be treated as variables later, you must follow the following naming convention for layers that will be dynamic: Variable names must begin with a letter, underscore, or colon and cannot contain spaces or special characters (except for periods, hyphens, underscores, and colons).
Create Background Layer
Create Dynamic Text Placeholder(s) via Text tool
Create Dynamic Graphic Placeholder(s) via Rectangle Tool or a Real Image
Create STATIC text fields or STATIC graphics
The dynamic layer names in the Layers Panel need to be "matched" to the variable names in the data source for both the text and graphic layers.
Create Text Data Set
Create Graphic Data Set
You can now export the the result as individual Photoshop psd files.
Normally if you try to transform (e.g., rotate) an image on a layer, when it is replaced by the real image it will be straight again. To resolve this problem, create a script to rotate that particular layer and then preform a Batch process on those images
Create a simply Action to: