Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all 12244 articles
Browse latest View live

Batch replace Smart objects in Photoshop

$
0
0

Hi all, thanks for taking the time to read this.  I have a file which is attached.

This file contains 6 different layers all using the same smart object.  So If I replace the smart object in one it'll replace them in all.

 

What I would like to do is to be able to batch replace all smart objects with a file found in an outside folder.  I currently have 500 images and I need to make 500 of the file you see here.

 

I would need to batch replace the smart object.

Then save the file to a different file name.

 

Any ideas?  It would greatly be appreciated.

 

Screen Shot 2014-02-24 at 4.12.36 PM.png


file uploader script

$
0
0

I am new to Photshop scripting. I am contempalting a sript which will upload files to a local server as well as a remote server.

Is this idea execuatable with the scripting allowances built in Photoshop CC?

WorkSpace Saver ?

$
0
0

Does a "workspace" saver (aka Session Manager) exist for Photoshop CS5+ ? This is something I could use, as I tend to work with multiple images at the same time and when I can declaire one image as done then I close it. When time lapes having to open the images from scratch is a pain then trying to remember where to continue from.  If there was a "workspace saver" I could load the workspace and continue from their.

CS5.5 (MAC) script to fix random dots in lineart scans

$
0
0

Hello there.

 

In my line of work, I often have to scan text only documents to  print offset. The majority of the scans are clean but ultimately there will be random dots which need to be tidied up. I am looking for a way to streamline this process.

 

I was able to find a solution which I had in mind but it requires converting the lineart scan to 8-bit first. The example can be found at: http://verlagmartinkoch.at/software/cleanup/index.html

 

However, has anyone heard of an action or javascript that could do this without having to convert to greyscale and then back to lineart?

 

I have read DOZENS of DIY guides and posts suggesting always doing black and white scans as greyscale first and then converting them, but without going into tremendous detail, I will simply say that the scans I receive will output as lineart.

 

Many thanks

 

colly

Export layers to file script error in Photoshop CC

$
0
0

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 installed with Photoshop.  I am running Windows 7 64bit - using photoshop version: creative cloud 64bit.

 

When i try to run File>Scripts> Export Layers to files I get this error

Error 22: Windows does not have a constructor. Line: 239 -> dlgMain = new Window ("dialog", strTitle); 

When i load Photoshop Creative Cloud 32 bit i get a different error message when trying to run the script. 

Error - 33: Internal error . line:395 ->  dligMain.pnlFileType.pnlOptions.grpJPGOptions = ...

 

I can't run the image processor script I also get an error with that. 

 

This  is an issue for me as i use this script on a daily basis.  It worked in PSCS6  

I upgraded, i dont' want to have to load an older  version of photoshop to do this task  

 

Thanks

Carrie 

Looping for a Layer Name ?

$
0
0

I want to create a loop that checks if a layer with a set name is within a group, then save the layer group, if not, look outside any and all layer groups for a layer with a set name, if not, ignore and save the selected layer group ?

Apply new color to layers

$
0
0

Hello!

 

I would like to create a script in javascript  for Photoshop CC that does the following:

 

1) Check each layer in the current document

