Questions tagged [photoshop-scripting]

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

57 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
518 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
71 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
39 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
47 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
114 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
310 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
208 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
920 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
2k 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
288 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
36 views

How can I set up an action to bulk pattern fill that selects the next pattern in the folder automatically?

I tend to work with patterns and have an action to help with this. But, I tend to save my patterns as a .pat file, with anywhere from 10-200 patterns within each .pat file. I am trying to figure out a ...
1
vote
0answers
271 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
23 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
188 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
1k 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
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 ...
1
vote
0answers
596 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 ...
1
vote
0answers
410 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
146 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
92 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
125 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
19 views

How to create type area the size of the selection for Photoshop action

Problem: I can make text area sized by the selection size by converting the selection to work path and making text area out of it. However, when recording action, it will just record the specific size ...
0
votes
0answers
22 views

Automation for Batch-Converting Images for Ecomm - must have square canvas - Ug

First time here and hope this is a good place to ask. Looking for a quick way/automation to convert multiple print quality images (30-70MB) to 1000x1000 pixels at 300 dpi and under 3 MB for use in web ...
0
votes
0answers
47 views

How to make a pixel perfect adjustable outlined circle in Photoshop and also Illustrator, like, the one that Microsoft Paint has, as example?

How to make a pixel perfect adjustable outlined circle (with a simple tool so the circle can be readjusted and newly calculated later) in Photoshop and also Illustrator, like, the one that Microsoft ...
0
votes
0answers
36 views

Make an own adjustment layer in Photoshop

How can I program my own adjustment layer (i.e. non-destructive editing step) in Photoshop? For example in order to run dithering by ImageMagick as a non-destructive editing step within the stack of ...
0
votes
0answers
35 views

Automatically apply external script whenever image changes

While editing an image (i.e. while there's a new version of it every few seconds), I would like to continuously see what the newest version would look like after running an external script on it (for ...
0
votes
0answers
33 views

Files from Adobe Bridge to Separate Folders

Asking this again. I still haven't found a solution to this. I have hundreds of images in a folder in bridge. I have tagged them alternatively by colour. The first bunch as Green, the second as Red ...
0
votes
0answers
19 views

Automate splitting of layers (based on Guides…or slice)

Hey guys, I want to use gimp or Photoshop to crop an image into pieces on average. Is there an efficient and fast way? Is there an automated way to split a layer into multiple layers based on the ...
0
votes
0answers
32 views

replace multiple smart layers at every export

Can anyone suggest me a Photoshop extension: That can replace multiple smart layers at every export and can auto-fit the new image to the original dimension of the replaced smart layer so there is no ...
0
votes
0answers
46 views

Use prominent color of the logo as foreground color and apply it

I want to select the dominant or prominent color of the logo and use it as a foreground color and apply it in an object and save it. Can it be scripted and automate?
0
votes
0answers
46 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
50 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
19 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
89 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
38 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
47 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
161 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
130 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
50 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
59 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
76 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
52 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
295 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
345 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?