Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [photoshop-scripting]

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

2
votes
1answer
26 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
17 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
44 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
25 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 ...
1
vote
0answers
38 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
3answers
43 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
30 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
73 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
64 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
53 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
141 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 ...
0
votes
1answer
90 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
37 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
34 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
66 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
16 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
32 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
31 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
34 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
36 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
68 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
101 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
56 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
79 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
86 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
133 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
95 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 ...
0
votes
2answers
175 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
1answer
123 views

Trying to plot a sine wave using Javascript in a Photoshop Script

I have to create this sine wave inside a layer on an image I already have. The image is 600 dpi, 10x10cm and I have a new layer created at the top that is selected. The image is CMYK. I have to run ...
-2
votes
1answer
268 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 ...
1
vote
1answer
967 views

How to batch resize an image and create multiple sizes (with Photoshop)?

I want to batch resize an image in multiple sizes with Photoshop. The sizes are most of the time the same so I would like to have profiles for a set of fixed sizes. Ideally I just need to open my ...
1
vote
1answer
115 views

Load Action Script Photoshop CS4

Sorry for my English. I'd like to load an action to photoshop cs4 with JavaScript but nowhere can I find this function. This function doesn't work: app.loadAction( new File( 'E:/Folder/Actions/My-...
2
votes
1answer
194 views

Scripting Artboard Export with specific bit depths

I'm working on setting up a reusable template for some PNG avatars. Unfortunately, the different avatars have specific export requirements. Currently I'm using Save for Web to achieve these specific ...
0
votes
1answer
38 views

Photoshop animation with Fuse: batch saving for different frames and options

Is there a way to make a batch-script for automate saving (in .png files) each frame of the animation (Fuse character in Photoshop) with different character options, for example head location (as ...
0
votes
2answers
94 views

Photoshop animation: How to render each layer to a separate file at once?

Is there a way to render each separate layer in Photoshop to a separate file? I have a character from Fuse and I want to render it in X positions. I don't want to click 'render' for every new layer, ...
1
vote
2answers
111 views

How to extract the current settings for any Photoshop tool via ExtendScript or ActionScript?

I'm looking to find the settings for various options for different tools in Photoshop. This post hinted at the answer: https://graphicdesign.stackexchange.com/a/113421 It said: To get a current ...
0
votes
2answers
130 views

Automation of image alignment by detecting bounding box?

I'm often having to align and crop product images on a white back drop and it occurred to me this would be a simple task for a script of some sort. I can think of a way to code this as an after ...
1
vote
1answer
704 views

Resizing a square image to a rectangle with a fixed aspect ratio [duplicate]

I have a very large batch of images that I need to resize. I am new to Photoshop (have used Elements for years) and I am unsure how to do this. Basically, all the images are currently 2000 x 2000. ...
0
votes
2answers
215 views

How do I set eyedropper settings using Photoshop ExtendScript (Javascript)?

Is there a way to set Photoshop's eyedropper settings (sample size, sample, show sample ring) in a script? Or, failing that, use the script to find out what the current settings are? Thanks.
-1
votes
0answers
27 views

Photoshop Macro to initially align images then separate differences into a new layer

I'm trying to find a way to automate a process I need to do a number of times (a couple hundred at least). The process starts with two images: (Original) Perfectly flat, set to true color, cropped ...
0
votes
1answer
66 views

In photoshop how can you fill each selection with its own individual gradient automatically?

Basically, this is an oversimplified illustration that shows exactly what I want. Instead of me selecting each patch individually then apply the gradient I can just use select > color range or magic ...
0
votes
2answers
229 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
219 views

Embed colour profile when saving as JPG via script

I have the following script that saves a copy of my current document as a JPG to the desktop, however I cannot get it to embed the colour profile. Does anyone know how to do that? var JPGquality = 12;...
0
votes
2answers
107 views

Saving smallest JPG possible with Photoshop

I wanted to know what the best way to save a JPG to be very small and still keep its quality as much as possible. I have 1200x1200 psd files that when I save them while keeping quality the jpg is ...
0
votes
0answers
24 views

extract src and dest coordinates after warpping in adobe photoshop

any way (plugin, extended script, etc,.) to extract src and dest coordinates after warpping? here is a very simple example: we'll puppet warp the photo, and the we'd like to extract the coordinates ...
2
votes
0answers
157 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" ...
0
votes
1answer
496 views

Replace smart object content without Photoshop

I am looking for a way to bulk replace smart object content without using Photoshop. My goal is to create nice poster mockups for hundreds of posters automatically. So I have a PSD file containing ...
2
votes
0answers
32 views

Save specific combination of layers as PNG [duplicate]

Unfortunately I don't have any experience yet with PS scripts, so I would highly appreciate your help. I'm looking for a way to export a specific combination of layers to a PNG. My file is laid-out ...
1
vote
1answer
763 views

Script to move layer in photoshop

I'd like to have a script that moves one of two layer in a photoshop session by one pixel, save the output as a png and repeat. Here's my attempt (it complains that transform is not avaialable, but I'...
3
votes
2answers
83 views

Create new photos from a photo based on variations of an adjustment

I have a picture here and I want to apply an adjust (brightness for example) and save like 40 pictures, each one with a different level of brightness. Is there a way to do this automatically? I use ...