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
1
vote
1answer
259 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
353 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
54 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
428 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, ...
2
votes
2answers
331 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
442 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
4k 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
463 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.
0
votes
1answer
246 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
474 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
479 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
314 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 ...
2
votes
0answers
319 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
1k 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
33 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
2k 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
89 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 ...
0
votes
1answer
39 views

Store a Copied Image in an Automation Script

So I'm about to get into a part of my project where I have to process a ton of images. The processing flow is the same, so I would like to use a combination of Actions and Automation to do the job. I ...
0
votes
1answer
2k views

Photoshop script to select specific colors

Please note that I'm a complete beginner and this is my first coding question ever. If this is more appropriate on another site, tell me. I want to automate a process were the program select a ...
0
votes
2answers
39 views

Toggle between image and upscaled+masked view of same image?

Is it possible in Adobe Photoshop, via Adjustment Layers or Scripting or some other means, to enable an alternate processed view of the working document? Ideally some kind of two-up view, where the ...
1
vote
1answer
89 views

Looking for software, apps, plugins that will tile multiple images

I am looking to use 1000 images of different people and tile them in rows and columns. I tried using the Contact Sheet II feature in Photoshop but I get white gaps between the columns. I've looked ...
3
votes
3answers
862 views

Photoshop Local Zoom?

Is there anyway to zoom in on only a portion of an image without enlarging the entire document? I know that you can create a second window for the same document, put the windows side by side, and ...
2
votes
0answers
235 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 ...
0
votes
1answer
350 views

How to avoid random fill pattern dialog box when using action in photoshop?

I want to create an action that fills pattern randomly. I have created a sample pattern but it show me dialog box for random pattern setting every time when I play action. How to avoid that dialog box ...
2
votes
0answers
979 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 ...
3
votes
2answers
660 views

How to find the nearest color from a list of 9 in Photoshop?

I've a picture of an static object correctly balanced and exposed: I would like to sample the nearest color from my own palette of 9 RGB or Lab using Photoshop: Colour palette: #8270a4 #aa83cb #...
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 ...
0
votes
1answer
2k views

How to use the indexed color mode in Photoshop? [closed]

i want to understand the indexed color mode please hep me out how to work with indexed color mode.
0
votes
1answer
2k views

How to Saving multiple layer at once to png in photoshop?

Can able to find the way to saving multiple layer in photoshop and with same Names to be saving in one folder.
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 ...
0
votes
1answer
778 views

Batch script to resize height of all layers to same height but keeping their original aspect ratio

I have hundreds of product image layers and I am trying to resize them all to the same height (ignoring the width) and retaining their individual aspect ratio's. Is there a script available that does ...
1
vote
1answer
1k views

Photoshop javascript, how to select contents of a layer

Is there a method for the following function (mac) Command-click on thumbnail in layer panel? (So all non empty pixels get selected in specified layer.)
1
vote
1answer
394 views

Automating the export of layer combinations to a range of JPG files sizes (Photoshop)

The scenario I often have Photoshop files with the following general Layers configuration (each item is a Layer Group): Output 1 Output 2 Output 3 Background Group This example would produce three ...
2
votes
1answer
653 views

How to script resize export and specific folder output?

I maintain my uncle's photography website and that work currently at least consists of resizing new photos to different sizes (full, retina-thumbnail, regular thumbnail) and putting them on the site (...
1
vote
2answers
128 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
1answer
2k views

Script to change a color in all layers of a PSD file to another color?

Is it possible to loop through all layers (there are too many layers) and replace one color with another. Need automated approach, script or simple action. Loop through all layers{ Change Fill ...
0
votes
1answer
3k views

Script to automatically save a PSD when saving a PNG

Can you give me a script which will save a PSD automatically when I save a PNG? I found a script that saves a PNG when saving a PSD, I tried to reverse it but it didn't work :( main(); function main(...
1
vote
0answers
617 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
292 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 ...
0
votes
1answer
380 views

Apply script only to the 2nd layer of every PSD file

How can I apply this code only to the 2nd layer of every PSD file? I also want to avoid color selection instead give the hex color code of black to remove. var doc = app.activeDocument; for(var i = 0;...
-3
votes
2answers
705 views

Automate erasing certain colors in multiple PSD files

Is it possible to erase all colors in the 2nd layer of a PSD file in Photoshop except yellow in one step? I have multiple images. Should I use the hex code to preserve the yellow color?
0
votes
1answer
60 views

Photoshop tools list popout

Is it possible to "popout" this menu so that it doesn't collapse again when I click away. I want to be able to rapidly switch tools when I'm painting without having to open the menu again. Like how ...
0
votes
2answers
645 views

Automate Adding Individual Reveal All Mask to Many Layers in Photoshop?

In Adobe Photoshop CC, what's a fast way to add individual default masks (Reveal All) to every layer in a document with a large layer count (say 100 layers)? I need individual masks, not group masks. ...
1
vote
1answer
957 views

How to Batch Export All Directory Contents to PNG-8, Overwriting Existing Files?

Based on some preliminary manual testing, I've found that exporting as png-8 as one might expect provides significant file size reduction. One of my test images went from 58.8 kb to 10.7 kb. With a ...
0
votes
1answer
2k views

batch resize and crop images to a specific height and width

I have many images (TIFF, PNG, JPG...) and I want to resize them to 700 x 600 with 90% JPG quality, all at once using Photoshop actions. I am able to resize them to fit the 700 x 600 but the ...
2
votes
3answers
8k views

Replacing a smart object in bulk with Photoshop's variable data or scripts

Is there a way to automate the replacement of a Smart Image with a different graphic? For example, if I have a master image of a mug, and a large number of flat rectangular images/designs I'd like on ...
1
vote
1answer
363 views

Batch Data-driven variables Photoshop and centering text

i use data driven for batch many files but i have problem on the final files the text are not centered :( My original template are perfectly centered but when i export using batch all text are not ...
0
votes
2answers
1k 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 ...
1
vote
1answer
286 views

How to listen for document events that user triggers while palette window is open

Is there a way to listen for document events that the user triggers while a palette window is open? I have looked at the documentation for something like document.addEventLister or something, but I ...
6
votes
1answer
912 views

Selecting pixels by specification in Photoshop

I use Photoshop for carpet designing. My typical artwork is 1800 × 2400 pixels with 8 or 10 colors. Each pixel's position and color is important. The weaving macine which outputs the carpet can'...