Hot answers tagged photoshop-scripting
5
Yes, photoshop has something called actions. To use actions, go to Window -> Actions and create a new action. Then, do ONLY want you want you action to so (resize, duplicate, etc.) Once you have completed what you want your action to do, stop recording your action. Now, whenever you want, you can recall that action, and it will do the same thing, to ...
5
You can create your own script if you want, here's a simple one:
main();
function main(){
var Name = app.activeDocument.name.replace(/\.[^\.]+$/, '');
var Ext = decodeURI(app.activeDocument.name).replace(/^.*\./,'');
if(Ext.toLowerCase() != 'psd') return;
var Path = app.activeDocument.path;
var saveFile = File(Path + "/" + Name ...
5
ExtendScript is sort of a blanket term; it's not a real programming language per se. It refers to the ability of a user to create scripts in his or her choice of AppleScript, JavaScript, or VBScript.
Adobe provides a program to make scripts called ExtendScript Toolkit, which was most likely bundled with your install of Photoshop. On my computer it's in ...
5
As I write code a lot too, I know your pain with this task. Luckily there are dozens of
Sprite Generators
out there. I don't even save the link, as you always find a fitting one soon. The above linked generator takes a ZIP file. Luckily they don't only give you the resulting sprite image/sprite, but write the CSS for you as well.
Sidenote/Hint: Pay ...
4
You don't. The classes that are provided by the applications you are working with aren't extensible. But, what you can do to get around this is to create a record making use of Applescript's dynamic typing.
set myLayerInformation to {layer:psLayerObj, fill color:fillColorObj, width:mWidth, height:mHeight}
set targetLayer to layer of myLayerInformation
...
3
You are essentially looking to do what is called a Data Merge. Photoshop has this facility: see for instance ( http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-7417a.html#WSfd1234e1c4b69f30ea53e41001031ab64-7414a )
3
The only thing I can think of to save a little time would be to create a simple Action that does the Convert to Smart Object and then Rasterizes it in one press but you'd still have to go through each layer individually hitting this button.
Of course I'm not exactly sure off the top of my head what the practical use for doing this even is. What About.com ...
2
Well the obvious answer is to create a batch process to do it for you so you don't have to do it 190 times.
But maybe you can use one of Photoshop's automated processes to do it for you. In the old version of photoshop I use there's a Contact Sheet II process available. Perhaps you could set it up to include all the images you want to turn into a sprite, ...
2
Yes! Here's what you do. Open the Layer Comps window in photoshop. Click the snapshot button, hide your current layer, show the next layer, click the snapshot again. Create a layer comp snapshot for each state of your document that you want to have exported as individual files. Once you have all of those ready, go to File > Scripts > Layer Comps to Files. ...
2
You can automate most tasks in Photoshop by using actions. You can record them, enter them by hand or download others from the internet. They can be fully automated with predefined values or you can design them to ask for settings when they run. Short tutorial
I don't think you can automate tasks in Lightroom and I don't have any experience with other ...
2
You could do it in Acrobat with Export > Image > PNG
In Photoshop it's more complex.
When opening a PDF you can select all pages by holding shift. That way all pages open and the opened documents are named by page number.
Exporting is a different thing though.
You could start with the Automate > Batch and choose all open files as source, and using an ...
2
If I understood you correctly, you could do this:
Select all the layers you want to blur and then go Cmd+G and Cmd+E ( Cmd+G isn't necessarily needed )
Take the Brush tool and Soft round brush ( round brush with 0 hardness ) and make the brush really big ( big enough to cover the whole area you want to blur )
Then run it across the area you want to blur ...
2
I'm not getting the problem. Any settings you use in Save As are sticky for any particular format. They become the default until you change them. Non-interlaced is the default for png.
If you're trying to save time, though, why in the world would you not set up an Action and assign a keyboard shortcut to it? No mouse clicks needed, just hit one key combo ...
2
Layer → Arrange → Reverse will reverse the selected layers.
I don't know how you can automate the selection of layers within a group though. I bet someone could create a script for that, if it was essential.
1
I just created an action that can do this. You can download it here:
Scale up PSB
And that is how you use it:
Do a layer filtering for Smart Objects
Select the first layer
Run the action
Repeat running the action until you reach the last Smart Object
The action opens up the Smart Object, scales it up to 150%, saves the PSB, and selects the next layer. ...
1
Are you sure it was a PNG and not a JPEG? To save a JPEG every time you save your document, open the Script Events Manager.
Then enable events to run scripts and set up an event to save a JPEG when you save your document.
You could probably also set up an Automator Workflow in OS X to watch a folder and duplicate and convert PSDs to PNGs.
But it ...
1
In addition to Olle Sjögren's great suggestion (Actions are brilliant for this kind of thing), OS X's Automator can be used. It's free, and already in your Applications folder if you're a Mac user.
And... if you're willing to type some stuff into Terminal/CLI, ImageMagick can batch process images to do pretty much anything.
Your options are:
Actions ...
1
To create the set of images you need, you can use the technique I outlined here. It works, from what I recall, at least back as far as Photoshop 7. (It's a long time since I used Photoshop CS.)
Putting together your sheets, though, would be a lot faster and simpler using InDesign's data merge feature, especially if you have hundreds of images. Once the data ...
1
Given your real intention is to export all layers, I think there is other, better options.
All I need is a software that runs on my OS and lets me crop and cut the layers for Web usage.
Photoshop’s Export Layers to Files script is a great way to do this.
Choosing File → Scripts → Export Layers to Files, each layer of your document will be saved as a ...
1
Use Dr. Brown's Image Processor. There's a version in Bridge and a more sophisticated version for CS5 here on his website. It allows you to specify a dimension for the output, and even run an action on each image as it's processed. The "Pro" version adds various capabilities you may not need for your purposes.
1
Unfortunately, Photoshop does not provide the workflow you're looking for.
You can place a Photoshop file as a Smart Object in another Photoshop document, but unlike one placed in Illustrator or InDesign it becomes an independent object within that document. Changing the original won't affect any other documents in which it is placed.
1
You have to open all images in your photohshop then you have to place them in one file which will be containing your horizontal image. next to each other this will be a big task and pain,
if you found any another way(rather than your mentioned script) of this please let us know
Tips for making css sprites
how to create css sprites
1
The first thing I would try is to purge history and clipboard, just to clear out some cobwebs in RAM and scratch space. If that didn't do it, I'd next log out then log back in. Then, if I hadn't restarted the OS in the last week or so, I'd do that. Next I would reset Photoshop's preferences (click the icon to launch the program, then immediately hold down ...
Only top voted, non community-wiki answers of a minimum length are eligible
