Questions tagged [photoshop-scripting]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
32 views

Adobe scripting compatibility for different products

I am trying to understand scripting for adobe products using extendscript and I have a doubt whether I can re-use a script between different adobe products like ai, ps, pp and ae? Will there be some ...
1
vote
0answers
49 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() { ...
0
votes
0answers
20 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 ...
3
votes
2answers
289 views

Exported PNG is heavy sized than generated by Save For Web

I've made a script which is being used in HTML panel for saving files as PNG or JPG based on selected option! below is my code. function saveMain() { var finalName = userName.replace(...
1
vote
1answer
59 views

Get values from an applied bevel and emboss effect for multiple layers?

I created this function below, to get some values from an applied bevel and emboss effect, like shading angle, shading altitude etc. alert("Angle: " + getBevelAndEmbossValues()[0] + "\nAltitude: " + ...
0
votes
0answers
42 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 ...
-1
votes
1answer
53 views

Explanation of a function line by line for learning purposes!

As the title says, I need someone to give me an explanation of this function below, line by line, for learning purposes. Thank you in advance!!! function getAllShapeLayersData() { var lyrs = []; ...
1
vote
1answer
31 views

How can I get an alert with layers count before they change?

I have this function below and before it calls bevel(); function, I want first to add an alert where it says how many layers going to be change... function goThroughLayers(parentLayer){ for(var i=...
1
vote
1answer
39 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 ...
0
votes
1answer
65 views

What is the right way to count all the layers that are going to change into a script?

I am using a script (by Sergey Kritskiy from this question) so to select all shapes with specific color and replace this color with another one. I made some changes, I have also add a confirm window (...
0
votes
1answer
45 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
2answers
25 views

How can I get all shape layers where their names include specific word?

I have this function which gets all shape layers of a document... function getAllShapeLayersData() { var lyrs = []; try { activeDocument.backgroundLayer; var layers = 0 } ...
1
vote
1answer
51 views

Same procedure for each image in Photoshop: how to speed up the production? [duplicate]

Id' like to know if exists a way to speed up the production in Photoshop in the following case: I have several images and I have to apply for each one of them the same adjustment. Doing it manually is ...
0
votes
1answer
43 views

How can I get an RGB color using Photoshop's color picker instead of systems's?

I am using this script bellow to get an RGB color from color picker. Any idea how can I do the same thing but using Photoshop's color piker instead of system's one? var hexToRGB = function(hex) { ...
1
vote
1answer
49 views

How to select all shapes with specific color and replace this color with an other one?

I am totally new in Photoshop scripting, but I have some JavaScript experience. I want to make a script (or find an existing one and study it) that finds every shape with a specific fill color in my ...
1
vote
1answer
87 views

Multiple Panorama Automation in Photoshop

My workflow contains creating multiple panoramas in Photoshop one by one. I have multiple folders, each with jpegs that have to be combined into a panorama and saved with a PSD extention. Photoshop ...
1
vote
1answer
52 views

Script: Change color Saturation while maintaining L in LAB model

For example, I have a red color #633b3d (Saturation: 40, L: 30) and I want to transform Saturation to 80 while maintaining L (resulting color should be #83211b). If I simply change foregroundColor.hsb....
1
vote
1answer
40 views

Photoshop automation converting contiguous non-transparent “islands” into separate slices

I'm trying to convert something that looks like this into a bunch of slices, where each slice might overlap with another, but should contain each island of non-transparent pixels. The long continuous ...
1
vote
1answer
40 views

Photoshop CS6 Scripting - How transform Work Path into Shape?

I have a Work Path I'd like to convert into a shape layer. It can be done through the UI by pressing the "Shape" button at the Pen tool menu as shown in this answer. How do I do that through ...
0
votes
1answer
54 views

Trying to use a Photoshop script to move active layer and export as PNG

I am trying to create a basic animation in which a white text object is a clipping mask for a blood drip graphic that slowly moves down to fill in the text. My plan is to create multiple frames and ...
0
votes
1answer
77 views

Automate add an image to another image, and export

I have a white bg image size 500 x 312 - 72 resolution. I have about 20 icons that I downloaded from google images. They have different size. Right now, this is what I have to do for one image ...
0
votes
1answer
26 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
46 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 ...
1
vote
1answer
46 views

Can I add variable into ScriptsListener code?

I Have photoshop generated script which change current layer name to NewName Question : It is posible to change that static value to variable value Here is Code function Rename() { // Set ...
2
votes
0answers
24 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.
1
vote
1answer
58 views

Natively run actions for each layer automatically in Photoshop?

I am working on a GIF animation script for Photoshop CS6 (it should also work for CC). One feature I want to add is removing fringing from each layer. I do this by making a layer mask followed by ...
1
vote
1answer
57 views

Scripting - Artboards names in photoshop

I checked in the Photoshop's Documentation if there was any option to work with artboards in scripting. Unfortunately I couldn't find anything. Does anyone have experience in working with artboards ...
2
votes
0answers
42 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 ...
1
vote
4answers
104 views

Read and Set the Preferences of “History Options” in Photoshop

Photoshop's History Panel has options: Which has the following options: Is there a way to read / write those preferences using Photoshop Scripting / ExtendScript?
0
votes
1answer
37 views

Layer doesn't resize properly

I'm having problems figuring out why my layer does not resize to match the dimensions of the source layer. I set signatureLayer equal to the layer named "signature" and pass it and the layer I want ...
1
vote
2answers
95 views

Excel data driven ad creation

My client has an Excel document with these headings Headline | subheadline | background image There are roughly 10,000 rows, so they want 10,000 .jpg graphics created. Question 1. What's the best ...
0
votes
1answer
70 views

How to run photoshop closed?

Is it possible to run photoshop without running it? I want to run an action that basically replaces image layers and text layers, and quick exports results. Summing up, I have come to know about ...
0
votes
1answer
107 views

How to change in photoshop script color of Smart Object Layer, or Rasterized Image?

I need to change color of Smart Object Layer in JS script. I found how to change TextLayer, but SmartObjects haven't "textItem" property. Need to change it like Color Overlay works in Photoshop. For ...
1
vote
2answers
144 views

I need to create 60 unique framed mirrors for product images, looking for a way to automate

Basically I am given an image and I need to create a framed mirror I also need to be able to adjust the width of the moulding individual of the mirror because the width of the moulding needs to stay ...
1
vote
1answer
350 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 ...
0
votes
0answers
43 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
1answer
41 views

How to determine document color mode with Vbscript

What is Vbscript syntax to determine document color mode? Regards to the posted answer: I figured it out. Basically the same as your codes. I did not enumerate like you did. I was just interested in ...
1
vote
2answers
80 views

How to capture the information of any object in Illustrator and Photoshop

Is it possible to select an object and capture any information requested with the info Panel ctrl+8 in Illustrator, and F8 in Photoshop. like the CMYK, RGB Values of the fill and outline colors? To ...
0
votes
0answers
19 views

Automation of saving new images with text data grabbed from Excel

I am trying to create a Jewellery catalogue which will consist of thousands of designs. The basic template remains the same as the image above. Only the following details will change- Style Number ...
0
votes
0answers
33 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
0answers
48 views

Photoshop resize all artboards

Is there a way to resize, not scale, all artboards or selected artboards on photoshop? For example, from 1280:720 to 1280:700
0
votes
1answer
49 views

How to turn off Text Layer-Name Update

In this question: Restore Photoshop Text Layer Name Auto-Updating? The asker talks about Photoshop's 'feature' of automatically updating a text layer's layer-name to the first thing you change the ...
0
votes
1answer
86 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 ...
1
vote
2answers
93 views

Delete all hidden actions steps

I put this question in Adobe Photoshop Forum and Adobe Photoshop Scripting Forum more than a month ago and I didn't get any solution. I try here. Doing actions for third-party users, in the testing ...
0
votes
2answers
186 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
1answer
80 views

Weird Script UI bug

I'm working on a script with a dialog box in photoshop. The goal is to get an End Date and Time for multiple banners. My Cancel button works fine, but my Ok button produces a weird bug. The window ...
2
votes
0answers
84 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 ...
0
votes
1answer
150 views

Scripting 1-line vs 2-line text boxes

I will try to ask this question as best I can, but the problem is a challenging one. I have a text box that one part of my script will change the text in. I want to code a boolean variable to check ...
1
vote
1answer
147 views

Photoshop Automation: Place Logo in corner of image which has the most 'empty space'

I would like to automate the following process: place a logo on a large number of images I have. The logo should be placed in one of the four corners of the image (bottom left, top left, bottom right ...
0
votes
2answers
118 views

Using Photoshop to slice a raster image of text questions into individual images

Does anybody know of a place I could look into information about a script that could slice a flat, rasterized image into individual images for each block of text? I have hundreds of pages. I am ...