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

algorithm check

I am intersted in developing a script which will allow the user to target any layer from the document's layer panel and turn its visibility on/off with a keyboard shortcut. Can someone plase check the...

View Article


Re: algorithm check

Hmmh?do you really need a loop through all layers?Isyourlayerhierarchyso complicated?Please show a screenshot of your layers panel. Or perhaps this simple example is already good enough for you? //...

View Article


Re: Duplicate Error

I'm not getting the order correct. Hrm !

View Article

Re: Duplicate Error

What order?

View Article

Re: algorithm check

Thank you for responding. Actually, I am not sure if I need to loop through layers is necessary. I was thinking that cycling through the layers was necessary to find a specific layer name. What is...

View Article


Re: Duplicate Error

Maybe you should, instead of trying to verbalize what you are after, show it with a mock-up/screenshots.

View Article

Cropping canvas based on file name suffix (_large, _medium, _small)

I have this repetitive task of cropping pictures, on a daily basis, each in 3 different versions, a 630x515 *_large, a 274x134 *_medium and a 173x106 *_small. I'm currently working with 3 different...

View Article

Re: algorithm check

pixxxel schubser's code is good for what you want to do, unless your layer is in a group.  Then the getByName will not work on those layers.  As to the two scripts, you can do this by writing the layer...

View Article


Re: Cropping canvas based on file name suffix (_large, _medium, _small)

Are different files named with the "_large," "_medium," and "_small;" or are these the names you give the files after you run your action?  Using scripting can do whatever you want to do.  You can use...

View Article


Re: Duplicate Error

The order of how to lay down the code without getting errors look at this code. var note = prompt("hello");var doc = app.activeDocumentvar visible_layers = doc.artLayers.add()  //add new empty...

View Article

Re: Cropping canvas based on file name suffix (_large, _medium, _small)

Thank you for the quick reply. Yes the files already have names ending with "_large", "_medium" and "_small". My problem is how do I make the script check what the name of the currently opened image...

View Article

Re: Duplicate Error

Have you even bothered to check »backgroundColor« in the OMV? Is it a Method or a Property? And of what?

View Article

Re: Cropping canvas based on file name suffix (_large, _medium, _small)

Somthing like this might work.  You would need to edit this code and put in your actions names and the action set where indicated. #target photoshopif(app.documents.length>0){      var docRef =...

View Article


Running a script continuously

Hi, I am looking for a script code so i can run my script continuously until the esc button has been pressed to shop it running. my script creates the work i wish to do but then stops which gives me...

View Article

Re: Running a script continuously

Enclosing your loop in a try/catch clause should enable you to hit the escape key and exit the loop.

View Article


Re: Running a script continuously

Hi, thank you for your reply although the problem i am having is with the loop, not the exiting of the program i need script code to make my code loop back to line 1 and start again. thanks

View Article

Re: Cropping canvas based on file name suffix (_large, _medium, _small)

Oh, thanks a ton for writing that. I just got home and tested this. Unfortunately, in Photoshop nothing happens, while in the  ExtendScript Toolkit I seem to be getting Result: Undefined right after...

View Article


Re: Cropping canvas based on file name suffix (_large, _medium, _small)

Um, ok I don't know anything about scripting but doing a bit of googling on the .split command I managed to fix it by adding [1] at the end of var docSize = docName.split('_'). Hope this didn't mess...

View Article

Re: Cropping canvas based on file name suffix (_large, _medium, _small)

I made a goof in the code.  Use these two lines to replace lines 4 & 5: var docName = docRef.name.split('.')[0].split('_');var docSize = docName[docName.length-1] 

View Article

Re: Cropping canvas based on file name suffix (_large, _medium, _small)

I might not understand how it works, but it's absolutely perfect. Thank you very much!

View Article
Browsing all 27456 articles
Browse latest View live


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