2) If the layer is named "fillMe" then color it in a specific color but lock the transparent pixels (in German it's called "Transparente Pixel fixieren")

 

I imagine that there might be several ways to go about this. Maybe applying a "Color Overlay" layer style with the desired color would work.

 

I have tried to find a good solution but cannot find any information on how to lock the pixel transparency with code. Also I would like to access a color picker window for the color selection.

 

Could you kindly direct me to the right tutorials/resources?

 

Thank you in advance!

 

Edit: So far I have got this with the help of the Script Listener, but it won't run as "this function might not be available in the new version of Photoshop"

 

function showBounds(layerNode) {   

    for (var i=0; i<layerNode.length; i++) {

 

 

        showBounds(layerNode[i].layerSets);

 

 

        for(var layerIndex=0; layerIndex < layerNode[i].artLayers.length; layerIndex++) {

            var layer=layerNode[i].artLayers[layerIndex];

            if (layer.name == "fillMe") {

                layer.visible = 1;

                layer.transparentPixelsLocked = 1;

                var idFl = charIDToTypeID( "Fl  " );

                var desc8 = new ActionDescriptor();

                var idUsng = charIDToTypeID( "Usng" );

                var idFlCn = charIDToTypeID( "FlCn" );

                var idFrgC = charIDToTypeID( "FrgC" );

                desc8.putEnumerated( idUsng, idFlCn, idFrgC );

                executeAction( idFl, desc8, DialogModes.NO );

           

            }   

        }

    }

}

 

 

showBounds(app.activeDocument.layerSets);

batch odd dimension images to square

$
0
0

Hi

 

I have lots of images that are all different sizes and more coming.

 

I need to create an action that makes these images square in px dimensions, with the new side dim. the dim. of the longest side.

 

I need to add canvas (light gray) to the short side.

 

I understand actions but not scripting.

 

Thanks exceedingly.


Data Sets in Photoshop CS2

$
0
0
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 Image > Variables > Data Sets > Import option.

My data looks like this..

Variable1
Ben
David
James
Mark

but when I try to import the text file, I get this error message...

"Could not parse the file contents as a data set. There were too many variable names in the first line of the text file."

Can anyone please tell me what I'm doing wrong?

Thanks

Script for deleting Hidden Layers which are not used in any Layer Comp?

$
0
0

Hello.

 

I've turend the web upside down searching for a script that would do the following:

 

  1. Search through all the layer comps in the document
  2. Check which layers are hidden on all Layer Comps
  3. Remove/mark with color the layers found.

 

If anybody can provide a script that would do such a thing - it would be highly appreciated.

 

Regards,

Fade.

Photoshop - combine red and green channel images into a merged image?

$
0
0

Hi,

 

I am a developmental biologist carrying out experiments on a type of microscope known as a Confocal Laser Scanning Microscope (CSLM).  Basically, this is a microscope coupled to some lasers which allow fluorescently-labelled parts of a biological sample to be imaged in high detail.

 

For each sample there will be a set of two images produced, named and numbered as follows:

 

sample01_g.tif

sample01_r.tif

 

Each image represents one fluorescent wavelength and correspond to green ( g ) and red ( r ).  These images are in rgb colour.

 

I want to produce a merge of these two channels to generate a new TIFF file such that:

 

Green channel is taken from sample01_g.tif

Red channel is taken from sample01_r.tif

 

Which would show me how the different channels co-localise, or not.

 

This is fine to do by hand in Photoshop, but takes a long time when you have a couple of hundred images to process.  So, what I would like to do is write a script that batch automates the process, like a droplet.  I have the process outlined below:

 

  1. Create a new RGB TIFF called sample01_merge.tif
  2. Take the green channel from sample01_g.tif and copy it to the green channel of sample01_merge.tif
  3. Take the red channel from sample01_r.tif and copy it to the red channel of sample01_merge.tif
  4. Save sample01_merge.tif into a folder named "Merged Images" on the desktop
  5. Close the opened images
  6. Go to next set of images –> sample02_g.tif and sample02_r.tif
  7. Create a new RGB TIFF called sample02_merge.tif....and go through step 2-6, untill the last set of images has been processed.

 

I have never used script before and would love to learn, but I am making slow progress and would like to have this problem solved sooner than I will be able to do so by myself.  So... I was wondering if anyone could give me some advice on how to go about doing this?

 

Any help will be greatly appreciated!

 

I use a Mac Pro running OSX 10.8.3 and Photoshop CS6 Extended

 

Best regards,

John

Will scripting be supported in the future?

$
0
0

Regarding the changes to be made next year for extensions support in the new Photoshop CC versions I must decide how to continue development of Photoshop tools, therefore I would like to know if, at least in short term, scripting will be supported in the next CC versions of Photoshop.

 

 

Thanks.

HELP NEEDED!! batching, overlaying, background cut out

$
0
0

Hi All,

 

very new to this.

 

I have 2500+ images (caracitures of cars on white backgrounds). I need to place ALL of them on to  a BLACK tee shirt image for internet listing.

So, how do I do this automated?

 

make the thing background BLACK

overlay image on the teeshirt

save it in the order they are done

 

2500+ times

 

I use Photoshop 7.0

Photoshop CS and script folder location

$
0
0

Hello Community,

I had a look around but can't find my solution.

 

I recently upgraded my Apple OS from 10.6 to 10.9. I was using Photoshop CS for my small needs as my main RAW covnerter is Capture One and have upgraded to CS4.

I forgot to export the actions (scripts) that I had done.

 

I can't seem to locate them in the CS folder on the app folder and in the library.

Anyone has a solution ?

 

Thanks in advance for oyur help and Best Wishes for the New Year.

 

Denis

How to get the style of a layer using photoshop scripting ??

$
0
0

As I know  there is a method  ApplyStyle(string)  which is uesd to apply the specified style to a layer. But I really don't know how to get the style name of a layer ?

Anyone who knows? Please help me!   Thank you !


Help needed to enhance Image Processor Pro Script to save transparency in TIF

$
0
0

Hi everyone,

 

this is my first post in this community.

 

We have a droplet which reduces the resolution of tif images to 72dpi and save the tif image with transparency. This works fine, but it took to long for the whole process of many picture in different folders. That's the reason why we searched for another script which can preserve the folder structure and set the resolution of every tif image to 72dpi.

 

We found Image Processor Pro, which does exactly what we needed. The script works perfectly in CS5 and CS5.5 as it saves the tif with the transparency. Those saved tif images could be used in InDesign with the transparency.

 

BUT Image Processor Pro script works not so perfectly in CS6 as it seems that this option to save a tif with transparency is not implemented or does not work in the script. The result is that those converted tif images are w/o transparency in InDesign. That's a huge problem for us.

 

 

This is the point where I need your help. Neither I have experience yet with jsx-files nor with the right syntax of it.

 

Is there a way for anybody of you to implement / enhance Image Processor Pro so it will save tif with transparency?

 

We used the latest German Version of Image Processor Pro: 2.3.1 (link: http://www.russellbrown.com/scripts.html)

 

(The German version contains only german on screen texts!)

 

I am very thankful for every help you can give.

 

Thanks in advance for your help.

CS5: Macro for HDR toning.. Bug?

$
0
0

Hey,

 

I got over 5000 picture files to add the "hdr effect" with hdr toning of Photoshop CS5. I recorded a macro where i do it with the "Surrealistic" - preset and also tried custom settings. But every time i run the macro it just opens the HDR toning script and i have to manually set the settings and press OK...

In the action it says "File: d:/programs/adobe/photoshop cs5/required/hdr toning.jsx" or something like that.

 

So how i can make photoshop automatically apply the hdr toning to thousands of pictures?

running an action on multiple open documents

$
0
0

What are the options for running an action simultaneously on mutiple tif documents open in the Photoshop interface?

(The documents have a lazo selection applied which is masked through the action.)

I have try the Image Processor and the Image processor Pro. Unfortuantly thse processes stall when run on an image with a selection.

file uploader script

$
0
0

I am new to Photshop scripting. I am contempalting a sript which will upload files to a local server as well as a remote server.

Is this idea execuatable with the scripting allowances built in Photoshop CC?

How to get corner radius of the shape object.

$
0
0

Hi All,

 

I am trying to get the corner radius of the shape object.

 

Is there any way through which I can get the corner radius of all the corner of the shape object?

 

Thanks in advance..

Viewing all 12244 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>