Script to Get/Set viewing area
I'm just now looking into javascript for Photoshop CS5, so I'll try to make the functionality I need as clear as possible. I'm working on a script that functions like Paint Tool SAI's Flip Canvas,...
View ArticleLayers getByName() issue?
I'm using CS4 and I'm curious about a particular issue I'm having when I use getByName() to return a layer. It works fine unless the named layer is in a group. Using the following simple code it runs...
View ArticleData Sets in Photoshop CS2
I'm trying to learn about scripting in Photoshop CS2. By starting, I just want to import variable data into Photoshop, following the help instructions, however am having heaps of issues.I'm using the...
View ArticlePhotoshop (CS4)-Saving out layers & names?
I was wondering if someone can help me out. I am trying create an action-script and can't seem to make it happen. Specifically, I have a Photoshop file with five layers. Each layer having it's own...
View ArticleConditional Image Resizing
Hi Ive been using batch processing in photoshop since version 7, however Ive recently found the need to do conditional actions - which apparently can be done with photoshop scripting. What Im trying to...
View ArticleExport layers to file script error in Photoshop CC
I need help with an issue. I also asked this in the general forum but was refered here to ask all of you amazingly talented scripting geniuses. My issue is with the Export Layers script that comes...
View ArticleAuto crop each layer before exporting layers to files
The built in "Export layers to files" script doesn't crop the exported jpeg to the size of the image on each layer. Instead, it keeps the original photoshop file size and puts white around that...
View ArticleBatch replace smart objects
Hello, I have very minimal scripting knowledge, and every script I've found for this workflow is partial or results in "undefined". I am on a mac running Photoshop CC (latest update). This is what I...
View ArticleA script for "Save for Web" as .jpg
I found a script that saves the current selected document in Photoshop as .png to the Desktop, and use it all the time. function main() { // declare local variables var doc =...
View ArticlePhotoshop CC foregroundColor eventlistener
I'm making a color wheel panel and it's almost done. What I still need is to create an eventlistener for when foreground or background color is changed. I know that I can get the foreground color...
View ArticlePhotoshop opens dialog box when trying to fill a layer with transparent...
This script should set the layer to lock transparent pixels, and then fill the layer with a color. It does that, except when it gets to the fill stage, it opens the fill dialog box, and you have to hit...
View ArticleHow to Package and Distribute Scripts + Actions?
I'm already enjoying some success at distributing an interworking set of actions and scripts. BUT there are several barriers that I'm sure others have thought about solving, and I'd like to get an idea...
View ArticleScript to add keyboard shortcut to Tool Presets
So this may be an odd request right off the bat, because I know switcing tool presets can be recorded with an action, then bound to a "F-key" keyboard shortcut. But of course this isn't what I want....
View ArticleBatch Crop & Straighten
A while ago a good chap helped me out by creating a script that prompted the user for a folder, then ran the Crop and Straighten Photos command on all images contained in the folder and saved the newly...
View ArticleBatch Processing with Multiple Actions
Hello all,Using the Scripts Events Manager I run a set of seven actions during the file open event to a each file.The next steps to apply these seven actions to a folder of images. What are the...
View Articlecustom scripted actions for frame-by-frame animation
Hello, I'm looking into creating some custom actions for navigating Photoshop's timeline for 2D animation. My goal is to create two hot-keys (F1/F2) that move forward/backward on the timeline, and snap...
View ArticleHow to batch process .png's
I tried Image Processing but it wont save .png's. Anyone know how to do this?
View ArticleFor loop, selections
I have a script I'm making that will select predefined color ranges (in my script, these are red, blue, and green), applying each of these selections to a new layer as a mask. For the most part, I have...
View ArticleAre there Javascript hooks to manipulate the timeline?
Is there an API for manipulating the timeline? I didn't see anything about it in the JS API pdf, and after briefly scanning the object hierarchy in the toolkit, I didn't see it. I'd like to be able...
View Articlehow to create a group using photoshop scripting?
Hey guys,I can create a layer easily by the below code. but how can i create a group that contain more than one layer. var docRef = app.documents.add();var myLayer = docRef.artLayers.add();
View Article