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

learn more… | top users | synonyms (1)

2
votes
2answers
248 views

Ending a PS CC 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 ...
1
vote
2answers
94 views

How can I get the boundaries (width & height) of the current clipboard image?

To reproduce what I'm looking to do with scripting (JSX) in Photoshop: Select part of image with transperant background (no background layer) Copy File -> New *1 Paste *1 - Photoshop will ...
0
votes
2answers
259 views

Is there a way to merge layers with the same name inside a photoshop document?

I have a bunch of psd files with exact same layer stack in each. They contain different information, but the layer position in the stack, naming, blending modes are exactly the same in everyone of ...
4
votes
1answer
26 views

How to repeat a gradient multiple times in Illustrator and Photoshop?

How to repeat a gradient 'n' times, for example, repeating black to white gradient 5 times (along the path of stroke) like I've done manually in below example image. Is there a way to automate it to ...
4
votes
1answer
501 views

How to export slices to PSD in Photoshop CS5

I have a big PSD file with many slices, and I would like to have all those slices in new separate PSD files. Is there a way to export a slice to a PSD ? And automate this action using a script/action ...
4
votes
1answer
742 views

Is there a way to create a dockable palette for Photoshop with ScriptUI?

I am using ScriptUI for the first time and would like to create a custom palette with several text boxes and buttons that can be conveniently docked into the Photoshop UI. Can this be accomplished ...
2
votes
1answer
225 views

Automate Export to Layers without overwriting

Here is the problem. I have a folder of PNGs. For each PNG, I want to create multiple PNGs with different styles applied to them. My approach was to create an action which creates multiple layers for ...
2
votes
1answer
751 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
1answer
439 views

Scripting Photoshop: path has too many points to be converted to selection?

I am working with some large tiff files with fairly complex clipping paths, and have written a script to convert the paths to a selection, invert that selection and delete pixels in order to ...
1
vote
1answer
139 views

Applying scripts to skip repetitive steps (Photoshop)

I am currently working on an image (wallpaper for personal use) based on lowpoly graphics. When creating the lowpoly part, I have created several triangular shapes, covering the part I wish to '...
1
vote
1answer
157 views

Can a photoshop action or script load/save swatch, and choose color from it

I was wondering if it is possible for a photoshop action to choose foreground or background color from the swatch. I have tried doing it, but instead of picking from swatch it is always taking a ...
-1
votes
1answer
31 views

Add a conditional line to existing script

I've got this script from an earlier question and answer (specific resize layer action) Many thanks to SQW! (function (){ var startRulerUnits = app.preferences.rulerUnits; app.preferences....
-1
votes
1answer
82 views

How to save layers in a group as one image in photoshop?

I am dealing with large number of layers in photoshop. How can I save multiple layers of a group as a single image in a batch process?
1
vote
0answers
27 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
98 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
73 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 ...
0
votes
0answers
47 views

Photoshop CS6 Scripting - Manipulate Transform Reference Point

When scripting the Photoshop CS6 Transform, you can set the center to rotate or scale around a point by specifying the AnchorPosition enum, such as AnchorPosition.BOTTOMCENTER for the bottom center, ...
0
votes
0answers
19 views

How to Batch Export Background Layer in PS or Bridge

I have thousands of tif files that all have different adjustment layers, but all have a background layer in the document. Sometimes the background layer visibility is turned on, sometimes it isn't. (...
0
votes
0answers
49 views

How to change the color of one letter from a variable

I am trying to make a number of similar images from a text variable. I want one letter of this variable to be a different color in the final image. The problem is the text can vary slightly in length, ...
0
votes
0answers
56 views

Automating export layers by layer name

I am wanting to automate my exporting process. AS soon as I found a good way to export multiple icon sizes adobe went and removed "Extract Assets" so now I need a good way to do this. My Current way: ...
0
votes
0answers
125 views

PS Script: How to get color of the Rectangle Shape and Fill Layer

I have some layers in my document, one of them is Fill Layer and others are rectangles. I want to read colors of this layers and put them to an array. I can access layers with app.activeDocument....
0
votes
0answers
112 views

is there any script to rename the already existed smart object with the name of its mother file

for eg: box1.psd have (red colored) "ball" smart object and "cat" layer box2.psd have (yellow colored)"ball" smart object and "dog" layer box3.psd have (green colored) "ball" smart object and "...
0
votes
0answers
159 views

Illustrator: Export layer combinations with a script

How to script exporting of several file/layer/layer combinations? For example in multilingual manuals. If there are of ai files of similar structure layered like this: [n+3) ...
0
votes
0answers
87 views

Centering Text in script in photoshop

How can you center text in a script? I have tried to get it's bounds, use PARAGRAPHTEXT and use the width and height but nothing works well. I've also tried to make the text centered using ...
0
votes
0answers
41 views

Easy way to automatically shift layers when adding new images to a catalogue?

I need an easy way in which to edit a catalogue. I'm working on creating a catalogue for a client that'll have all their products. The problem is, I need a way in which this catalogue will be easy to ...
0
votes
0answers
251 views

How to create a Photoshop Action for a tool with user input

I'm using Photoshop CC. I'm using the Edit > Perspective Warp tool for a lot of images on a big project. Basically I need an action/script that grab the tool then let me manipulate the points then ...
0
votes
0answers
91 views

automate assembling multiple tiles back into the original big picture

I have multiple, 1024 jpeg tile images that are effectively tiles of a one big image which was split into a matrix of 32×32 smaller ones (each 256×256px). I wonder how could I efficiently put them ...
0
votes
0answers
91 views

How to replace color in photoshop via javascript?

I have to replace one specific color to another via javascript. How can I solve this?
0
votes
0answers
558 views

Adobe Photoshop XY coordinates export

I have tried to use amrok's script (given here). I'm trying to export the XY coordinates of corner points of a selection - ideally to a text file... Would you be able to help?
-1
votes
0answers
18 views

how to make font size equal to file dimension in photoshop?

I have a question about this code I found from: How to get Layer size (Width and Height)?. Is it possible that font size can be same as file size? say if file width is "1920px" then font size should ...