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

Re: Selecting the brightest pixels

So these two "--" hyphens mean that the number will get smaller? And please tell me why do you say the index starts being 255... Because in the code i see it starts at 256? i dont think im familiar...

View Article


Re: Selecting the brightest pixels

So these two "--" hyphens mean that the number will get smaller?a-- amounts to the same as a = a - 1 The code has been amended, in the original version it started at 255.

View Article


Re: Selecting the brightest pixels

So the options are• starting ""theIndex" at 256 and subtracting at the beginning instead of the end of the while-clause or• adding 1 to "theIndex" when using it in "applyThreshold"Which of these two...

View Article

Re: How can I create a curves adjustment layer in JavaScript?

SciptListener does work, but isn't clean.  Is there not a way to code it?  Part of what I'm trying to do is just get a handle on curves using JavaScript in Photoshop.  Even with ScriptListener, I seem...

View Article

Re: How can I create a curves adjustment layer in JavaScript?

SciptListener does work, but isn't clean.  That statement does not make a lot of sense. A common practice to get more readable code is to pack the AM code into functions.  I seem unable to adjust the...

View Article


Re: Selecting the brightest pixels

Just test the code in its current form.

View Article

Re: load files to stack with out file extention as part of layer name

I noticed it doesnt work anymore either, but I found an alternative.  Download the script "Layer Name Edit.zip" from user Paul R -- message 10....

View Article

Re: How can I create a curves adjustment layer in JavaScript?

Agree, functions are an option.  Maybe I just need to get used to that.  For the curves adjustments, I'm trying to set multiple points on a curve.  Having trouble both with ScriptListener and writing...

View Article


Image may be NSFW.
Clik here to view.

Re: How can I create a curves adjustment layer in JavaScript?

Maybe some of this can help: Using color sampler values with curves adjustment layer

View Article


Re: How can I create a curves adjustment layer in JavaScript?

Not sure I'm tracking here... I'm looking to adjust the overall luminosity, not individual RGB curves.

View Article

Re: How can I create a curves adjustment layer in JavaScript?

So change the code to affect the composite channel or use the same values for all three channels.

View Article

How to attach a UI dialog to a script?

I use a custom script to batch process files into photoshop layers.Every time I run the script I have to manually edit the folder path in the script to save the new images in a new folder. Can a UI...

View Article

Re: How to attach a UI dialog to a script?

Instead of entering the path manually would a folder selection dialog not be more convenient? var theFolder = Folder.selectDialog ("select folder");if (theFolder) {var theFiles =...

View Article


Re: How to attach a UI dialog to a script?

And you can save the data by putting it to an action descriptor and saving to custom options. I have assumption about JSON encoding, but many other ways of stuffing things to action descriptors are...

View Article

Re: Check the number of historysnapshots?

Ad c) You can wrap that in a try clause in a function (that contains all the following operations) and in the catch-clause return. a) var myDoc = app.activeDocument;var theHist =...

View Article


Re: change file names

If I remember correctly JavaScript’s rename Method fails on Mac … but who knows what OS you work on?

View Article

Re: change file names

Once document has been save there is a backing file the document name will not change.  Even a new document  that has not been saved name can be change directly by user code Photoshop treats Document...

View Article


Re: How to automatically remove distortion on image with many...

How good are you at Math and programming? I expect manual input may be unavoidable (at least defining the four counterpoints) but even then it would seem quite challenging to automate the rest (to me...

View Article

Re: How can I create a curves adjustment layer in JavaScript?

I have a script I think will do what you want. You set 2 color picker spots (first one is the "good" color, second is the "bad" color). The script creates a curves adjustment layer and alters the...

View Article

Change Brush Rotation Angle - JSX Script

Hello all, first time post! I want to be able to rotate the angle of my brush incrementally through a JSX script in Photoshop CS6, I'll be linking the script to a hotkey and using it to rotate my brush...

View Article
Browsing all 27456 articles
Browse latest View live