Questions tagged [photoshop-scripting]

Questions about the automation and extending of functionality through the use of scripts within Adobe Photoshop.

50 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
2answers
1k views

Ending a Photoshop script when no layers are selected

I've been working with a function I found on stackoverflow here that works as far as I can tell by grouping the layers, dumping layer names into an array then ungrouping them. function ...
5
votes
0answers
446 views

Script to pick closest Pantone from CMYK reference in Photoshop

I'm trying to script the process of selecting the closest Pantone+ Solid Coated colour from a CMYK reference in Photoshop. Manually the process is: Click on the Foreground Color picker. Enter a CMYK ...
3
votes
1answer
3k views

Photoshop Scripting: batch replace colors

I'm trying to write a script that will replace the colors of all same-colored shapes, including those on non-visible layers. I am new to Photoshop scripting, but I imagine the pseudocode would work ...
2
votes
0answers
68 views

How can I get layers data in relation to their group name?

I am making a Photoshop script which gets every layer with Bevel and Emboss effect and then doing some actions. I have make this function so to get layers data... function getLayersData() { ...
2
votes
0answers
35 views

Can I get 'Clone Source' values with a script in Photoshop?

Is it possible to get values of this panel with a script in Photoshop? I tried to use xbytor's Getter.jsx but it didn't register any changes in these fields.
2
votes
0answers
46 views

How to get a layer's dimensions (including transparent border)?

I need to know the dimensions of a masked layer with transparent area to resize it to the same dimensions of another layer. If use the bounds data I get the dimensions of the pixels, but not the ...
2
votes
0answers
95 views

Photoshop glitched, but I liked it, and now want to script it

I was trying to File → Place Embedded this Youtube video screen shot into a Photoshop file and it kept glitching, each time differently. Here are two examples of what it looked like. This is a whole ...
2
votes
0answers
281 views

Artboard renaming issue

I'm working on a script for my team that will allow them to batch rename artboards in Photoshop. We use the following naming convention for our artboards: "ProjectTitle_BannerType_WidthxHeight_LG" ...
2
votes
0answers
142 views

Photoshop Javascript - Resize not working correctly

I have written a script in Javascript for photoshop which gets user input (number of boxes on the desktop) then converts it into pixel sizes. The problem is on resizing, the layer doesn't change to ...
2
votes
0answers
819 views

How to make font size resize automatically to fit in a text box in photoshop using script

I have a JSON file like this: { "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam dui ante, euismod id quam eu. " } I have 6 different Photoshop file (.psd) with ...
2
votes
1answer
1k views

Trouble with .csv File & Variables

Long time lurker, first time poster. I've been having trouble since updating to macOS High Sierra when using Variables. I save the Excel file as a .csv but when I go to import it into Photoshop, it ...
2
votes
0answers
552 views

Get all text in layer by script in CS6

I'm using photoshop to support my job so I want to know how to get all text in layer and save it into a text file? I was using this script I found in github to get coordinates and layer: // Enables ...
2
votes
0answers
271 views

Batch Data-driven variables automatically size text to fit a defined area

so I want to know if it's possible to generate text on image with fixed width and adjust the text to fit the full width if, for example, the variable name length is short. Example in attachment I ...
1
vote
0answers
80 views

How to record “export as” as an action in Photoshop CC

I'm using Photoshop CC v20.0.7, and I'm trying to record the [file > export > "export as"] as an action. When I hit "record" and try, nothing is recorded in my action sequence, even though the jpg is ...
1
vote
0answers
21 views

PS scripting - Artboards saveAs

I'm trying to write a script that rename and export several artboards based on user input given in a dialog. The script works for the renaming part, but exporting doesn't work. I tried several ...
1
vote
1answer
97 views

New Folder with Selected Files in Adobe Bridge

I have hundreds of images in a folder in bridge. I have tagged them alternatively by colour. The first bunch as Yellow, the second as Blue the third as Yellow again and so forth. I want to copy each ...
1
vote
1answer
835 views

How to export groups to separate PDF files in Adobe Photoshop?

I have 180 groups (see image for example), each group is a different label design. I need to export each group as an individual PDF file. What is the best way to achieve this? I know how to export ...
1
vote
0answers
309 views

Is there any way to label a grids rows and columns with numbers in Photoshop CC automatically?

So you draw your grid automatically (which I know how to do). Then I want it to number just the row and column automatically like so:
1
vote
0answers
41 views

Have to manually insert every number for a digital planner - Is there a way to automate this process?

I design dated planners on Etsy. The most time-consuming part of creating the planners is that I have to manually retype the numbers for every date in each planner. I have three different types of ...
1
vote
0answers
53 views

External Data Input PSCS6 with text changes

Basically Im a small time graphic designer trying to simplify some small tasks that will be constantly pop up. My objective is to automate Twitter banners where the user can input their Name 'Alias' ...
1
vote
0answers
145 views

How to align hand-held 5 shot bracketing with Photoshop and overwrite each file so that metadata stays correct?

Idea is to align with Photoshop and combine to HDR with Photomatix.
1
vote
0answers
89 views

Trimming Quadrilateral Into Rectangle Script

one of the time consuming process in my work flow is to correct distorted geometric shapes. This usually require wrap rectangular images into quadrilateral and then crop it back to rectangle - and we ...
1
vote
2answers
117 views

Edit layer property when another layer is activated

I successfully created my first fitness sleeveless t-shirt mockup using Photoshop CC. This is the result so far: It's my first mockup ever and I'm pretty satisfied with this result. There is an ...
0
votes
0answers
36 views

Scriptlistener Plugin : Catch layers transformation value

I'm making a plugin called PS-Blender where I'm trying to simulate the functionality of Illustrator's blend tool. I've used different text field to measure out the start and end values of positions ...
0
votes
1answer
36 views

How to add a layer style effect especially on a highlighted text?

How can I add an effect on a highlighted text, such as border and other stuff that can be found in Layer styles > Blending options? Example: I have this text right here: https://i.imgur.com/TSTrNFV....
0
votes
0answers
16 views

batch composite multiple layers from files in Photoshop

I have files which are named Cube_BACK_#_Diffuse.exr Cube_BACK_#_Specular.exr Cube_BACK_#_GI.exr Cube_FRONT_#_Diffuse.exr Cube_FRONT_#_Specular.exr Cube_FRONT_#_GI.exr and the same thing for ...
0
votes
0answers
26 views

Adobe Extended Script: Any way to localize the promt confirm()? Yes and No should be translated to “Ja” und Nein"

if (!inddLastest.exists) { doc.save(inddLastest); } else { //btnText = { en: "Yes", de: "Ja", fr: "Oui" }; b1 = w.add ("button", undefined, localize (btnText)); var res = confirm("Die ...
0
votes
1answer
38 views

Photoshop Scripting - applying changes only to selected artboards

Having trouble specifically with artboards for Photoshop scripting. What I want it to do: I have a photoshop file with 8 artboards, and I want to apply changes (name changes) to the selected ...
0
votes
0answers
34 views

How can I get layer's data using Action Manager, excluding layers with specific layerSet?

I have make this function so to get data of every layer with Bevel and Emboss effect, within a document. Now I am looking for a way to do the same thing, but excluding a specific group (layerSet). ...
0
votes
0answers
40 views

Is there a way to automate the merging of groups in photoshop, one by one?

In a file, I have about 10-20 groups of independent layers each. Is there a script/action that identifies each group and merges them one by one? As of now, it takes me a lot of time waiting on a ...
0
votes
0answers
80 views

How to replace Smart Image with a different graphic WITHOUT using Photoshop?

This Q&A offers a method by using Photoshop to load .js. However, I found this website can achieve this goal without using Photoshop. My question is how this website achieves this goal?
0
votes
0answers
42 views

Is there a way to load files into stack but into an already opened file in Photoshop CC?

I know that I can Scripts > Load files into stack. This will create a NEW document where each external image is it's own layer. I'm wondering if there's a way to do that but load that stack into an ...
0
votes
0answers
48 views

How to find all text layers with specific color and replace this color with an other one?

Recently, I added a similar question about how to find all shapes with specific color and replace this color with an other one. Sergey Kritskiy gave me the solution with a working example which I ...
0
votes
1answer
62 views

How to save multiple files 300ppi in photoshop?

I am using Photoshop and I want to save multiple files at once like in export layers to files, my files are 326ppi and when I export'em all at once I get them with 72ppi (I know it's the screen ...
0
votes
1answer
38 views

One file with multiple linked files to one photoshop file

I would like to create one psd file that has multiple layers containing a different piece of artwork, that is linked to another psd file containing multiple layers and each of those layers is linked ...
0
votes
1answer
59 views

How to batch fix background artifacts using actions?

I have almost 700 small images of glyphs which are anti-aliased black on white backgrounds. All the files have excess whitespace and I wanted to use the trim function in Photoshop to batch resize all ...
0
votes
0answers
49 views

How to enumerate images on A4 print for multiple pages on Phtoshop?

I have to print some labels on an A4 paper. These labels need to be enumerated with iteration for multiple prints. About 8 labels per page, and more than 10-15 pages, depending on the requirement. I ...
0
votes
0answers
34 views

How do I whiten near-white areas without going near darker ones?

I scan a lot of books, and it's my practice to keep the raw TIFF files forever. I do lossless compression, but the compression is terrible because the vast white areas of the document (margins, ...
0
votes
1answer
183 views

ScriptUI panel resizing issue

I'm working on a script that receives a bunch of input from the user to change certain text fields around the document. Given the amount of input I want the user able to change in a single run of the ...
0
votes
2answers
281 views

Make layer from layer mask

I want to create layer from layer mask, like in this gif: And i need to do this from script. Is that possible?
0
votes
2answers
424 views

ScriptUI Photoshop Palettes

I'm working on a photoshop script that contains a GUI for collecting information. This is my first time using Script UI and I'm running into 2 issues that I'm not sure how to address. Issue 1, the ...
0
votes
2answers
335 views

Rotate all layers in a group

How would I go about referencing a group of layers in a script if I wanted to perform a rotation on all of them as a group, not individually? Essentially I want to rotate all my layers in the group ...
0
votes
1answer
1k views

How can I extract all text content from Photoshop with all associated styles for backgrounds? (see example inside)

I have provided a lot of PSDs with lots of content to a coder. There were 50+ PSD and it took a team of 4 people 2 months to build them. Furthermore, the content was in Spanish and the coder doesn't ...
0
votes
2answers
973 views

Photoshop action: how to make a crop (menu item) in an action without deleting pixels? Editing the atn file?

I am working on a workflow to make an auto crop. I have an action set up with an automatic selection (magic wand), a little expansion of this selection and a crop to this selection. To make a crop ...
0
votes
0answers
137 views

automate assembling multiple tiles back into the original big picture

I have multiple, 1024 jpeg tile images that are effectively tiles of a one big image which was split into a matrix of 32×32 smaller ones (each 256×256px). I wonder how could I efficiently put them ...
0
votes
0answers
1k views

Adobe Photoshop XY coordinates export

I have tried to use amrok's script (given here). I'm trying to export the XY coordinates of corner points of a selection - ideally to a text file... Would you be able to help?
-1
votes
1answer
56 views

Add a conditional line to existing script

I've got this script from an earlier question and answer (specific resize layer action) Many thanks to SQW! (function (){ var startRulerUnits = app.preferences.rulerUnits; app.preferences....
-1
votes
1answer
661 views

How to save layers in a group as one image in photoshop?

I am dealing with large number of layers in photoshop. How can I save multiple layers of a group as a single image in a batch process?
-2
votes
1answer
537 views

Replacing a smart object in bulk with Photoshop script; Editing script for more than one smart object

I found the following code and it works very well for most Photoshop files I have tried, but the file I want to use it with has 2 Smart Objects, one nested in the other. See attached images. Is it ...
-4
votes
0answers
33 views

Need help about creat scripts save file to pdf ( smallest file size)

i have a script to create auto mockup from this question: Replacing a smart object in bulk with Photoshop's variable data or scripts But the file save is jpg, now i need file save is pdf ( ...