Copy Shape Attributes & Layer Style from one layer & paste to another?
I don't know Photoshop scripting and wanted a script to copy both the Shape Attributes and Layer Style from one layer, and then another script to paste them to a different layer. I used the...
View ArticleRe: Calculating width height in script
Your explanation is not clear to me with regard to the realtion of the Layers in the one file and the individual images in the folder. What do you mean with »store the value of L & W of first...
View ArticleRe: Copy Shape Attributes & Layer Style from one layer & paste to another?
A try-clause seem to be an option. try {…}catch (e) {} Checking for Layer Styles is possible, too. var ref = new ActionReference();ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"),...
View ArticleRe: Copy Shape Attributes & Layer Style from one layer & paste to another?
Thanks! The try-clause thing stops me from getting the error messge I'm not sure how to use the 'checking for Layer Styles' part. Does it check for Layer Styles and copy them if they're present and...
View ArticleRe: Copy Shape Attributes & Layer Style from one layer & paste to another?
I'm not sure how to use the 'checking for Layer Styles' part. Does it check for Layer Styles and copy them if they're present and ignore/not try to copy if they're not present?It just checks, you can...
View ArticleRe: Copy Shape Attributes & Layer Style from one layer & paste to another?
Thanks again.For the copying script this seems to work OK. Does it look OK, or could there be any problems? // Copy Shape Attributestry {var idshapeClipboardOperation = stringIDToTypeID(...
View ArticleJavascript Version
Time for a stoopid question: What version of javaScript does Photoshop use? And how do you find out that out? ie Is it 1.6 or later??
View ArticleRe: Javascript Version
ECMA 262 and ECMA 357 is what I was told. We call it ExtendScript.
View ArticleRe: Javascript Version
What JJMack said. If there is a feature in some specific version of JS that you are interested in using, you need to test for that feature in the version of PS that you are using. Also, the ESTK...
View ArticleRe: Calculating width height in script
I think part of the problem may be that you do not fully understand that Photoshop is a document editor and can save documents in image files. You may have knowldge about your PSD files that you have...
View ArticleLoading Gradient map file
I can notfind a way to load (via script) a desired GradientMap from file in thelayer. Is thiseven possible?Thanks for the reply.
View ArticleRe: Copy Shape Attributes & Layer Style from one layer & paste to another?
Come to think of it Layer Style is not determined by Layer Styles alone, Blend Mode, Opacity and Fill also count.
View ArticleRe: Loading Gradient map file
Have you tried recording the procedure with ScriptingListener.plugin?
View ArticleRe: Javascript Version
Filter doesn't seem to work for me var a = [1,2,3,,,6,7,,0]; a = a.filter(function(n){return n}); alert(arr) Works in javaScript 1.6 though
View ArticleRe: Loading Gradient map file
Yes, I did try it. But Listener cannot capture file loading. I know, however, that there is a code for loading Curves, so I suppose that it is possible also to load Gradient Map. And a further problem...
View ArticleRe: Copy Shape Attributes & Layer Style from one layer & paste to another?
Ah, maybe I should just stick with the try-clause thing so it tries to copy Layer Styles even if the layer doesn't have any, and fails silently then. Thanks.
View ArticleDocument operations missing when using my palette
Hi,after a lot of trial and error I have finaly managed to get a custom palette running in my Photoshop CS6. The problem I have now is that when my palette is active I am missing some functions from...
View ArticleRe: Javascript Version
If 'filter' is specified in one of the ECMA revs Tom mentioned, file a bug report. In the meantime, you will need to implement your own filter function and drop it in like this: if...
View ArticleRe: Automate merge files into stack
Michael L Hale,Thanks for this bit of code. It is exactly what I need to automate an action that combines two open files without the prompt. Only thing I would like to ask your help now is how would I...
View Article