Questions about the script/extension language in Photoshop, used to automate certain tasks.

learn more… | top users | synonyms (1)

6
votes
6answers
15k views

Exporting groups of layers from a PSD to a single PNG file using Photoshop

What is the fastest way by which I can save a group of layers as a single .png file with empty spaces around the group of layers trimmed. I know I can run a script to export every single layer to a ...
1
vote
3answers
2k views

Script iterating through layers stops halfway

I'm trying to iterate through every layer in a document and for some reason my script only goes through the first half (13 out of 25) and then at 14 it says that the element doesn't exist. Could you ...
1
vote
2answers
2k views

1 click undo on photoshop actions

Ive been using some Photoshop actions (not developed by me) to add a 'grunge' effect to some text (a .png), it works well but theres several levels of grunge, so i tend to try a couple out to see ...
3
votes
1answer
762 views

Photoshop: Get x/y origin of paragraph text box via Javascript

Is there any way to get the x/y position of the origin of a paragraph text box via Javascript, excluding use of the Photoshop UI? This image shows my predicament; what I need vs what the Photoshop ...
1
vote
1answer
633 views

Adding “Duplicate Group” to Photoshop Action

I have created a Photoshop action which: Duplicates the current image. Merges all visible layers. Removes hidden layers. Rearranges parts of image. Adds the layer to a group. Displays user interface ...
2
votes
1answer
458 views

Photoshop: Change Text Box Position Coordinates Via Script

Here's what I'd like to do. textLayer.textItem.position[0] = 200; I would expect this to change the x-coordinate of the text box to 200px from the canvas origin. The value does not get assigned. ...
2
votes
2answers
2k views

Photoshop: Batch Fit Image x Bicublic Sharper?

1) By File -> Automate -> Fit Image..., we can fit images of any size or orientation into a particular frame size. But we cannot specify the resample method, like Bicublic Sharper. In fact we ...
2
votes
2answers
210 views

Photoshop blurring peaks (it's hard to describe in text)

I want to know how to blur something in peaks, here's a picture to help describe it: Segment C is blurred the most then B then A to create an effect like the one on the right but with blur. I was ...
2
votes
3answers
2k views

Photoshop CS6 - Get width of paragraph text in pixels by script

Is there any way to get the width of the text inside a paragraph box? The measurement would not take into account the wrapping. That is, it would equal the sum of each wrapped line. I'm not asking ...
1
vote
1answer
181 views

Photoshop: Switch visibility between two layers

For example, i got two adjustment layers (A and B). At last, i will only use one of them. While considering which one is better, i can compare them by turning A visible and B invisible, then A ...
0
votes
0answers
309 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
vote
1answer
633 views

Action on selected layer in Photoshop

I have a bunch of Smart Objects in a .psd. I want to create an action that opens up the .psb of each individual Smart Object and scale the .psb image size by 150%. The reason for all this is that ...
0
votes
4answers
3k views

Extract image x/y coordinates and width and height info from PDF via IL or PS

We have a professionally designed floor plan in PDF form for an event we are running currently. It is similar to a CAD drawing. We have booths (rectangular squares) drawn on it. I have a colleague ...
5
votes
4answers
5k views

Create a sprite using a sequence of images photoshop

I would like to create a horizontal image sprite for use in a jQuery animation, how would i create a sprite from 190 images in a folder (around 220kb each file) into a single horizontal sprite?
2
votes
1answer
153 views

Reverse layer positions from a layer group (batch)

Do you know how can I create batch script in Photoshop that reverses the position of all the layers inside a layer group? I have like 400 layer groups, each with 1-20 layers like this: Group 1 - ...
2
votes
2answers
4k views

When saving as a PSD, have a PNG also saved automatically

On Photoshop CS5, I had it set up so that whenever I saved a .psd, whether it were through cmd-s or the file menu, it would also save a file as a .png with the same name. I upgraded to CS6 and now I ...
3
votes
2answers
257 views

How to automate some picture manipulation (define a crop and apply a crop) in photoshop?

I am currently working on a lot pictures (around 1000) and would like to automate some tasks: define a crop region that correspond to specific aspect ratio. For example if i have a width/height = ...
1
vote
0answers
21 views

Script for exporting 200 layers to PNG stacked on top of one another? [duplicate]

Possible Duplicate: Is there a faster way to save all layers in PSD to PNG? This is my first attempt at Photoshop. I have been taking photos of my daughter for 6 months and I want to create ...
3
votes
2answers
878 views

Automation of repetitive tasks in Photoshop?

Is there a way to automate some highly repetitive tasks in Photoshop? Example 1 I have a folder of images. For each of them, and I want to import each as its own layer I'd like them to be resized ...
1
vote
1answer
1k views

Can I stop Photoshop from asking for interlaced option when saving a PNG format?

I never want my PNGs to be interlaced. So I wish I could set a bunch of option defaults in the application so that I am saving time when outputting a lot of images as PNG over the course of a day ...
2
votes
1answer
931 views

Data merge and layout of photoshop files

I have a PSD where the design contains a text layer. I want to generate a version of the image for each name in a text file and lay out the results 6-up on a page for printing without any scaling or ...
4
votes
1answer
2k views

Can I automate saving different combinations of layers?

I have a source file for an icon. It has a base layer which is the icon background, and a number of layer folders, each of which contains layers for each individual icon. There are 20 or so of these ...
1
vote
1answer
467 views

Develop a tool for inserting text/image in a photoshop file

I'm trying to develop a simple tool for translators who don't have Photoshop but I can't find any library that supports layers. I need to open the PSD file, translate the text layer and save it as ...
1
vote
1answer
899 views

Resize a collection of different sized png images to the same dimensions

I have a collection of a few hundred png images, each are different dimensions. I want to be able to resize them all to the same dimensions, preferably keeping the aspect ratio intact. Is it ...
2
votes
1answer
67 views

Add class to layer in Photoshop

How can I simply add a class to a layer in Photoshop CS5? That class should hold properties like "fill color", "size", etc. I'm very new to scripting Photoshop so please bear with me =) Thanks!