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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleHow 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: change file names
If I remember correctly JavaScript’s rename Method fails on Mac … but who knows what OS you work on?
View ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleChange 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