Tag Info

Hot answers tagged

3

In Photoshop go to File → Automate → Batch and you can select the action to use and the file naming of the output files


3

Although it's not automatic (you need to adjust it manually for each text), you can use Baseline Shift to 'imitate' a vertical centering:


2

This should be a lot faster. Instead of copy and pasting into a new file hundreds of times, it does this: Makes the Background into a Layer. Reduces the Canvas size down to the cell size. Slides the Layer around 'under' the Canvas to the correct location. Does a "Save For Web" essentially the same as your script. Go to 3 and repeat, then stop when it runs ...


2

Check out File > Scripts > Layer Comps to Files. You can export batches of files based on layer comps that way. Layer comps need to be set up first though, but if you are repeating yourself over and over, it is the lesser of 2 evils. If you need more control or a better automated script, you will need to write a custom script to give you that ...


2

As long as the clipped art is vector (as opposed to a raster image), you could use Object > Expand appearance on it to actually delete the parts that are clipped away. Thus, the script will no longer see the original art and work properly.


2

I would recommend Imagemagick as the appropriate tool here. It has a high learning curve, but is much faster than Photoshop for this sort of batch processing.. The following command should work: convert inputFolder/* +append output.png where inputFolder is a folder containing only the images you're interested in. They should be named in sequence (001, 002, ...


2

I know this is an old question, but for people just finding this question, you can automate this without saving separate files for each layer. Select all layers except the background Ctrl + Alt + A (Win) Cmd + Opt + A (Mac) Layer → Rasterize → Layer Style This rasterizes layer styles, vector layers, smart objects, etc. It works for CC and at least as far ...


2

For positioning text you don't need a bounding box. I never use bounding boxes for text in PS. I click the text tool without dragging and set the text cursor without a box. Once the text is entered, I can center it vertically or horizontally just like any other shape using the align buttons--assuming I have something to align it to. I do the same ...


2

I am not sure if I understood what you are trying to do. How I don't have enough reputation to comment, I will write this step-by-step answer. Have you tried using an action to do the work? Open any image on photoshop, then create a new action. All you have to do is open the window Actions (option + F9), and click the blank paper icon to create a new ...


2

I had no idea you could script with JavaScript in Photoshop prior to reading @horatio's answer, so I gave it a go. If you're new to scripting (first do some tutorials, then) I recommend stealing as much as you can from one of the scripts that ships with Photoshop, I made use of Layer Comps To Files.jsx (CS6) so I didn't have to look up how to save files ...


2

A quick and dirty way is to run this script on the document: for (var i = app.activeDocument.layerSets.length - 1; i >= 0; i--) { app.activeDocument.layerSets[i].merge(); }; ...and then use the export_layers_to_files.jsx script you already talked about. This will take the top most Layer Groups, and merge them into a Layer named whatever the group ...


2

Photoshop Supports the EXIF Orientation Value and the Windows Photo Viewer does not! You can ignore the EXIF Profile Tag in Photoshop Preferences - File Handling More info: Beware of Rotating Photos in Windows Picture / Photo Viewer! Another surprising detail is that if you decide to perform lossless image rotation (by using the Rotate Clockwise or ...


1

Writing a plugin sounds like a cool project, but before you do that, know that there is the HUD colour picker. You can assign it's keyboard shortcut to a single key on your Wacom. For brush size and hardness you are already aware that you can hold alt and drag left/right for one and up/down for the other. Assign that to a Wacom key too. For opacity, well, ...


1

Photoshop has 'Dynamic Shortcuts' for the Character Panel accessible by selecting text and reopening the Character Panel menu to see the hotkeys. This provides hotkeys like Underline (Shift+Ctrl / CMD+U), however there isn't one for 'No Break'. Here is a work around instead. Create an action called 'Apply No Break' and create a keyboard shortcut for it. ...


1

Eureka! This script will use active document's width and height as the file name and open the save dialog box with the file name preset for you. Choose a folder and save. var saveOptions = new JPEGSaveOptions( ); saveOptions.embedColorProfile = true; saveOptions.formatOptions = FormatOptions.STANDARDBASELINE; saveOptions.matte = MatteType.NONE; ...


1

The javascript command to hide/show a layer is: activeDocument.artLayers[i].visible = true; The rest is academic: set up an array (or just use your combinatorial algorithm), iterate, toggle visibility, "save as copy".


1

Found instructions for exporting just the actions you need. View your actions by going to Window > Actions. If your actions aren't contained in a set, create one by clicking the folder icon at the bottom of the action widget. Drag the actions you need into the new set. Make sure you have the action set selected. From the menu in the Actions widget () ...


1

If you're using CS6 (cloud version) or CC, the Layers panel allows you to filter the visibility of layers by name. At the moment, filtering isn't something you can record in an action, although it's probably been added to what's scriptable (I've not checked). It does, however, make selective hide/unhide very quick and easy. Change the filter from Kind to ...


1

I don't think it can be done with actions, and I'm not aware of a plug-in that would do what you want, but you should be able accomplish that with scripting. It would help if you knew some javascript. You can find more information here: http://www.adobe.com/devnet/photoshop/scripting.html


1

The easiest method is to place all the individual images into a folder on your desktop then use File > Automate > Contact Sheet II... within Photoshop to select the folder of images and have them arranged into a grid for a single document. I believe the Contact Sheet script may be part of Adobe Bridge for CS6. If you already have everything loaded ...


1

I don't believe so. Scripting tells the application to do something, and does not control events outside the application environment (such as database input). What you are seeking is something like a key logger or screen recorder. Photoshop does offer a history log in its preferences. It will spit out things like this, which still isn't what you are ...


1

Here's a script I wrote that might work. I've not tested it yet however. centerTextVertically( app.activeDocument.artLayers.getByName( 'Text-Layer-Name' ) ); /** * @param {ArtLayer} textLayer The text layer to apply the vertical centering. */ function centerTextVertically( textLayer ) { if ( textLayer.kind !== LayerKind.TEXT ) { return; // ...


1

To grab the bounding box of the currently selected paragraph text layer: var t = activeDocument.activeLayer.textItem; alert(t.width + ", " + t.height); This is documented in the JavaScript Scripting Reference (TextItem properties are listed starting on page 179)


1

I'd love to be proven wrong on this, but you can't vertically center text in Photoshop automatically. Just like you can't do it in Illustrator. You're stuck with manually adjusting the baseline shift. Here is the inevitable... but you can do this is InDesign. Yes, and it's awesome. But PS and AI are stuck without it. :( EDIT: Dang! I thought ...



Only top voted, non community-wiki answers of a minimum length are eligible