Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Browsing all 27456 articles
Browse latest View live

Re: Looping through layers is slow.

The code in that thread is largely based on stuff Mike and Paul have provided (I may have added mistakes of my own, though) but I can’t locate the threads from which I took it. Calculating width height...

View Article


Re: place image into a psd document

Hi Paul.I've been forced to dive into scripting today in order to fulfill a need for a client and my knowledge of this area is very little. I tried using those functions that you wrote a while back now...

View Article


Image may be NSFW.
Clik here to view.

Re: Looping through layers is slow.

I don't think that AM will help to much, the time eating operation is the resize and you can't do anything with AM to make it faster,the only think in where the AM could help is the going through...

View Article

The command "Flatten Image" is not currently available.

HiI have an automation plugin for CC 2014 and trying to flatten image by code. It is giving this issue - "The command "Flatten Image" is not currently available."  PIActionDescriptor result = NULL;...

View Article

Re: The command "Flatten Image" is not currently available.

Have you checked if doc has any locked layers/groups that can cause "method not available"?

View Article


Re: Looping through layers is slow.

Two things you could try:Instead of Copy/Paste use layer.duplicate()When doing lots of operations, maintaining history can be a bottleneck. Try using app.activeDocument.suspendHistory("Executing...

View Article

Re: Need scriptUI-expert's advice on proper implementation of Photoshop...

You're welcome Patrick! $.gc (); is calling garbage collector. It's undocumented command. --tomaxxi.com

View Article

Image may be NSFW.
Clik here to view.

Re: Need scriptUI-expert's advice on proper implementation of Photoshop...

$.gc () Core JavaScript Classes Initiates garbage collection in the ExtendScript engine. It is documented it shows in both the OMV & the ID base classes iChm

View Article


Re: place image into a psd document

Paul does not visit here any more.  If all you want to do is add a copy of some layers in one document into many other documents it would most likely be better to write a script to do the whole process...

View Article


Get selected group and layers?

Hi, I need to get the selected layers and groups in my script. I found this  https://forums.adobe.com/message/2666611. here is the code:  function getSelectedLayers()  {      var doc =...

View Article

Image may be NSFW.
Clik here to view.

Re: scale layer to current canvas size photoshop

Clearly  you can manually scale a layer. It just seems a scale to fit command would be useful for most users. If you ever work on a folder filled with images, any way to automate the workflow is helpful.

View Article

Image may be NSFW.
Clik here to view.

Batch command not closing files automatically

Hi,  Photoshop CS6 Windows 7 How do you make Photoshop automatically save and close a batch of raw files during batch runs?  I'm just now trying the File>Automate>Batch command. I want to run an...

View Article

Re: Bug with Liquify in CC 2014 - Actions/Scripts

Nearly the same here, Photoshop CC 2014.0.0 does not crash, but Lliquify inserted as an menu item to an action (even if only Liquify) just don't work / just don't do anything. The "Liquifiy-Window"...

View Article


Re: Batch command not closing files automatically

Do not use Batch, use one of the available Image Processor scripts instead.  If your RAW files have been converted before and have associated ACR setting, The RAW files will be converted  using these...

View Article

Image may be NSFW.
Clik here to view.

How to add layer mask?

Must add each layer of the document (except the background) mask blank:There is such a script: if(app.documents.length>0){    var docRef = activeDocument;    var layerNum = docRef.layers.length;...

View Article


Re: How to add layer mask?

Line 30 you have the actionmanager "HdAl" hide all… Record again using show all…?

View Article

Re: How to add layer mask?

Thank you very much

View Article


Image may be NSFW.
Clik here to view.

Re: How to add layer mask?

Personly I would add argument to the function so I could pass the 4 options...

View Article

Getting position of layers with transparent pixels

I need to calculate the exact position of all levels, but there are some errors in the levels where there are transparent pixels. Calculating the position in this way:                 width =...

View Article

Changing text with Applescript changes font attributes

I've been working up a multistep Applescript (which I'm learning as I go) to change up a bunch of files in Photoshop CC. The last part involves changing the contents of an existing text layer (with...

View Article
Browsing all 27456 articles
Browse latest View live


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