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 ArticleRe: 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 ArticleRe: 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 ArticleThe 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleGet 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 ArticleRe: 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 ArticleBatch 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 ArticleRe: 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 ArticleRe: 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 ArticleHow 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 ArticleRe: How to add layer mask?
Line 30 you have the actionmanager "HdAl" hide all… Record again using show all…?
View ArticleRe: How to add layer mask?
Personly I would add argument to the function so I could pass the 4 options...
View ArticleGetting 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 ArticleChanging 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