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
47 views

Render multiple photoshop layers to file automatically. With a twist

I have a question about automating my workflow. I have a photoshop file that consists of a Base Layer with some content that will always be visible. I also have a second category of about 15 layers ...
0
votes
1answer
28 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....
1
vote
1answer
21 views

Photoshop: How to save EXR from script?

Photoshop2020 seems to have EXR support. I can't find in the scripting reference of PS2019 any mention though of how to save EXR files and I also couldn't find a scripting reference for the 2020 ...
0
votes
0answers
15 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 ...
3
votes
1answer
87 views

How to automate four-up photo creation

I've got a large number (about 300) of 4x6 photos that I want to reformat by making each into a 2x3 photo, and making one 4x6 composite image from 4 of these. (I want to make them smaller because ...
0
votes
1answer
72 views

Batch processing Photoshop (stitching)

I found this one and I´m not confirm with scripting. But perhaps this would be a part of my search for stitching out of Phase One Capture One 12. Multiple Panorama Automation in Photoshop Capture One ...
0
votes
1answer
42 views

Photoshop, actions or script - create and use pattern

I would like to create a pattern and use that pattern in the same action, but when I go to use fill with pattern, the last manually selected pattern is the one that is used - even if that pattern has ...
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 ...
1
vote
2answers
76 views

Invert saturation in photoshop

I've been looking for a way to invert the saturation of a photo in photoshop. For example a pixel that is: hsl(42, 100%, 42%) must become hsl(42, 0%, 42%) hsl(42, 0%, 42%) must become hsl(42, ...
0
votes
0answers
46 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 ...
2
votes
3answers
120 views

Split to layers by color areas in Photoshop automatically

How can I convert an image like this (known as an Object ID pass or Clown Pass in 3d) to a layered file where every layer would be a color blob (using Photoshop only)? I know how to do that manually, ...
0
votes
2answers
153 views

Use Photoshop from command line

Is it possible to use Photoshop.exe from command line for various tasks, such as export PSD files? (I know it's possible with third party tools such as ImageMagick, but here I'm asking specifically ...
0
votes
1answer
34 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
1answer
62 views

Issue on returning a variable from an evalScript function

I am working on a CEP HTML panel for Photoshop and I want to check first if there is any opened documents before my panel do what it has to do. So I made something like this into my index.js so to ...
0
votes
1answer
36 views

Communication issue between functions into JS and JSX files

I have made this function into a JS file... function getColors(isPick, isForecolor) { var chosenFunction = 'getColor(' + isPick + ', ' + isForecolor + ')'; csInterface.evalScript(...
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 ...
4
votes
2answers
111 views

how to create a UV mapping (?) of a texture onto a product photograph based on a calibration pattern

UPDATE: Here you can download high quality images of calibration patterns as well as them printed on socks if anyone wants to give this a go Pardon my lack of vocabulary, this is not my area of ...
0
votes
2answers
70 views

How to warp an image to take shape of truncated pie (controlled by some input parameters)?

I am new to Photoshop/Illustrator. I would like to warp an image like the attached truncated pie. Assuming this truncated pie is part of a circle, then outer radius of curvature should be 15 units ...
0
votes
0answers
33 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
1answer
114 views

Photoshop JavaScript translation needed

I'm working with a script in Photoshop that will automatically resize all smart objects to their original sizes. I got the script from here. Kudos to Barbara_Ash for directing me to it. The script was ...
0
votes
2answers
44 views

Modifying JSX script to save all images in folder as transparent PNG-24?

So the below script simply loops through a chosen folder, checks canvas size and dimensions and sets them if they're not in a 1:1 aspect ratio, and if they are, leaves them alone. The result is all ...
0
votes
0answers
39 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 ...
1
vote
1answer
178 views

Batch Photomerge - Only Process Images in Folder with Specific Title

I am using a variant of the script on this Question to batch Photomerge a bunch of panoramic photo sets in different subfolders. However, the way I have my folder directories set up, the script can ...
0
votes
0answers
69 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
22 views

How could I transform the colored Twitter emoji to Black and White automatically [duplicate]

I am looking for black and white emoji but haven't found too many good ones. One thing I'm thinking is taking the Twitter emoji and converting them to black and white (and grey potentially). One ...
0
votes
1answer
35 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 ...
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() { ...
0
votes
0answers
35 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
319 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
77 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
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 ...
-1
votes
1answer
70 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
38 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
82 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
71 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
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
2answers
30 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
53 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
93 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
71 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
250 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
98 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
48 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
106 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
195 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
116 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
30 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
57 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
57 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
33 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.